WO2016169418A1 - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
WO2016169418A1
WO2016169418A1 PCT/CN2016/079026 CN2016079026W WO2016169418A1 WO 2016169418 A1 WO2016169418 A1 WO 2016169418A1 CN 2016079026 W CN2016079026 W CN 2016079026W WO 2016169418 A1 WO2016169418 A1 WO 2016169418A1
Authority
WO
WIPO (PCT)
Prior art keywords
remaining
data
data transmission
amount
receiver
Prior art date
Application number
PCT/CN2016/079026
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 WO2016169418A1 publication Critical patent/WO2016169418A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a method and an apparatus for data transmission.
  • the priority of each data transmission task is manually set, or the priority of each data transmission task is set according to the chronological order of establishing the data transmission task.
  • the existing method of data transmission is relatively simple. For data with strong aging properties, existing data transmission methods cannot finely adjust the way data is transmitted in order to meet the aging requirements of data transmission. The existing data transmission method has a poor user experience and low execution efficiency.
  • the inventors have provided a method and apparatus for data transmission with good user experience and high execution efficiency on the basis of research on existing methods of data transmission.
  • a data transmission method includes the following steps: determining a receiver; determining a data transmission specification; and determining a data transmission specification according to the determined data transmission specification.
  • the receiver transmits data; wherein the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver.
  • the embodiment of the present application further provides an apparatus for data transmission, including:
  • a search module for determining a recipient
  • a transmission module configured to send data to the receiver according to the determined data transmission specification
  • the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver.
  • the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver, so that the manner of data transmission can be adjusted in time according to the state of the data transmission, thereby User experience is good and execution efficiency is high.
  • FIG. 1 is a flowchart of a method for data transmission provided by an embodiment of the present application.
  • FIG. 2 is a flowchart of determining data transmission specifications according to an embodiment of the present application.
  • FIG. 3 is another flowchart of determining data transmission specifications according to an embodiment of the present application.
  • FIG. 4 is a third flowchart of determining data transmission specifications according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of loading of data transmission according to an embodiment of the present application.
  • the data transmission specification and the method for the data transmission are provided in the method and the device for the data transmission provided by the embodiment of the present application.
  • the remaining period of the data transmission, the ratio of the remaining data amount to the total data amount, and the ratio of the remaining data amount to the remaining capacity of the receiver are related, so that the manner of data transmission can be adjusted in time according to the state of the data transmission, so that the user experience is good, High efficiency of execution.
  • FIG. 1 is a flowchart of a method for data transmission according to an embodiment of the present disclosure, which specifically includes the following steps:
  • This step finds the receiver that meets the preset conditions to improve the efficiency of data transmission.
  • the following is an example of point-to-point data transmission to illustrate the beneficial effects.
  • the receiver with stable connection status and short path between the senders is filtered out, and the sender preferentially transmits data to the receiver.
  • the receiver and the sender jointly transmit data to other recipients, so that the overall data transmission efficiency can be significantly higher.
  • the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver.
  • the data transmission specification may include multiple parameters or only one parameter.
  • the data transmission specification provided includes the capacity of the package of data.
  • the data transmission specifications are different according to the specific services.
  • the specific services are specifically described later, and are not described here.
  • S300 Send data to the receiver according to the determined data transmission specification.
  • the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver, so that the data may be based on the data.
  • the status of the transmission adjusts the way of data transmission in time, so that the user experience is good and the execution efficiency is high.
  • the receiver can be the recipient of the file.
  • Data transfer specifications can include file capacity.
  • the data can be the contents of the file.
  • the amount of remaining data can be the remaining file capacity.
  • the total amount of data can be the total file size.
  • the remaining capacity of the receiver can be the remaining capacity of the file recipient.
  • the server of the file sender searches for the server of the file recipient in an effective connection state with the server of the file sender in real time. For example, the server of the file recipient connected to the server of the file sender is detected by the network device identification number, the account number, and the like. Then, the server of the file sender automatically measures the network transmission speed between the server of the file sender and the server of the file receiver that is in a valid connection state with the server of the file sender, and the file receiver is based on the network transmission speed. Server sorting. The server from which the file recipient with the maximum network transmission speed of the server of the file sender is selected.
  • the file sender's server sorts all the files to be transferred according to the size of the file. For example, a video file of about 100 M capacity, an audio file of about 10 M capacity, and a text file of about 1 M capacity are sequentially sorted according to the size of the capacity. Then, the server of the file sender performs calculation of the file capacity to be transmitted according to a preset calculation model.
  • the file capacity to be transferred is a dynamically changing parameter that is used to characterize the magnitude of the capacity of the next transmitted file.
  • the file capacity to be transferred is a function of at least one of a ratio of a remaining period of the data transmission, a ratio of the remaining file capacity to the total file capacity, and a ratio of the remaining file capacity to the remaining capacity of the file receiver.
  • the large-capacity data transmission such as video is preferentially performed, and when the large-capacity data is verified, the remarks and abstracts are simultaneously performed.
  • these small-capacity data can be transmitted in a shorter time, thereby improving the efficiency of file transmission as a whole and improving the user experience.
  • the function of the file to be transferred is a function of the remaining period of data transmission as an independent variable, when the remaining period is relative.
  • the file size to be transmitted is relatively large.
  • the file with a larger capacity in the file is preferentially transferred.
  • the remaining period is small, the file with a smaller capacity in the file is transferred.
  • the sequentially determined file capacities to be transmitted are 100M, 10M, and 1M, respectively.
  • the video file having a file capacity of about 100 M capacity is preferentially transmitted; the audio file transmission of about 10 M capacity is performed by using the time interval of the video file verification link; and then the audio file verification link is utilized.
  • the time interval is to transfer the text file around 1M capacity, so the file transfer efficiency is high throughout the process.
  • the file capacity to be transmitted here is a data transmission specification, and the file capacity to be transmitted may also be a function of the ratio of the ratio of the remaining file capacity to the total file capacity, the ratio of the remaining file capacity to the remaining capacity of the file receiver.
  • the ratio of the file capacity to be transmitted to the ratio of the remaining file capacity to the total file capacity is positively correlated.
  • the ratio of the remaining file capacity to the total file capacity is 0.5; when the remaining file capacity is 100M, the ratio of the remaining file capacity to the total file capacity is 0.1.
  • the reference value of the file capacity to be transmitted is 100M
  • the file with a capacity of about 50M is preferentially transmitted, and the remaining file capacity becomes small, and then the file of about 10M capacity is sequentially transmitted.
  • the remaining file capacity is large, the file with a large capacity is preferentially transmitted, and when the large-capacity data is verified, the small-capacity data is transmitted at the same time, thereby improving the efficiency of file transfer as a whole and improving the user experience.
  • the file capacity to be transmitted is set, and the ratio of the remaining file capacity and the remaining capacity of the file receiver is positively correlated.
  • the ratio of the remaining file capacity to the remaining capacity of the file receiver is 0.5; when the remaining file capacity is 400M, and the remaining capacity of the file receiver is 1G, the remaining file capacity and file The receiver's remaining capacity ratio is 0.4.
  • the reference value of the file capacity to be transmitted is 100M, and the file capacity to be transmitted is determined according to the product of the reference value of the file capacity to be transmitted, the remaining file capacity, and the ratio of the remaining capacity of the file receiver.
  • the file receiver has a certain remaining capacity, and the file with a large capacity is preferentially transmitted, so that the remaining capacity of the file receiver is not enough to accommodate a large-capacity file, and the utilization of the remaining capacity of the file receiver can be improved.
  • the ratio of the remaining period the ratio of the remaining file capacity to the total file capacity, the ratio of the remaining file capacity to the remaining capacity of the file receiver, and the three independent variables can be appropriately combined according to the actual situation to determine the file capacity to be transmitted.
  • the recipient can be the buyer.
  • the data transmission specification can include a unit price.
  • the data can be transaction information.
  • the amount of data remaining can be the quantity of goods in stock.
  • the total amount of data can be the total amount of goods.
  • the remaining capacity of the receiver can be the purchase amount of the purchaser.
  • the seller's server finds the online purchaser in real time, or searches for the previous purchaser based on the sales record. For example, from among a number of purchasers connected to the server, a plurality of online purchasers are selected according to the offline or online status of the purchaser's account number. It is also possible to select a plurality of buyers with higher ranks from among a plurality of purchasers according to the purchaser level, for example, select a five-star purchaser from among them.
  • the method chosen by the purchaser varies depending on the nature of the specific sales business.
  • the seller's server determines the unit price of the item based on the internal pricing system.
  • the unit price of the commodity can be dynamically adjusted to meet the demand for merchandise promotion.
  • the unit price is a function of the remaining period of the product sale, the ratio of the stock amount of the commodity to the total amount of the commodity, and the ratio of the stock amount of the commodity to the purchase amount of the purchaser as an independent variable.
  • the unit price of the set item is positively correlated with the remaining period of the item sale.
  • the remaining period of the sale of the goods may be the remaining period of the shelf life of the goods, or may be the duration of the service, for example, the time limit from the beginning of a performance.
  • the unit price of the product is 100 yuan, and the remaining period of the shelf life of the product is 60 days, the unit price of the product is 10% of the unit price reference value, that is, 90 yuan.
  • the product is The unit price is executed at 50% of the unit price reference value, that is, 50 yuan.
  • the unit price of the commodity can also be the remaining period of the commodity sale, the ratio of the stock of the commodity to the total amount of the commodity, the ratio of the stock of the commodity to the purchase amount of the purchaser, and an appropriate combination is adopted according to the actual situation.
  • the seller's server pushes the transaction information of the product discount promotion to the determined buyer.
  • the transaction information here includes, but is not limited to, offer information such as offers, offer invitations, contracts, and the like.
  • the purchaser After receiving the transaction information, the purchaser is free to determine whether to conduct the transaction and to report to the seller's server whether to purchase the transaction information.
  • item transportation is similar to data transmission.
  • the recipient can be a warehouse point.
  • the item shipping specification may include a load amount corresponding to the capacity of the package in which the data transfer specification may include data.
  • the transport item corresponds to the transmitted data.
  • the amount of data remaining corresponds to the inventory of the item.
  • the total amount of data corresponds to the total amount of items.
  • the remaining capacity of the receiver corresponds to the remaining capacity of the storage point.
  • the server of the logistics system first determines the storage point with the remaining capacity in the vicinity of the item to be stored. For example, the server of the logistics system selects several storage points with the remaining capacity in the forefront according to the dynamic change of the remaining capacity of the networked storage points.
  • the server of the logistics system sorts the items to be stored in accordance with the weight or volume of the item, or another comprehensive parameter of both. For example, the items to be stored are sorted in order according to the size of the volume.
  • the server of the logistics system performs the calculation of the load amount according to the preset calculation model.
  • the load is a dynamically changing parameter that characterizes the magnitude of the weight or volume of the next transport item.
  • the loading amount is a function of at least one of a ratio of the remaining period of the item storage, the ratio of the item inventory quantity to the total item quantity, and the ratio of the item inventory quantity to the remaining capacity of the storage point.
  • the load can also be the remaining time of the goods into the warehouse, the ratio of the inventory of the goods to the total amount of the goods, the ratio of the inventory of the goods to the remaining capacity of the storage point, and take appropriate combinations according to the actual situation.
  • the server of the logistics system After determining the loading amount, issues transportation information of the transportation load size item to the determined storage point. After the storage point is confirmed, the transportation of the item is started.
  • the method further includes:
  • the step of transmitting data to the receiver according to the determined data transmission specification is performed on the remaining data, and conversely, the determined data transmission is not performed on the remaining data.
  • the starting condition for setting the subsequent step is: when the remaining period is less than or equal to the remaining period threshold, the remaining data amount is greater than or equal to the remaining data amount threshold. It is determined whether to continue the subsequent steps by judging whether the starting condition is satisfied. When the start condition is satisfied, the subsequent steps are continued, and when the start condition is not satisfied, the subsequent steps are stopped. The determination of whether the activation condition is satisfied is set in the embodiment of the present application before determining the recipient and determining the data transmission specification. The subsequent steps are performed only when the start condition is satisfied, so that the execution efficiency of the method of data transfer can be improved.
  • the start condition for setting the subsequent steps is: when the remaining period is less than or equal to the remaining period threshold When the value is, the remaining file size is greater than or equal to the remaining file capacity threshold.
  • the starting condition for setting the subsequent steps is: when the remaining period is less than or equal to the remaining period threshold, the commodity inventory amount is greater than or equal to the commodity inventory threshold.
  • the starting condition for setting the subsequent step is: when the remaining period is less than or equal to the remaining period threshold, the item inventory quantity is greater than or equal to the item inventory quantity threshold.
  • determining the receiver includes:
  • the file transfer service For the file transfer service, look for the logged-in user within the preset distance range around the sender as the file recipient. For example, a newly developed service for transmitting files indoors finds a logged-in user as a file recipient within the scope of the house. Alternatively, the service that pushes the message within the radiation range of the base station looks for the logged-in user within the radiation range of the base station as the message receiver.
  • the purchase party who logs in within the preset distance around the supplier is found. For example, look for buyers who are logged in within one kilometer of the supplier.
  • the preset distance here can be set according to the needs of the business.
  • an open storage point within a preset distance around the shipping point is sought.
  • the data transmission specification is related to the remaining duration of the data transmission, and specifically includes:
  • the remaining period is positively related to the term coefficient.
  • the file capacity reference value is obtained.
  • the term coefficient is selected according to the remaining period.
  • the remaining period is positively correlated with the term coefficient, that is, under normal conditions, the longer the remaining period, the larger the term coefficient.
  • the time limit coefficient is 0.9; when the remaining period is 10 minutes to 29 minutes, the time limit coefficient is 0.8.
  • the term coefficient may continuously change with the remaining period, or may be a hash value that varies stepwise with the remaining period.
  • the product value of the reference value and the term coefficient is calculated, and the file capacity is calculated as the product of the file capacity reference value and the term coefficient.
  • the file capacity when the remaining period is long, the file capacity is large; when the remaining period is short, the file capacity is small. In this way, in the case where the time limit is sufficient, the file with the file capacity is preferentially transferred, and when the time limit is urgent, the file with a small file capacity is transferred. This is because files with large capacity are usually substantive and important documents, while files with small capacity are usually memo and descriptive general documents. Therefore, this method is especially suitable for emergency backup of files.
  • the unit price reference value is obtained.
  • the term coefficient is selected according to the remaining period.
  • the remaining period is positively correlated with the term coefficient, that is, under normal conditions, the longer the remaining period, the larger the term coefficient.
  • the time limit coefficient is 0.9; when the remaining period is 10 minutes to 29 minutes, the time limit coefficient is 0.8.
  • the term coefficient may continuously change with the remaining period, or may be a hash value that varies stepwise with the remaining period.
  • the product value of the reference value and the term coefficient is calculated, and the unit price is calculated as the product of the unit price reference value and the term coefficient.
  • the unit price when the remaining period is long, the unit price is large; when the remaining period is short, the unit price is small. In this way, in the case of ample time limit, the high unit price is preferentially maintained for commodity trading, and when the time limit is tight, the unit price of the commodity is greatly reduced. Therefore, this method is particularly suitable for price reduction promotion of commodities.
  • the load reference value is obtained.
  • the term coefficient is selected according to the remaining period.
  • the remaining period is positively related to the term coefficient, that is to say, under normal circumstances, the longer the remaining period, the greater the term coefficient.
  • the term coefficient may continuously change with the remaining period, or may be a hash value that varies stepwise with the remaining period.
  • the product value of the reference value and the term coefficient is calculated, and the load is calculated as the product of the load reference value and the term coefficient.
  • the remaining period is long, the load is large; when the remaining period is short, the load is small. Priority is given to warehousing large items to improve the utilization of storage points.
  • the data transmission specification is related to the ratio of the remaining data volume to the total data volume, and specifically includes:
  • S213 The set value of the data transmission specification is calculated as a product of the reference value and the residual coefficient.
  • the file capacity reference value is obtained.
  • the ratio of the remaining file capacity to the total file capacity is calculated as the residual coefficient.
  • the remaining file capacity is positively correlated with the remaining coefficient, that is, under normal conditions, the larger the remaining file capacity, the larger the remaining coefficient.
  • the residual coefficient varies continuously with the remaining file capacity.
  • the residual coefficient may also be a hash value that varies stepwise with the remaining period.
  • the product value of the reference value and the residual coefficient is calculated, and the file package capacity is calculated as the product of the package capacity reference value and the residual coefficient.
  • this method is especially suitable for emergency backup of files.
  • the unit price reference value is obtained.
  • the ratio of the stock of goods to the total amount of goods is calculated as the residual coefficient.
  • the commodity inventory amount and the residual coefficient are positive Correlation, that is to say, under normal conditions, the larger the inventory of goods, the greater the residual coefficient.
  • the residual coefficient varies continuously with the amount of commodity stock.
  • the residual coefficient may also be a hash value that varies stepwise with the remaining period.
  • the product value of the reference value and the residual coefficient is calculated, and the unit price is calculated as the product of the commodity unit price reference value and the residual coefficient.
  • this method is particularly suitable for price reduction promotion of goods.
  • the load reference value is obtained.
  • the ratio of the inventory of the item to the total amount of the item is calculated as the residual coefficient.
  • the inventory amount of the item is positively correlated with the remaining coefficient, that is, under normal conditions, the larger the inventory amount of the item, the larger the residual coefficient.
  • the residual coefficient varies continuously with the inventory of the item.
  • the residual coefficient may also be a hash value that varies stepwise with the remaining period.
  • the product of the reference value and the residual coefficient is calculated, and the load is calculated as the product of the load reference value and the residual coefficient.
  • the data transmission specification is related to the ratio of the remaining data amount to the remaining capacity of the receiver, and specifically includes:
  • S223 Determine a saturation coefficient according to a ratio of the remaining data amount to the remaining capacity of the receiver
  • the saturation coefficient is inversely related to the ratio of the remaining data amount to the remaining capacity of the receiver.
  • the file capacity reference value is obtained.
  • the ratio of the remaining file capacity to the remaining capacity of the file recipient is calculated.
  • the saturation coefficient is determined based on the ratio of the remaining file capacity to the remaining capacity of the file recipient.
  • the above ratio is negatively correlated with the saturation coefficient, that is, under normal conditions, the smaller the ratio, the larger the saturation coefficient. For example, when the ratio is greater than 1, the saturation coefficient is 0.5; when the ratio is less than or equal to 1, the saturation coefficient is 1.
  • the saturation coefficient is a hash value that varies stepwise with the remaining file capacity.
  • the saturation coefficient may continuously change with the remaining file capacity, for example, inversely proportional.
  • the product value of the file capacity reference value and the saturation coefficient is calculated, and the file capacity is calculated as the product value of the package capacity reference value and the saturation coefficient.
  • this method is especially suitable for emergency backup of files.
  • the unit price reference value is obtained. Then, calculate the ratio of the stock of goods to the purchase amount of the purchaser. Next, the saturation coefficient is determined based on the ratio of the stock quantity of the commodity to the purchase amount of the purchaser.
  • the above ratio is negatively correlated with the saturation coefficient, that is, under normal conditions, the smaller the ratio, the larger the saturation coefficient. For example, when the ratio is greater than 1, the saturation coefficient is 0.5; when the ratio is less than or equal to 1, the saturation coefficient is 1.
  • the saturation coefficient is a hash value that varies stepwise with the inventory amount of the commodity.
  • the saturation coefficient may continuously change with the inventory amount of the commodity, for example, inversely proportionally.
  • the calculation benchmark The product of the value and the saturation coefficient is calculated as the product of the unit price and the saturation coefficient. Like the term coefficient, this method is particularly suitable for price reduction promotion of goods.
  • the load reference value is obtained.
  • the ratio of the inventory amount of the item to the remaining capacity of the storage point is calculated.
  • the saturation coefficient is determined based on the ratio of the inventory amount of the item to the remaining capacity of the storage point.
  • the above ratio is negatively correlated with the saturation coefficient, that is, under normal conditions, the smaller the ratio, the larger the saturation coefficient. For example, when the ratio is greater than 1, the saturation coefficient is 0.5; when the ratio is less than or equal to 1, the saturation coefficient is 1.
  • the saturation coefficient is a hash value that varies stepwise with the inventory amount of the item.
  • the saturation coefficient may continuously change with the inventory amount of the item, for example, inversely proportionally.
  • the product of the reference value and the saturation coefficient is calculated, and the load is calculated as the product of the load reference value and the saturation coefficient.
  • this method is particularly suitable for the storage of fresh-keeping products.
  • the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver. That is, the data transmission specification is related to the reference value and is related to one or more of the term coefficient, the residual coefficient, and the saturation coefficient.
  • the file capacity is related to the file capacity reference value and is related to one or more of the term coefficient, the residual coefficient, and the saturation coefficient.
  • the unit price is related to the unit price reference value and is related to one or more of the term coefficient, the residual coefficient, and the saturation coefficient.
  • the load amount is related to the load reference value and is related to one or more of the term coefficient, the residual coefficient, and the saturation coefficient.
  • the data is sent to the receiver according to the determined data transmission specification, and specifically includes:
  • the data is transmitted to the receiver in accordance with the data transmission specification.
  • the file recipient is requested to perform file transfer according to the file capacity. After obtaining the response of the file recipient to the file transfer, the data is transmitted to the file recipient according to the file capacity.
  • the purchaser sends a request for the transaction according to the unit price, and after obtaining the response of the purchaser to the transaction, the transaction information is sent to the receiver according to the unit price.
  • the movie ticket is watched at 12:30. According to the usual practice, the ticket sales are stopped 10 minutes before the viewing. It should be pointed out that the contents of the settings mentioned below are based on the actual situation of the business of selling movie tickets on the Internet. Parameters, these parameters can be set according to freely. Set 12:20 as the cut-off time.
  • the remaining time threshold is set to 60 minutes, that is, when the movie ticket sales period is less than 60 minutes, the subsequent steps of the method are performed according to the situation.
  • the threshold value of the remaining data is set to 30, that is, when the movie ticket sales deadline is less than or equal to 60 minutes, and more than 30 movie tickets are not sold, the subsequent steps of the method are performed.
  • the time limit coefficient is 0.9, the remaining period is 10 minutes to 29 minutes, the time limit coefficient is 0.8, and the remaining period is less than 10 minutes, the time limit coefficient is 0.5. Assume that the remaining period is 20 minutes at this time, and the selection period coefficient is 0.8.
  • the saturation coefficient is set to 0.5.
  • the saturation coefficient is set to 1. Assume that the number of tickets not sold at this time is greater than the purchase amount of the purchaser, and the saturation coefficient is determined to be 0.5.
  • an order for the movie ticket price of 16 yuan is issued to the purchaser.
  • a movie ticket is issued to the purchaser.
  • the computer device providing the dynamic change of the movie ticket here is the server of the movie theater.
  • the computer device that provides the movie ticket price and transaction information may be a server of a movie theater or a server of a third party transaction platform.
  • the computer equipment that provides the movie ticket price and transaction information is the server of the third-party trading platform, the two servers are connected through the network to realize information sharing and complete the entire transaction process.
  • a request for goods transportation according to the loading amount is issued to the storage point, and when the storage point agrees to the transportation of the item, the item is transported to the storage point according to the loading amount.
  • the present application further provides a device 1 for data transmission, including:
  • Search module 10 configured to determine a recipient
  • the operation module 20 is configured to determine a data transmission specification
  • the transmitting module 30 is configured to send data to the receiver according to the determined data transmission specification
  • the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver.
  • the device further includes a determination module 40.
  • the determining module 40 is configured to:
  • the step of transmitting data to the receiver according to the determined data transmission specification is performed on the remaining data, and conversely, the determined data transmission is not performed on the remaining data.
  • search module 10 is configured to determine a receiver, specifically for:
  • the data transmission specification is related to the remaining period of data transmission.
  • the operation module 20 is specifically configured to:
  • the set value of the data transmission specification is calculated as the product of the reference value and the term coefficient
  • the remaining period is positively related to the term coefficient.
  • the data transmission specification is related to the ratio of the remaining data amount to the total data amount.
  • the operation module 20 is specifically configured to:
  • the set value of the data transmission specification is the product of the reference value and the residual coefficient.
  • the data transmission specification is related to the ratio of the remaining data amount to the remaining capacity of the receiver.
  • the operation module 20 is specifically configured to:
  • the saturation coefficient is inversely related to the ratio of the remaining data amount to the remaining capacity of the receiver.
  • the transmission module 30 is configured to send data to the receiver according to the determined data transmission specification, specifically for:
  • the data is transmitted to the receiver in accordance with the data transmission specification.
  • the receiving party is a buyer
  • the data transmission specification is unit price
  • Data is transaction information
  • the amount of remaining data is the stock of goods
  • the total amount of data is the total amount of goods
  • the remaining capacity of the receiver is the purchase amount of the purchaser.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely 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, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable numerical 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 numerical 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.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, numerical structures, modules of the programs, or other values.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated numerical signals and carrier waves.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
  • the application 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, CD-ROM, optical storage, etc.) including computer usable program code.

Abstract

Disclosed in the present application are a data transmission method and device corresponding thereto. The data transmission method comprises the following steps: determining a receiving party; determining a data transmission specification; transmitting data to the receiving party according to the determined data transmission specification, wherein the data transmission specification relates to at least one of a remaining time to expiration of the data transmission, a ratio of a remaining data volume to the total data volume and a ratio of the remaining data volume to the remaining capacity of the receiving party. Thereby, the present invention can adjust the data transmission in a timely manner according to a state of the data transmission, thus providing a good user experience and high execution efficiency.

Description

数据传输的方法及装置Data transmission method and device
本申请要求2015年04月20日递交的申请号为201510188759.1、发明名称为“数据传输的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application No. 201510188759. filed on Apr. 20, 2015, which is incorporated herein by reference.
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种数据传输的方法及装置。The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for data transmission.
背景技术Background technique
现有技术中,在进行数据传输时,由人工的方式设定各项数据传输任务的优先级,或者,简单的根据建立数据传输任务的时间先后顺序,设定各项数据传输任务优先级。In the prior art, when data transmission is performed, the priority of each data transmission task is manually set, or the priority of each data transmission task is set according to the chronological order of establishing the data transmission task.
由此可以看出,现有的数据传输的方法比较简单。对于具有强烈的时效性质的数据,现有的数据传输方法不能够精细化地调整数据传输的方式,以便满足数据传输的时效要求。现有的数据传输的方法的用户体验差、执行效率低。It can be seen that the existing method of data transmission is relatively simple. For data with strong aging properties, existing data transmission methods cannot finely adjust the way data is transmitted in order to meet the aging requirements of data transmission. The existing data transmission method has a poor user experience and low execution efficiency.
因此,发明人在对现有的数据传输的方法进行研究的基础上,提供一种用户体验好、执行效率高的数据传输的方法及装置。Therefore, the inventors have provided a method and apparatus for data transmission with good user experience and high execution efficiency on the basis of research on existing methods of data transmission.
发明内容Summary of the invention
本申请实施例提供一种用户体验好、执行效率高的数据传输的方法,具体的,一种数据传输的方法,包括以下步骤:确定接收方;确定数据传输规格;根据确定的数据传输规格向接收方发送数据;其中,数据传输规格与数据传输的剩余期限、剩余数据量与总数据量的比值、剩余数据量与接收方剩余容量的比值中至少一个相关。The embodiment of the present application provides a method for data transmission with good user experience and high execution efficiency. Specifically, a data transmission method includes the following steps: determining a receiver; determining a data transmission specification; and determining a data transmission specification according to the determined data transmission specification. The receiver transmits data; wherein the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver.
本申请实施例还提供一种数据传输的装置,包括:The embodiment of the present application further provides an apparatus for data transmission, including:
搜索模块,用于确定接收方;a search module for determining a recipient;
运算模块,用于确定数据传输规格;An arithmetic module for determining a data transmission specification;
传输模块,用于根据确定的数据传输规格向接收方发送数据;a transmission module, configured to send data to the receiver according to the determined data transmission specification;
其中,数据传输规格与数据传输的剩余期限、剩余数据量与总数据量的比值、剩余数据量与接收方剩余容量的比值中至少一个相关。Wherein, the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver.
本申请实施例提供的数据传输的方法和装置,至少具有如下有益效果:The method and apparatus for data transmission provided by the embodiments of the present application have at least the following beneficial effects:
数据传输规格与数据传输的剩余期限、剩余数据量与总数据量的比值、剩余数据量与接收方剩余容量的比值中至少一个相关,从而可以根据数据传输的状态及时调整数据传输的方式,从而用户体验好、执行效率高。 The data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver, so that the manner of data transmission can be adjusted in time according to the state of the data transmission, thereby User experience is good and execution efficiency is high.
附图说明DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1为本申请实施例提供的数据传输的方法的流程图。FIG. 1 is a flowchart of a method for data transmission provided by an embodiment of the present application.
图2为本申请实施例提供的确定数据传输规格的一个流程图。FIG. 2 is a flowchart of determining data transmission specifications according to an embodiment of the present application.
图3为本申请实施例提供的确定数据传输规格的另一个流程图。FIG. 3 is another flowchart of determining data transmission specifications according to an embodiment of the present application.
图4为本申请实施例提供的确定数据传输规格的第三个流程图4 is a third flowchart of determining data transmission specifications according to an embodiment of the present application.
图5为本申请实施例提供的数据传输的装载的结构示意图。FIG. 5 is a schematic structural diagram of loading of data transmission according to an embodiment of the present application.
具体实施方式detailed description
为了解决现有的数据传输方法不能够精细化地调整数据传输的方式,以致用户体验差、执行效率低的技术问题,在本申请实施例提供的数据传输的方法及装置中,数据传输规格与数据传输的剩余期限、剩余数据量与总数据量的比值、剩余数据量与接收方剩余容量的比值中至少一个相关,从而可以根据数据传输的状态及时调整数据传输的方式,从而用户体验好、执行效率高。In the data transmission method and device provided by the embodiments of the present application, the data transmission specification and the method for the data transmission are provided in the method and the device for the data transmission provided by the embodiment of the present application. The remaining period of the data transmission, the ratio of the remaining data amount to the total data amount, and the ratio of the remaining data amount to the remaining capacity of the receiver are related, so that the manner of data transmission can be adjusted in time according to the state of the data transmission, so that the user experience is good, High efficiency of execution.
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the present application will be clearly and completely described in the following with reference to the specific embodiments of the present application and the corresponding drawings. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
图1为本申请实施例提供的数据传输的方法的流程图,具体包括以下步骤:FIG. 1 is a flowchart of a method for data transmission according to an embodiment of the present disclosure, which specifically includes the following steps:
S100:确定接收方。S100: Determine the recipient.
本步骤查找符合预设条件的接收方,用以提高数据传输的效率。下面以点对点的数据传输为例来说明该有益效果。在本步骤中,将与发送方之间连接状态稳定、路径短的接收方筛选出来,由发送方优先向该接收方传输数据。数据传输到该优先的接收方后,由该接收方和发送方共同向其他接收方传输数据,那么,从整体上可以显著高数据传输效率。This step finds the receiver that meets the preset conditions to improve the efficiency of data transmission. The following is an example of point-to-point data transmission to illustrate the beneficial effects. In this step, the receiver with stable connection status and short path between the senders is filtered out, and the sender preferentially transmits data to the receiver. After the data is transmitted to the preferred recipient, the receiver and the sender jointly transmit data to other recipients, so that the overall data transmission efficiency can be significantly higher.
如何确定接收方,根据具体的业务的不同而有所不同,后面会作详细说明,此处不在赘述。How to determine the receiver, depending on the specific business, will be described in detail later, and will not be described here.
S200:确定数据传输规格。 S200: Determine a data transmission specification.
在本申请实施例中,数据传输规格与数据传输的剩余期限、剩余数据量与总数据量的比值、剩余数据量与接收方剩余容量的比值中至少一个相关。数据传输规格,可以包括多个参数,也可以仅包括一个参数。在本申请实施例中,提供的数据传输规格包括数据的封装包的容量。In the embodiment of the present application, the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver. The data transmission specification may include multiple parameters or only one parameter. In the embodiment of the present application, the data transmission specification provided includes the capacity of the package of data.
数据传输规格,根据具体的业务不同而不同,后面结合具体的业务来具体说明,此处不在赘述。The data transmission specifications are different according to the specific services. The specific services are specifically described later, and are not described here.
S300:根据确定的数据传输规格向接收方发送数据。S300: Send data to the receiver according to the determined data transmission specification.
本申请实施例提供的数据传输的方法,数据传输规格与数据传输的剩余期限、剩余数据量与总数据量的比值、剩余数据量与接收方剩余容量的比值中至少一个相关,从而可以根据数据传输的状态及时调整数据传输的方式,从而用户体验好、执行效率高。In the data transmission method provided by the embodiment of the present application, the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver, so that the data may be based on the data. The status of the transmission adjusts the way of data transmission in time, so that the user experience is good and the execution efficiency is high.
对于一项文件传输业务,接收方可以为文件接收方。数据传输规格可以包括文件容量。数据可以为文件内容。剩余数据量可以为剩余文件容量。总数据量可以为文件总容量。接收方剩余容量可以为文件接收方剩余容量。For a file transfer service, the receiver can be the recipient of the file. Data transfer specifications can include file capacity. The data can be the contents of the file. The amount of remaining data can be the remaining file capacity. The total amount of data can be the total file size. The remaining capacity of the receiver can be the remaining capacity of the file recipient.
在本申请实施例中,由文件发送方的服务器实时查找与文件发送方的服务器处于有效连接状态的文件接收方的服务器。例如,通过网络设备标识号、账号等,检测到与文件发送方的服务器连接的文件接收方的服务器。然后,文件发送方的服务器自动测量文件发送方的服务器、与文件发送方的服务器处于有效连接状态的文件接收方的服务器两者之间的网络传输速度,并根据网络传输速度将文件接收方的服务器排序。从中选择与文件发送方的服务器具有最大网络传输速度的文件接收方的服务器。In the embodiment of the present application, the server of the file sender searches for the server of the file recipient in an effective connection state with the server of the file sender in real time. For example, the server of the file recipient connected to the server of the file sender is detected by the network device identification number, the account number, and the like. Then, the server of the file sender automatically measures the network transmission speed between the server of the file sender and the server of the file receiver that is in a valid connection state with the server of the file sender, and the file receiver is based on the network transmission speed. Server sorting. The server from which the file recipient with the maximum network transmission speed of the server of the file sender is selected.
文件发送方的服务器将待传输的全部文件按照文件容量的大小进行排序。例如,按照容量的大小,依次将100M容量左右的视频文件、10M容量左右的音频文件、1M容量左右的文本文件排序。然后,文件发送方的服务器根据预设的计算模型进行待传输文件容量的计算。待传输文件容量是一个动态变化的参数,用以表征下一个传输文件的容量的数量级。待传输文件容量是以数据传输的剩余期限、剩余文件容量与文件总容量的比值、剩余文件容量与文件接收方剩余容量的比值中至少一个为自变量的函数。The file sender's server sorts all the files to be transferred according to the size of the file. For example, a video file of about 100 M capacity, an audio file of about 10 M capacity, and a text file of about 1 M capacity are sequentially sorted according to the size of the capacity. Then, the server of the file sender performs calculation of the file capacity to be transmitted according to a preset calculation model. The file capacity to be transferred is a dynamically changing parameter that is used to characterize the magnitude of the capacity of the next transmitted file. The file capacity to be transferred is a function of at least one of a ratio of a remaining period of the data transmission, a ratio of the remaining file capacity to the total file capacity, and a ratio of the remaining file capacity to the remaining capacity of the file receiver.
例如,在一种企业数据远端备份的应用场景中,在数据传输的剩余期限充裕的情况下,优先进行视频等大容量数据传输,在对大容量数据进行验证的时候,同时进行备注、摘要等小容量数据的传输,这些小容量数据可利用较短的时间进行传输,从而,可以从整体上提高文件传输的效率,提高用户的体验度。For example, in an application scenario where the enterprise data is remotely backed up, when the remaining period of the data transmission is sufficient, the large-capacity data transmission such as video is preferentially performed, and when the large-capacity data is verified, the remarks and abstracts are simultaneously performed. Such as the transmission of small-capacity data, these small-capacity data can be transmitted in a shorter time, thereby improving the efficiency of file transmission as a whole and improving the user experience.
以待传输文件容量是以数据传输的剩余期限为自变量的函数为例,当剩余期限相对 较长时,待传输文件容量相对较大。这样根据文件发送方的服务器中文件的排列顺序,优先传输文件中容量较大的文件。当剩余期限小时,传输文件中容量较小的文件。例如,随着剩余期限逐渐变短,依次确定的待传输文件容量分别为100M、10M、1M。For example, the function of the file to be transferred is a function of the remaining period of data transmission as an independent variable, when the remaining period is relative. When it is long, the file size to be transmitted is relatively large. In this way, according to the order of the files in the server of the file sender, the file with a larger capacity in the file is preferentially transferred. When the remaining period is small, the file with a smaller capacity in the file is transferred. For example, as the remaining term is gradually shortened, the sequentially determined file capacities to be transmitted are 100M, 10M, and 1M, respectively.
根据确定的数据传输规格向接收方发送数据时,优先传输文件容量在100M容量左右的视频文件;利用视频文件验证环节的时间间隔,进行10M容量左右的音频文件的传输;接着利用音频文件验证环节的时间间隔,进行1M容量左右的文本文件的传输,因此,整个过程文件传输的效率高。When transmitting data to the receiver according to the determined data transmission specification, the video file having a file capacity of about 100 M capacity is preferentially transmitted; the audio file transmission of about 10 M capacity is performed by using the time interval of the video file verification link; and then the audio file verification link is utilized. The time interval is to transfer the text file around 1M capacity, so the file transfer efficiency is high throughout the process.
这里的待传输文件容量就是一种数据传输规格,待传输文件容量还可以是以剩余文件容量与文件总容量的比值、剩余文件容量与文件接收方剩余容量的比值为自变量的函数。The file capacity to be transmitted here is a data transmission specification, and the file capacity to be transmitted may also be a function of the ratio of the ratio of the remaining file capacity to the total file capacity, the ratio of the remaining file capacity to the remaining capacity of the file receiver.
在本申请实施例中,设定待传输文件容量与剩余文件容量与文件总容量的比值正相关。例如,文件总容量为1G,剩余文件容量为500M时,剩余文件容量与文件总容量比值为0.5;剩余文件容量为100M时,剩余文件容量与文件总容量比值为0.1。假设,待传输文件容量的基准值为100M,待传输文件容量根据待传输文件容量的基准值、剩余文件容量与文件总容量比值两者的乘积确定。也就是说,当比值为0.5时,待传输文件容量为100M*0.5=50M,当比值为0.1时,待传输文件容量为100M*0.1=10M,即,文件总容量一定,剩余文件容量大时,优先传输50M容量左右的文件,剩余文件容量变小时,再依次传输10M容量左右的文件。剩余文件容量大时,优先传输容量大的文件,在对大容量数据进行验证的时候,同时进行小容量数据的传输,从而,整体上可以提高文件传输的效率,提高用户的体验度。In the embodiment of the present application, the ratio of the file capacity to be transmitted to the ratio of the remaining file capacity to the total file capacity is positively correlated. For example, when the total file capacity is 1G and the remaining file capacity is 500M, the ratio of the remaining file capacity to the total file capacity is 0.5; when the remaining file capacity is 100M, the ratio of the remaining file capacity to the total file capacity is 0.1. Assume that the reference value of the file capacity to be transmitted is 100M, and the file capacity to be transmitted is determined according to the product of the reference value of the file capacity to be transmitted, the remaining file capacity, and the total file capacity ratio. That is to say, when the ratio is 0.5, the file capacity to be transmitted is 100M*0.5=50M. When the ratio is 0.1, the file capacity to be transmitted is 100M*0.1=10M, that is, the total file capacity is constant, and the remaining file capacity is large. The file with a capacity of about 50M is preferentially transmitted, and the remaining file capacity becomes small, and then the file of about 10M capacity is sequentially transmitted. When the remaining file capacity is large, the file with a large capacity is preferentially transmitted, and when the large-capacity data is verified, the small-capacity data is transmitted at the same time, thereby improving the efficiency of file transfer as a whole and improving the user experience.
在本申请实施例中,设定待传输文件容量,与剩余文件容量、文件接收方剩余容量两者的比值正相关。例如,剩余文件容量为500M,文件接收方剩余容量为1G时,剩余文件容量与文件接收方剩余容量比值为0.5;剩余文件容量为400M,文件接收方剩余容量为1G时,剩余文件容量与文件接收方剩余容量比值为0.4。假设,待传输文件容量的基准值为100M,待传输文件容量根据待传输文件容量的基准值、剩余文件容量与文件接收方剩余容量比值两者的乘积确定。则,剩余文件容量为500M时,确定的待传输文件容量为100M*0.5=50M,而当剩余文件容量为400M时,确定的待传输文件容量为100M*0.4=40M。即,当文件接收方剩余容量一定,剩余文件容量大时,则优先传输容量大的文件。文件接收方剩余容量一定,优先传输容量大的文件,从而避免文件接收方剩余容量不足以容纳大容量的文件,可以提高文件接收方剩余容量的利用率。 In the embodiment of the present application, the file capacity to be transmitted is set, and the ratio of the remaining file capacity and the remaining capacity of the file receiver is positively correlated. For example, when the remaining file capacity is 500M and the remaining capacity of the file receiver is 1G, the ratio of the remaining file capacity to the remaining capacity of the file receiver is 0.5; when the remaining file capacity is 400M, and the remaining capacity of the file receiver is 1G, the remaining file capacity and file The receiver's remaining capacity ratio is 0.4. It is assumed that the reference value of the file capacity to be transmitted is 100M, and the file capacity to be transmitted is determined according to the product of the reference value of the file capacity to be transmitted, the remaining file capacity, and the ratio of the remaining capacity of the file receiver. Then, when the remaining file capacity is 500M, the determined file capacity to be transmitted is 100M*0.5=50M, and when the remaining file capacity is 400M, the determined file capacity to be transmitted is 100M*0.4=40M. That is, when the remaining capacity of the file recipient is constant and the remaining file capacity is large, the file having a large capacity is preferentially transmitted. The file receiver has a certain remaining capacity, and the file with a large capacity is preferentially transmitted, so that the remaining capacity of the file receiver is not enough to accommodate a large-capacity file, and the utilization of the remaining capacity of the file receiver can be improved.
当然,剩余期限、剩余文件容量与文件总容量的比值、剩余文件容量与文件接收方剩余容量的比值三个自变量可以根据实际情况采取适宜的组合,从而确定出待传输文件容量。Of course, the ratio of the remaining period, the ratio of the remaining file capacity to the total file capacity, the ratio of the remaining file capacity to the remaining capacity of the file receiver, and the three independent variables can be appropriately combined according to the actual situation to determine the file capacity to be transmitted.
对于一项互联网销售业务,接收方可以为购买方。数据传输规格可以包括单价。数据可以为交易信息。剩余数据量可以为商品库存量。总数据量可以为商品总量。接收方剩余容量可以为购买方的申购量。For an internet sales business, the recipient can be the buyer. The data transmission specification can include a unit price. The data can be transaction information. The amount of data remaining can be the quantity of goods in stock. The total amount of data can be the total amount of goods. The remaining capacity of the receiver can be the purchase amount of the purchaser.
销售方的服务器实时查找在线的购买方,或者,根据销售记录查找历次的购买方。例如,从与服务器连接的若干购买方中,根据购买方的账号的离线或在线状态,选择多个在线购买方。还可以是,从若干购买方中,按照购买方等级,选择多个等级较高的购买方,例如,从中选择五星级的购买方。购买方选择的方式,根据具体的销售业务性质的不同,而有所不同。The seller's server finds the online purchaser in real time, or searches for the previous purchaser based on the sales record. For example, from among a number of purchasers connected to the server, a plurality of online purchasers are selected according to the offline or online status of the purchaser's account number. It is also possible to select a plurality of buyers with higher ranks from among a plurality of purchasers according to the purchaser level, for example, select a five-star purchaser from among them. The method chosen by the purchaser varies depending on the nature of the specific sales business.
销售方的服务器根据内部的定价系统,确定商品的单价。本申请实施例中,商品的单价是可以动态调整的,用以满足商品促销的需求。单价是以商品售卖的剩余期限、商品库存量与商品总量的比值、商品库存量与购买方的申购量的比值中至少一个为自变量的函数。The seller's server determines the unit price of the item based on the internal pricing system. In the embodiment of the present application, the unit price of the commodity can be dynamically adjusted to meet the demand for merchandise promotion. The unit price is a function of the remaining period of the product sale, the ratio of the stock amount of the commodity to the total amount of the commodity, and the ratio of the stock amount of the commodity to the purchase amount of the purchaser as an independent variable.
在本申请实施例中,设定商品的单价与商品售卖的剩余期限正相关。商品售卖的剩余期限,可以是商品的保质期的剩余期限,也可以是服务的活动期限,例如,离某场表演开始的期限。例如,商品的单价基准值为100元,商品的保质期的剩余期限为60天时,商品的单价按单价基准值的9折,即90元来执行,当商品的保质期的剩余期限为30天时,商品的单价按单价基准值的5折,即50元来执行。In the embodiment of the present application, the unit price of the set item is positively correlated with the remaining period of the item sale. The remaining period of the sale of the goods may be the remaining period of the shelf life of the goods, or may be the duration of the service, for example, the time limit from the beginning of a performance. For example, if the unit price of the product is 100 yuan, and the remaining period of the shelf life of the product is 60 days, the unit price of the product is 10% of the unit price reference value, that is, 90 yuan. When the remaining period of the product's shelf life is 30 days, the product is The unit price is executed at 50% of the unit price reference value, that is, 50 yuan.
当然,商品的单价同样可以是商品售卖的剩余期限、商品库存量与商品总量的比值、商品库存量与购买方的申购量的比值三个参数,根据实际情况采取适宜的组合。Of course, the unit price of the commodity can also be the remaining period of the commodity sale, the ratio of the stock of the commodity to the total amount of the commodity, the ratio of the stock of the commodity to the purchase amount of the purchaser, and an appropriate combination is adopted according to the actual situation.
确定商品单价后,销售方的服务器向确定的购买方推送商品打折促销的交易信息。这里的交易信息包括但不限于要约、要约邀请、合同等交易信息。After determining the unit price of the commodity, the seller's server pushes the transaction information of the product discount promotion to the determined buyer. The transaction information here includes, but is not limited to, offer information such as offers, offer invitations, contracts, and the like.
购买方收到交易信息后,可以自由确定是否进行交易,并反馈给销售方的服务器是否购买的交易信息。After receiving the transaction information, the purchaser is free to determine whether to conduct the transaction and to report to the seller's server whether to purchase the transaction information.
对于一项物品入库业务,物品运输与数据传输情形类似。接收方可以为仓储点。物品运输规格可以包括装载量,与数据传输规格可以包括数据的封装包的容量相对应。运输物品与发送数据相对应。剩余数据量与物品库存量相对应。总数据量对应物品总量。接收方剩余容量对应仓储点剩余容量。 For an item warehousing business, item transportation is similar to data transmission. The recipient can be a warehouse point. The item shipping specification may include a load amount corresponding to the capacity of the package in which the data transfer specification may include data. The transport item corresponds to the transmitted data. The amount of data remaining corresponds to the inventory of the item. The total amount of data corresponds to the total amount of items. The remaining capacity of the receiver corresponds to the remaining capacity of the storage point.
在本申请实施例中,物流系统的服务器首先确定待入库物品附近、有剩余容量的仓储点。例如,物流系统的服务器根据联网的各仓储点剩余容量的动态变化,从中选出若干个剩余容量位于前列的仓储点。物流系统的服务器将待入库物品按照物品的重量或体积,或两者兼而有之的另一个综合参数进行排序。例如,按照体积的大小,依次将待入库物品排序。然后,物流系统的服务器根据预设的计算模型进行装载量的计算。装载量是一个动态变化的参数,用以表征下一个运输物品的重量或体积的数量级。装载量是以物品入库的剩余期限、物品库存量与物品总量的比值、物品库存量与仓储点剩余容量的比值中至少一个为自变量的函数。In the embodiment of the present application, the server of the logistics system first determines the storage point with the remaining capacity in the vicinity of the item to be stored. For example, the server of the logistics system selects several storage points with the remaining capacity in the forefront according to the dynamic change of the remaining capacity of the networked storage points. The server of the logistics system sorts the items to be stored in accordance with the weight or volume of the item, or another comprehensive parameter of both. For example, the items to be stored are sorted in order according to the size of the volume. Then, the server of the logistics system performs the calculation of the load amount according to the preset calculation model. The load is a dynamically changing parameter that characterizes the magnitude of the weight or volume of the next transport item. The loading amount is a function of at least one of a ratio of the remaining period of the item storage, the ratio of the item inventory quantity to the total item quantity, and the ratio of the item inventory quantity to the remaining capacity of the storage point.
在本申请实施例中,设定装载量与物品入库的剩余期限正相关。例如,装载量基准值为10立方米,物品入库的剩余期限为3天时,根据具体业务设定期限系数为0.9,确定的装载量为10立方米*0.9=9立方米,当物品入库的剩余期限为1天时,根据具体业务设定期限系数为0.1,确定的装载量为10立方米*0.1=1立方米。优先将大件物品进行仓储,可以提高仓储点的利用率。In the embodiment of the present application, the set load amount is positively correlated with the remaining period of the item storage. For example, if the load reference value is 10 cubic meters and the remaining period of the goods is 3 days, the time limit coefficient is 0.9 according to the specific business, and the determined load is 10 cubic meters * 0.9 = 9 cubic meters. When the remaining period is 1 day, the period coefficient is 0.1 according to the specific business, and the determined load is 10 cubic meters * 0.1 = 1 cubic meter. Priority is given to warehousing large items to improve the utilization of storage points.
当然,装载量同样可以是物品入库的剩余期限、物品库存量与物品总量的比值、商品库存量与仓储点剩余容量的比值三个参数,根据实际情况采取适宜的组合。Of course, the load can also be the remaining time of the goods into the warehouse, the ratio of the inventory of the goods to the total amount of the goods, the ratio of the inventory of the goods to the remaining capacity of the storage point, and take appropriate combinations according to the actual situation.
确定装载量后,物流系统的服务器向确定的仓储点发出运输装载量大小物品的运输信息。待仓储点确认后,开始物品的运输。After determining the loading amount, the server of the logistics system issues transportation information of the transportation load size item to the determined storage point. After the storage point is confirmed, the transportation of the item is started.
进一步的,所述方法在执行根据确定的数据传输规格向接收方发送数据的步骤之前,还包括:Further, before the step of performing the sending of data to the receiver according to the determined data transmission specification, the method further includes:
获取剩余期限阈值和剩余数据量阈值;Obtaining a remaining period threshold and a remaining data amount threshold;
当剩余期限小于等于剩余期限阈值时,剩余数据量大于等于剩余数据量阈值,则对剩余数据执行根据确定的数据传输规格向接收方发送数据的步骤,反之,不对剩余数据执行根据确定的数据传输规格向接收方发送数据的步骤。When the remaining period is less than or equal to the remaining period threshold, and the remaining data amount is greater than or equal to the remaining data amount threshold, the step of transmitting data to the receiver according to the determined data transmission specification is performed on the remaining data, and conversely, the determined data transmission is not performed on the remaining data. The step in which the specification sends data to the receiver.
本申请实施例中,设定后续步骤的启动条件为:剩余期限小于等于剩余期限阈值时,剩余数据量大于等于剩余数据量阈值。通过判断该启动条件是否满足,来决定是否继续执行后续步骤。当启动条件满足时,继续执行后续步骤,启动条件不满足时,停止执行后续步骤。启动条件是否满足的判断,在本申请实施例中,设置于确定接收方、确定数据传输规格之前。只有在启动条件满足时,才执行后续步骤,从而可以提高数据传输的方法的执行效率。In the embodiment of the present application, the starting condition for setting the subsequent step is: when the remaining period is less than or equal to the remaining period threshold, the remaining data amount is greater than or equal to the remaining data amount threshold. It is determined whether to continue the subsequent steps by judging whether the starting condition is satisfied. When the start condition is satisfied, the subsequent steps are continued, and when the start condition is not satisfied, the subsequent steps are stopped. The determination of whether the activation condition is satisfied is set in the embodiment of the present application before determining the recipient and determining the data transmission specification. The subsequent steps are performed only when the start condition is satisfied, so that the execution efficiency of the method of data transfer can be improved.
对于文件传输业务,设定后续步骤的启动条件为:当剩余期限小于等于剩余期限阈 值时,剩余文件容量大于等于剩余文件容量阈值。For the file transfer service, the start condition for setting the subsequent steps is: when the remaining period is less than or equal to the remaining period threshold When the value is, the remaining file size is greater than or equal to the remaining file capacity threshold.
对于互联网销售业务,设定后续步骤的启动条件为:当剩余期限小于等于剩余期限阈值时,商品库存量大于等于商品库存量阈值。For the Internet sales service, the starting condition for setting the subsequent steps is: when the remaining period is less than or equal to the remaining period threshold, the commodity inventory amount is greater than or equal to the commodity inventory threshold.
对于物品入库业务,设定后续步骤的启动条件为:当剩余期限小于等于剩余期限阈值时,物品库存量大于等于物品库存量阈值。For the item warehousing service, the starting condition for setting the subsequent step is: when the remaining period is less than or equal to the remaining period threshold, the item inventory quantity is greater than or equal to the item inventory quantity threshold.
进一步的,确定接收方,具体包括:Further, determining the receiver includes:
寻找发送方周围预设距离范围内的登录用户作为接收方。Look for the logged-in user within the preset distance range around the sender as the receiver.
对于文件传输业务,寻找发送方周围预设距离范围内的登录用户作为文件接收方。例如,一种新开发的室内传输文件的业务,在该房屋范围内查找登录用户作为文件接收方。或者,在基站辐射范围内推送消息的业务,寻找基站辐射范围内的登录用户作为消息接收方。For the file transfer service, look for the logged-in user within the preset distance range around the sender as the file recipient. For example, a newly developed service for transmitting files indoors finds a logged-in user as a file recipient within the scope of the house. Alternatively, the service that pushes the message within the radiation range of the base station looks for the logged-in user within the radiation range of the base station as the message receiver.
对于互联网销售业务为例,在申请实施例中,寻找供应方周围预设距离内的登录的购买方。例如,寻找距离供应方一公里内登录的购买方。当然,这里的预设距离可以根据业务的需求来自由设定。For the example of the Internet sales service, in the application embodiment, the purchase party who logs in within the preset distance around the supplier is found. For example, look for buyers who are logged in within one kilometer of the supplier. Of course, the preset distance here can be set according to the needs of the business.
对于物品入库业务,在申请实施例中,寻找出货点周围预设距离内的开放的仓储点。For the item warehousing business, in the application embodiment, an open storage point within a preset distance around the shipping point is sought.
请参照图2,进一步的,数据传输规格,与数据传输的剩余期限相关,具体包括:Referring to FIG. 2, further, the data transmission specification is related to the remaining duration of the data transmission, and specifically includes:
S201:获取数据传输规格的基准值;S201: Obtain a reference value of a data transmission specification;
S202:根据剩余期限选择期限系数;S202: selecting a term coefficient according to a remaining period;
S203:算得数据传输规格的设定值为基准值与期限系数的乘积值;S203: Calculating the set value of the data transmission specification as a product of the reference value and the term coefficient;
其中,剩余期限与期限系数正相关。Among them, the remaining period is positively related to the term coefficient.
对于文件传输业务,在本申请实施例中,首先,获取文件容量基准值。然后,根据剩余期限选择期限系数。在本申请实施例中,剩余期限与期限系数正相关,也就是说,在通常状况下,剩余期限越长,期限系数越大。例如,剩余期限在30分钟-60分钟时,期限系数为0.9;剩余期限在10分钟-29分钟时,期限系数为0.8。当然,期限系数可以随着剩余期限连续变化,也可以是随着剩余期限呈阶梯变化的散列值。最后,计算基准值与期限系数的乘积值,算得文件容量为文件容量基准值与期限系数的乘积值。在本申请实施例中,在剩余期限长时,文件容量大;在剩余期限短时,文件容量小。这样,在时限充裕的情形下优先传输文件容量的文件,在时限紧迫时,再传输文件容量小的文件。这是因为,容量大的文件通常是实质性的重要文件,而容量小的文件通常是备注、说明性的一般性文件。因此,该种方法特别适用于文件的紧急备份。 For the file transfer service, in the embodiment of the present application, first, the file capacity reference value is obtained. Then, the term coefficient is selected according to the remaining period. In the embodiment of the present application, the remaining period is positively correlated with the term coefficient, that is, under normal conditions, the longer the remaining period, the larger the term coefficient. For example, when the remaining period is between 30 minutes and 60 minutes, the time limit coefficient is 0.9; when the remaining period is 10 minutes to 29 minutes, the time limit coefficient is 0.8. Of course, the term coefficient may continuously change with the remaining period, or may be a hash value that varies stepwise with the remaining period. Finally, the product value of the reference value and the term coefficient is calculated, and the file capacity is calculated as the product of the file capacity reference value and the term coefficient. In the embodiment of the present application, when the remaining period is long, the file capacity is large; when the remaining period is short, the file capacity is small. In this way, in the case where the time limit is sufficient, the file with the file capacity is preferentially transferred, and when the time limit is urgent, the file with a small file capacity is transferred. This is because files with large capacity are usually substantive and important documents, while files with small capacity are usually memo and descriptive general documents. Therefore, this method is especially suitable for emergency backup of files.
对于互联网销售业务,在本申请实施例中,首先,获取单价基准值。然后,根据剩余期限选择期限系数。在本申请实施例中,剩余期限与期限系数正相关,也就是说,在通常状况下,剩余期限越长,期限系数越大。例如,剩余期限在30分钟-60分钟时,期限系数为0.9;剩余期限在10分钟-29分钟时,期限系数为0.8。当然,期限系数可以随着剩余期限连续变化,也可以是随着剩余期限呈阶梯变化的散列值。最后,计算基准值与期限系数的乘积值,算得单价为单价基准值与期限系数的乘积值。在本申请实施例中,在剩余期限长时,单价大;在剩余期限短时,单价小。这样,在时限充裕的情形下优先维持高的单价进行商品交易,在时限紧迫时,再将商品单价大幅下调。因此,该种方法特别适用于商品的降价促销。For the Internet sales service, in the embodiment of the present application, first, the unit price reference value is obtained. Then, the term coefficient is selected according to the remaining period. In the embodiment of the present application, the remaining period is positively correlated with the term coefficient, that is, under normal conditions, the longer the remaining period, the larger the term coefficient. For example, when the remaining period is between 30 minutes and 60 minutes, the time limit coefficient is 0.9; when the remaining period is 10 minutes to 29 minutes, the time limit coefficient is 0.8. Of course, the term coefficient may continuously change with the remaining period, or may be a hash value that varies stepwise with the remaining period. Finally, the product value of the reference value and the term coefficient is calculated, and the unit price is calculated as the product of the unit price reference value and the term coefficient. In the embodiment of the present application, when the remaining period is long, the unit price is large; when the remaining period is short, the unit price is small. In this way, in the case of ample time limit, the high unit price is preferentially maintained for commodity trading, and when the time limit is tight, the unit price of the commodity is greatly reduced. Therefore, this method is particularly suitable for price reduction promotion of commodities.
对于物品入库业务,在本申请实施例中,首先,获取装载量基准值。然后,根据剩余期限选择期限系数。剩余期限与期限系数正相关,也就是说,在通常状况下,剩余期限越长,期限系数越大。例如,剩余期限在30分钟-60分钟时,期限系数为0.2;剩余期限在10分钟-29分钟时,期限系数为0.1。当然,期限系数可以随着剩余期限连续变化,也可以是随着剩余期限呈阶梯变化的散列值。最后,计算基准值与期限系数的乘积值,算得装载量为装载量基准值与期限系数的乘积值。在本申请实施例中,在剩余期限长时,装载量大;在剩余期限短时,装载量小。优先将大件物品进行仓储,可以提高仓储点的利用率。For the item warehousing service, in the embodiment of the present application, first, the load reference value is obtained. Then, the term coefficient is selected according to the remaining period. The remaining period is positively related to the term coefficient, that is to say, under normal circumstances, the longer the remaining period, the greater the term coefficient. For example, when the remaining period is between 30 minutes and 60 minutes, the coefficient of duration is 0.2; when the remaining period is between 10 minutes and 29 minutes, the coefficient of duration is 0.1. Of course, the term coefficient may continuously change with the remaining period, or may be a hash value that varies stepwise with the remaining period. Finally, the product value of the reference value and the term coefficient is calculated, and the load is calculated as the product of the load reference value and the term coefficient. In the embodiment of the present application, when the remaining period is long, the load is large; when the remaining period is short, the load is small. Priority is given to warehousing large items to improve the utilization of storage points.
请参照图3,进一步的,数据传输规格,与剩余数据量与总数据量的比值相关,具体包括:Referring to FIG. 3, further, the data transmission specification is related to the ratio of the remaining data volume to the total data volume, and specifically includes:
S211:获取数据传输规格的基准值;S211: Obtain a reference value of a data transmission specification;
S212:算得剩余数据量与总数据量的比值为剩余系数;S212: calculating a ratio of the remaining data amount to the total data amount as a residual coefficient;
S213:算得数据传输规格的设定值为基准值与剩余系数的乘积值。S213: The set value of the data transmission specification is calculated as a product of the reference value and the residual coefficient.
对于文件传输业务,在本申请实施例中,首先,获取文件容量基准值。然后,算得剩余文件容量与文件总容量的比值为剩余系数。在本申请实施例中,剩余文件容量与剩余系数正相关,也就是说,在通常状况下,剩余文件容量越大,剩余系数越大。剩余系数随着剩余文件容量连续变化。剩余系数也可以是随着剩余期限呈阶梯变化的散列值。最后,计算基准值与剩余系数的乘积值,算得文件包容量为文件包容量基准值与剩余系数的乘积值。同期限系数一样,该种方法特别适用于文件的紧急备份。For the file transfer service, in the embodiment of the present application, first, the file capacity reference value is obtained. Then, the ratio of the remaining file capacity to the total file capacity is calculated as the residual coefficient. In the embodiment of the present application, the remaining file capacity is positively correlated with the remaining coefficient, that is, under normal conditions, the larger the remaining file capacity, the larger the remaining coefficient. The residual coefficient varies continuously with the remaining file capacity. The residual coefficient may also be a hash value that varies stepwise with the remaining period. Finally, the product value of the reference value and the residual coefficient is calculated, and the file package capacity is calculated as the product of the package capacity reference value and the residual coefficient. Like the term coefficient, this method is especially suitable for emergency backup of files.
对于互联网销售业务,在本申请实施例中,首先,获取单价基准值。然后,算得商品库存量与商品总量的比值为剩余系数。在本申请实施例中,商品库存量与剩余系数正 相关,也就是说,在通常状况下,商品库存量越大,剩余系数越大。剩余系数随着商品库存量连续变化。剩余系数也可以是随着剩余期限呈阶梯变化的散列值。最后,计算基准值与剩余系数的乘积值,算得单价为商品单价基准值与剩余系数的乘积值。同期限系数一样,该种方法特别适用于商品的降价促销。For the Internet sales service, in the embodiment of the present application, first, the unit price reference value is obtained. Then, the ratio of the stock of goods to the total amount of goods is calculated as the residual coefficient. In the embodiment of the present application, the commodity inventory amount and the residual coefficient are positive Correlation, that is to say, under normal conditions, the larger the inventory of goods, the greater the residual coefficient. The residual coefficient varies continuously with the amount of commodity stock. The residual coefficient may also be a hash value that varies stepwise with the remaining period. Finally, the product value of the reference value and the residual coefficient is calculated, and the unit price is calculated as the product of the commodity unit price reference value and the residual coefficient. Like the term coefficient, this method is particularly suitable for price reduction promotion of goods.
对于物品入库业务,在本申请实施例中,首先,获取装载量基准值。然后,算得物品库存量与物品总量的比值为剩余系数。在本申请实施例中,物品库存量与剩余系数正相关,也就是说,在通常状况下,物品库存量越大,剩余系数越大。剩余系数随着物品库存量连续变化。剩余系数也可以是随着剩余期限呈阶梯变化的散列值。最后,计算基准值与剩余系数的乘积值,算得装载量为装载量基准值与剩余系数的乘积值。For the item warehousing service, in the embodiment of the present application, first, the load reference value is obtained. Then, the ratio of the inventory of the item to the total amount of the item is calculated as the residual coefficient. In the embodiment of the present application, the inventory amount of the item is positively correlated with the remaining coefficient, that is, under normal conditions, the larger the inventory amount of the item, the larger the residual coefficient. The residual coefficient varies continuously with the inventory of the item. The residual coefficient may also be a hash value that varies stepwise with the remaining period. Finally, the product of the reference value and the residual coefficient is calculated, and the load is calculated as the product of the load reference value and the residual coefficient.
请参照图4,进一步的,数据传输规格,与剩余数据量与接收方剩余容量的比值相关,具体包括:Referring to FIG. 4, further, the data transmission specification is related to the ratio of the remaining data amount to the remaining capacity of the receiver, and specifically includes:
S221:获取数据传输规格的基准值;S221: Obtain a reference value of a data transmission specification;
S222:计算剩余数据量与接收方剩余容量的比值;S222: Calculate a ratio of the remaining data amount to the remaining capacity of the receiver;
S223:根据剩余数据量与接收方剩余容量的比值确定饱和系数;S223: Determine a saturation coefficient according to a ratio of the remaining data amount to the remaining capacity of the receiver;
S224:算得数据传输规格的设定值为基准值与饱和系数的乘积值;S224: Calculating the set value of the data transmission specification as a product of the reference value and the saturation coefficient;
其中,饱和系数与剩余数据量与接收方剩余容量的比值负相关。Among them, the saturation coefficient is inversely related to the ratio of the remaining data amount to the remaining capacity of the receiver.
对于文件传输业务,在本申请实施例中,首先,获取文件容量基准值。然后,计算剩余文件容量与文件接收方剩余容量的比值。接着,根据剩余文件容量与文件接收方剩余容量的比值确定饱和系数。在本申请实施例中,上述比值与饱和系数负相关,也就是说,在通常状况下,上述比值越小,饱和系数越大。例如,比值大于1时,饱和系数为0.5;比值小于等于1时,饱和系数为1。在本申请实施例中,饱和系数是随着剩余文件容量呈阶梯变化的散列值,当然,饱和系数可以随着剩余文件容量连续变化,例如反比例变化。最后,计算文件容量基准值与饱和系数的乘积值,算得文件容量为文件包容量基准值与饱和系数的乘积值。同期限系数一样,该种方法特别适用于文件的紧急备份。For the file transfer service, in the embodiment of the present application, first, the file capacity reference value is obtained. Then, the ratio of the remaining file capacity to the remaining capacity of the file recipient is calculated. Next, the saturation coefficient is determined based on the ratio of the remaining file capacity to the remaining capacity of the file recipient. In the embodiment of the present application, the above ratio is negatively correlated with the saturation coefficient, that is, under normal conditions, the smaller the ratio, the larger the saturation coefficient. For example, when the ratio is greater than 1, the saturation coefficient is 0.5; when the ratio is less than or equal to 1, the saturation coefficient is 1. In the embodiment of the present application, the saturation coefficient is a hash value that varies stepwise with the remaining file capacity. Of course, the saturation coefficient may continuously change with the remaining file capacity, for example, inversely proportional. Finally, the product value of the file capacity reference value and the saturation coefficient is calculated, and the file capacity is calculated as the product value of the package capacity reference value and the saturation coefficient. Like the term coefficient, this method is especially suitable for emergency backup of files.
对于互联网销售业务,在本申请实施例中,首先,获取单价基准值。然后,计算商品库存量与购买方申购量的比值。接着,根据商品库存量与购买方申购量的比值确定饱和系数。在本申请实施例中,上述比值与饱和系数负相关,也就是说,在通常状况下,上述比值越小,饱和系数越大。例如,比值大于1时,饱和系数为0.5;比值小于等于1时,饱和系数为1。在本申请实施例中,饱和系数是随着商品库存量呈阶梯变化的散列值,当然,饱和系数可以随着商品库存量连续变化,例如反比例变化。最后,计算基准 值与饱和系数的乘积值,算得单价为单价基准值与饱和系数的乘积值。同期限系数一样,该种方法特别适用于商品的降价促销。For the Internet sales service, in the embodiment of the present application, first, the unit price reference value is obtained. Then, calculate the ratio of the stock of goods to the purchase amount of the purchaser. Next, the saturation coefficient is determined based on the ratio of the stock quantity of the commodity to the purchase amount of the purchaser. In the embodiment of the present application, the above ratio is negatively correlated with the saturation coefficient, that is, under normal conditions, the smaller the ratio, the larger the saturation coefficient. For example, when the ratio is greater than 1, the saturation coefficient is 0.5; when the ratio is less than or equal to 1, the saturation coefficient is 1. In the embodiment of the present application, the saturation coefficient is a hash value that varies stepwise with the inventory amount of the commodity. Of course, the saturation coefficient may continuously change with the inventory amount of the commodity, for example, inversely proportionally. Finally, the calculation benchmark The product of the value and the saturation coefficient is calculated as the product of the unit price and the saturation coefficient. Like the term coefficient, this method is particularly suitable for price reduction promotion of goods.
对于物品入库业务,在本申请实施例中,首先,获取装载量基准值。然后,计算物品库存量与仓储点剩余容量的比值。接着,根据物品库存量与仓储点剩余容量的比值确定饱和系数。在本申请实施例中,上述比值与饱和系数负相关,也就是说,在通常状况下,上述比值越小,饱和系数越大。例如,比值大于1时,饱和系数为0.5;比值小于等于1时,饱和系数为1。在本申请实施例中,饱和系数是随着物品库存量呈阶梯变化的散列值,当然,饱和系数可以随着物品库存量连续变化,例如反比例变化。最后,计算基准值与饱和系数的乘积值,算得装载量为装载量基准值与饱和系数的乘积值。同期限系数一样,该种方法特别适用于保鲜产品的入库。For the item warehousing service, in the embodiment of the present application, first, the load reference value is obtained. Then, the ratio of the inventory amount of the item to the remaining capacity of the storage point is calculated. Next, the saturation coefficient is determined based on the ratio of the inventory amount of the item to the remaining capacity of the storage point. In the embodiment of the present application, the above ratio is negatively correlated with the saturation coefficient, that is, under normal conditions, the smaller the ratio, the larger the saturation coefficient. For example, when the ratio is greater than 1, the saturation coefficient is 0.5; when the ratio is less than or equal to 1, the saturation coefficient is 1. In the embodiment of the present application, the saturation coefficient is a hash value that varies stepwise with the inventory amount of the item. Of course, the saturation coefficient may continuously change with the inventory amount of the item, for example, inversely proportionally. Finally, the product of the reference value and the saturation coefficient is calculated, and the load is calculated as the product of the load reference value and the saturation coefficient. Like the term coefficient, this method is particularly suitable for the storage of fresh-keeping products.
在本申请实施例中,数据传输规格与数据传输的剩余期限、剩余数据量与总数据量的比值、剩余数据量与接收方剩余容量的比值中至少一个相关。也就是说,数据传输规格与基准值相关,并且与期限系数、剩余系数、饱和系数中的一个或多个相关。In the embodiment of the present application, the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver. That is, the data transmission specification is related to the reference value and is related to one or more of the term coefficient, the residual coefficient, and the saturation coefficient.
在文件传输业务中,文件容量与文件容量基准值相关,并且与期限系数、剩余系数、饱和系数中的一个或多个相关。In the file transfer service, the file capacity is related to the file capacity reference value and is related to one or more of the term coefficient, the residual coefficient, and the saturation coefficient.
在互联网销售业务中,单价与单价基准值相关,并且与期限系数、剩余系数、饱和系数中的一个或多个相关。In the Internet sales business, the unit price is related to the unit price reference value and is related to one or more of the term coefficient, the residual coefficient, and the saturation coefficient.
在物品入库业务中,装载量与装载量基准值相关,并且与期限系数、剩余系数、饱和系数中的一个或多个相关。In the item warehousing business, the load amount is related to the load reference value and is related to one or more of the term coefficient, the residual coefficient, and the saturation coefficient.
进一步的,根据确定的数据传输规格向接收方发送数据,具体包括:Further, the data is sent to the receiver according to the determined data transmission specification, and specifically includes:
向接收方发出按照数据传输规格进行数据传输的请求;Sending a request to the recipient for data transmission according to the data transmission specification;
当获得接收方同意数据传输的应答后,按照数据传输规格向接收方发送数据。After obtaining the response from the recipient agreeing to the data transmission, the data is transmitted to the receiver in accordance with the data transmission specification.
对于文件传输业务,在本申请实施例中,向文件接收方发出按照文件容量进行文件传输的请求,当获得文件接收方同意文件传输的应答后,按照文件容量向文件接收方进行数据传输。For the file transfer service, in the embodiment of the present application, the file recipient is requested to perform file transfer according to the file capacity. After obtaining the response of the file recipient to the file transfer, the data is transmitted to the file recipient according to the file capacity.
对于互联网销售业务,在本申请实施例中,向购买方发出按照单价进行交易的请求,当获得购买方同意交易的应答后,按照单价向接收方发送交易信息。For the Internet sales service, in the embodiment of the present application, the purchaser sends a request for the transaction according to the unit price, and after obtaining the response of the purchaser to the transaction, the transaction information is sent to the receiver according to the unit price.
下面以互联网销售电影票的业务为例来说明方法的整个实施过程。The following is a description of the entire implementation process of the method by taking the business of selling movie tickets on the Internet as an example.
电影票的观看时间为12:30。根据惯例,在观看前10分钟停止售票。需要指出的是,下面提到的设定的各项内容是根据互联网销售电影票的业务的实际情形,而采用的 参数,这些参数可以根据自由设定。设定12:20为截至时间。设定剩余期限阈值为60分钟,即电影票售卖期限小于60分钟时,根据情况执行该方法的后续步骤。设定剩余数据量阈值为30,即在离电影票售卖截止时间小于等于60分钟时,尚有大于等于30张电影票未售出,则执行该方法后续步骤。The movie ticket is watched at 12:30. According to the usual practice, the ticket sales are stopped 10 minutes before the viewing. It should be pointed out that the contents of the settings mentioned below are based on the actual situation of the business of selling movie tickets on the Internet. Parameters, these parameters can be set according to freely. Set 12:20 as the cut-off time. The remaining time threshold is set to 60 minutes, that is, when the movie ticket sales period is less than 60 minutes, the subsequent steps of the method are performed according to the situation. The threshold value of the remaining data is set to 30, that is, when the movie ticket sales deadline is less than or equal to 60 minutes, and more than 30 movie tickets are not sold, the subsequent steps of the method are performed.
此时,查找电影院周围2公里以内的登录用户,用以向其推送电影票打折出售的信息。At this time, look for the registered user within 2 km around the movie theater to push the movie ticket to sell the discounted information.
接着,开始计算电影票的折扣价。假设,设定电影票折扣价的计算公式为:票价=原价*期限系数*剩余系数*饱和系数。设定原价为100元,即单价基准值为100。Next, start calculating the discounted price of the movie ticket. Assume that the formula for calculating the discount price of a movie ticket is: fare = original price * term coefficient * residual coefficient * saturation coefficient. Set the original price to 100 yuan, that is, the unit price reference value is 100.
设定当剩余期限在30分钟到60分钟时,期限系数为0.9,剩余期限在10分钟到29分钟时,期限系数为0.8,剩余期限在10分钟以内时,期限系数为0.5。假设,此时剩余期限为20分钟,则选择期限系数为0.8。When the remaining period is 30 minutes to 60 minutes, the time limit coefficient is 0.9, the remaining period is 10 minutes to 29 minutes, the time limit coefficient is 0.8, and the remaining period is less than 10 minutes, the time limit coefficient is 0.5. Assume that the remaining period is 20 minutes at this time, and the selection period coefficient is 0.8.
计算当前未出售的电影票数与该场电影发行的总票数,从而计算得到剩余系数。假设,当前未出售的电影票数为40,即商品库存量为10。该场电影发行的总票数为100,即商品总量为100。则剩余系数为40/100=0.4。Calculate the remaining coefficient by calculating the number of tickets for the current unsold movie and the total number of votes issued by the movie. Assume that the number of tickets for the current unsold movie is 40, that is, the stock of goods is 10. The total number of votes issued by the film is 100, that is, the total amount of goods is 100. Then the residual coefficient is 40/100=0.4.
设定未出售的电影票数大于购买方的申购量时,代表电影票滞销,则设定饱和系数为0.5。相反,未出售的电影票数小于等于购买方的申购量的申购量时,代表电影票热销,则设定饱和系数为1。假设,此时未出售的电影票数大于购买方的申购量,确定饱和系数为0.5。When the number of unsold movie tickets is greater than the purchaser's purchase amount, and the movie ticket is unsalable, the saturation coefficient is set to 0.5. On the contrary, when the number of unsold movie tickets is less than or equal to the purchase amount of the purchaser's purchase amount, and the movie ticket is sold, the saturation coefficient is set to 1. Assume that the number of tickets not sold at this time is greater than the purchase amount of the purchaser, and the saturation coefficient is determined to be 0.5.
最终算得票价=原价*期限系数*剩余系数*饱和系数,即票价=100*0.8*0.4*0.5=16元。The final fare is calculated = original price * term coefficient * residual coefficient * saturation coefficient, that is, fare = 100 * 0.8 * 0.4 * 0.5 = 16 yuan.
接着,向购买方发出电影票单价为16元的订单。当购买方同意并支付该订单后,向购买方出具电影票。Next, an order for the movie ticket price of 16 yuan is issued to the purchaser. When the purchaser agrees and pays the order, a movie ticket is issued to the purchaser.
需要指出的是,这里的提供电影票动态变化的计算机设备是电影院的服器。提供电影票价格、交易信息的计算机设备可以是电影院的服务器,也可以是第三方交易平台的服务器。提供电影票价格、交易信息的计算机设备是第三方交易平台的服务器时,两服务器通过网络连接,实现信息共享,共同完成整个交易过程。It should be pointed out that the computer device providing the dynamic change of the movie ticket here is the server of the movie theater. The computer device that provides the movie ticket price and transaction information may be a server of a movie theater or a server of a third party transaction platform. When the computer equipment that provides the movie ticket price and transaction information is the server of the third-party trading platform, the two servers are connected through the network to realize information sharing and complete the entire transaction process.
对于物品入库业务,在本申请实施例中,向仓储点发出按照装载量进行物品运输的请求,当获得仓储点同意物品运输的应答后,按照装载量向仓储点运输物品。For the item warehousing service, in the embodiment of the present application, a request for goods transportation according to the loading amount is issued to the storage point, and when the storage point agrees to the transportation of the item, the item is transported to the storage point according to the loading amount.
以上是本申请实施例提供的数据传输的方法,基于同样的思路,请参照图5,本申请还提供一种数据传输的装置1,包括:The above is the data transmission method provided by the embodiment of the present application. Based on the same idea, with reference to FIG. 5, the present application further provides a device 1 for data transmission, including:
搜索模块10,用于确定接收方; Search module 10, configured to determine a recipient;
运算模块20,用于确定数据传输规格;The operation module 20 is configured to determine a data transmission specification;
传输模块30,用于根据确定的数据传输规格向接收方发送数据;The transmitting module 30 is configured to send data to the receiver according to the determined data transmission specification;
其中,数据传输规格与数据传输的剩余期限、剩余数据量与总数据量的比值、剩余数据量与接收方剩余容量的比值中至少一个相关。Wherein, the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver.
进一步的,装置还包括判断模块40。Further, the device further includes a determination module 40.
判断模块40用于:The determining module 40 is configured to:
获取剩余期限阈值和剩余数据量阈值;Obtaining a remaining period threshold and a remaining data amount threshold;
当剩余期限小于等于剩余期限阈值时,剩余数据量大于等于剩余数据量阈值,则对剩余数据执行根据确定的数据传输规格向接收方发送数据的步骤,反之,不对剩余数据执行根据确定的数据传输规格向接收方发送数据的步骤。When the remaining period is less than or equal to the remaining period threshold, and the remaining data amount is greater than or equal to the remaining data amount threshold, the step of transmitting data to the receiver according to the determined data transmission specification is performed on the remaining data, and conversely, the determined data transmission is not performed on the remaining data. The step in which the specification sends data to the receiver.
进一步的,搜索模块10,用于确定接收方,具体用于:Further, the search module 10 is configured to determine a receiver, specifically for:
寻找发送方周围预设距离范围内的登录用户作为接收方。Look for the logged-in user within the preset distance range around the sender as the receiver.
进一步的,数据传输规格,与数据传输的剩余期限相关。Further, the data transmission specification is related to the remaining period of data transmission.
运算模块20,具体用于:The operation module 20 is specifically configured to:
获取数据传输规格的基准值;Obtain a reference value for the data transmission specification;
根据剩余期限选择期限系数;Select the term coefficient based on the remaining period;
算得数据传输规格的设定值为基准值与期限系数的乘积值;The set value of the data transmission specification is calculated as the product of the reference value and the term coefficient;
其中,剩余期限与期限系数正相关。Among them, the remaining period is positively related to the term coefficient.
进一步的,数据传输规格,与剩余数据量与总数据量的比值相关。Further, the data transmission specification is related to the ratio of the remaining data amount to the total data amount.
运算模块20,具体用于:The operation module 20 is specifically configured to:
获取数据传输规格的基准值;Obtain a reference value for the data transmission specification;
计算剩余数据量与总数据量的比值为剩余系数;Calculate the ratio of the amount of remaining data to the total amount of data as the residual coefficient;
算得数据传输规格的设定值为基准值与剩余系数的乘积值。The set value of the data transmission specification is the product of the reference value and the residual coefficient.
进一步的,数据传输规格,与剩余数据量与接收方剩余容量的比值相关。Further, the data transmission specification is related to the ratio of the remaining data amount to the remaining capacity of the receiver.
运算模块20,具体用于:The operation module 20 is specifically configured to:
获取数据传输规格的基准值;Obtain a reference value for the data transmission specification;
计算剩余数据量与接收方剩余容量的比值;Calculating the ratio of the amount of remaining data to the remaining capacity of the receiver;
根据剩余数据量与接收方剩余容量的比值确定饱和系数;Determining the saturation coefficient according to the ratio of the remaining data amount to the remaining capacity of the receiver;
算得数据传输规格的设定值为基准值与饱和系数的乘积值;Calculate the set value of the data transmission specification as the product of the reference value and the saturation coefficient;
其中,饱和系数与剩余数据量与接收方剩余容量的比值负相关。 Among them, the saturation coefficient is inversely related to the ratio of the remaining data amount to the remaining capacity of the receiver.
进一步的,传输模块30,用于根据确定的数据传输规格向接收方发送数据,具体用于:Further, the transmission module 30 is configured to send data to the receiver according to the determined data transmission specification, specifically for:
向接收方发出按照数据传输规格进行数据传输的请求;Sending a request to the recipient for data transmission according to the data transmission specification;
当获得接收方同意数据传输的应答后,按照数据传输规格向接收方发送数据。After obtaining the response from the recipient agreeing to the data transmission, the data is transmitted to the receiver in accordance with the data transmission specification.
进一步的,接收方为购买方;Further, the receiving party is a buyer;
数据传输规格为单价;The data transmission specification is unit price;
数据为交易信息;Data is transaction information;
剩余数据量为商品库存量;The amount of remaining data is the stock of goods;
总数据量为商品总量;The total amount of data is the total amount of goods;
接收方剩余容量为购买方的申购量。The remaining capacity of the receiver is the purchase amount of the purchaser.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。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 may take the form of an entirely hardware embodiment, an entirely 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, CD-ROM, 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 numerical processing device to produce a machine for the production of instructions for execution by a processor of a computer or other programmable numerical processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数值处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable numerical 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 numerical 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.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数值结构、程序的模块或其他数值。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数值信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, numerical structures, modules of the programs, or other values. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated numerical signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the application 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, CD-ROM, optical storage, etc.) including computer usable program code.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。 The above description is only an embodiment of the present application and is not intended to limit the application. Various changes and modifications can be made to the present application by those skilled in the art. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present application are intended to be included within the scope of the appended claims.

Claims (16)

  1. 一种数据传输的方法,其特征在于,包括以下步骤:A method of data transmission, comprising the steps of:
    确定接收方;Determine the recipient;
    确定数据传输规格;Determine data transmission specifications;
    根据确定的数据传输规格向接收方发送数据;Sending data to the receiver according to the determined data transmission specification;
    其中,数据传输规格与数据传输的剩余期限、剩余数据量与总数据量的比值、剩余数据量与接收方剩余容量的比值中至少一个相关。Wherein, the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver.
  2. 如权利要求1所述的方法,其特征在于,所述方法在执行根据确定的数据传输规格向接收方发送数据的步骤之前,还包括:The method of claim 1, wherein the method further comprises: before performing the step of transmitting data to the recipient according to the determined data transmission specification, the method further comprising:
    获取剩余期限阈值和剩余数据量阈值;Obtaining a remaining period threshold and a remaining data amount threshold;
    当剩余期限小于等于剩余期限阈值时,剩余数据量大于等于剩余数据量阈值,则对剩余数据执行根据确定的数据传输规格向接收方发送数据的步骤,反之,不对剩余数据执行根据确定的数据传输规格向接收方发送数据的步骤。When the remaining period is less than or equal to the remaining period threshold, and the remaining data amount is greater than or equal to the remaining data amount threshold, the step of transmitting data to the receiver according to the determined data transmission specification is performed on the remaining data, and conversely, the determined data transmission is not performed on the remaining data. The step in which the specification sends data to the receiver.
  3. 如权利要求1所述的方法,其特征在于,确定接收方,具体包括:The method of claim 1, wherein determining the recipient comprises:
    寻找发送方周围预设距离范围内的登录用户作为接收方。Look for the logged-in user within the preset distance range around the sender as the receiver.
  4. 如权利要求1所述的方法,其特征在于,数据传输规格,与数据传输的剩余期限相关,具体包括:The method of claim 1, wherein the data transmission specification is related to a remaining period of data transmission, and specifically includes:
    获取数据传输规格的基准值;Obtain a reference value for the data transmission specification;
    根据剩余期限选择期限系数;Select the term coefficient based on the remaining period;
    算得数据传输规格的设定值为基准值与期限系数的乘积值;The set value of the data transmission specification is calculated as the product of the reference value and the term coefficient;
    其中,剩余期限与期限系数正相关。Among them, the remaining period is positively related to the term coefficient.
  5. 如权利要求1所述的方法,其特征在于,数据传输规格,与剩余数据量与总数据量的比值相关,具体包括:The method according to claim 1, wherein the data transmission specification is related to the ratio of the remaining data amount to the total data amount, and specifically includes:
    获取数据传输规格的基准值;Obtain a reference value for the data transmission specification;
    计算剩余数据量与总数据量的比值为剩余系数;Calculate the ratio of the amount of remaining data to the total amount of data as the residual coefficient;
    算得数据传输规格的设定值为基准值与剩余系数的乘积值。The set value of the data transmission specification is the product of the reference value and the residual coefficient.
  6. 如权利要求1所述的方法,其特征在于,数据传输规格,与剩余数据量与接收方剩余容量的比值相关,具体包括:The method according to claim 1, wherein the data transmission specification is related to a ratio of the remaining data amount to the remaining capacity of the receiver, and specifically includes:
    获取数据传输规格的基准值;Obtain a reference value for the data transmission specification;
    计算剩余数据量与接收方剩余容量的比值; Calculating the ratio of the amount of remaining data to the remaining capacity of the receiver;
    根据剩余数据量与接收方剩余容量的比值确定饱和系数;Determining the saturation coefficient according to the ratio of the remaining data amount to the remaining capacity of the receiver;
    算得数据传输规格的设定值为基准值与饱和系数的乘积值;Calculate the set value of the data transmission specification as the product of the reference value and the saturation coefficient;
    其中,饱和系数与剩余数据量与接收方剩余容量的比值负相关。Among them, the saturation coefficient is inversely related to the ratio of the remaining data amount to the remaining capacity of the receiver.
  7. 如权利要求1所述的方法,其特征在于,根据确定的数据传输规格向接收方发送数据,具体包括:The method of claim 1, wherein the transmitting data to the receiver according to the determined data transmission specification comprises:
    向接收方发出按照数据传输规格进行数据传输的请求;Sending a request to the recipient for data transmission according to the data transmission specification;
    当获得接收方同意数据传输的应答后,按照数据传输规格向接收方发送数据。After obtaining the response from the recipient agreeing to the data transmission, the data is transmitted to the receiver in accordance with the data transmission specification.
  8. 如权利要求1-7中任一项所述的方法,其特征在于,所述接收方为购买方;The method according to any one of claims 1 to 7, wherein the recipient is a buyer;
    数据传输规格包括单价;Data transmission specifications include unit price;
    所述数据为交易信息;The data is transaction information;
    剩余数据量为商品库存量;The amount of remaining data is the stock of goods;
    总数据量为商品总量;The total amount of data is the total amount of goods;
    接收方剩余容量为购买方的申购量。The remaining capacity of the receiver is the purchase amount of the purchaser.
  9. 一种数据传输的装置,其特征在于,包括:A device for data transmission, comprising:
    搜索模块,用于确定接收方;a search module for determining a recipient;
    运算模块,用于确定数据传输规格;An arithmetic module for determining a data transmission specification;
    传输模块,用于根据确定的数据传输规格向接收方发送数据;a transmission module, configured to send data to the receiver according to the determined data transmission specification;
    其中,数据传输规格与数据传输的剩余期限、剩余数据量与总数据量的比值、剩余数据量与接收方剩余容量的比值中至少一个相关。Wherein, the data transmission specification is related to at least one of a remaining period of the data transmission, a ratio of the remaining data amount to the total data amount, and a ratio of the remaining data amount to the remaining capacity of the receiver.
  10. 如权利要求9所述的装置,其特征在于,所述装置还包括判断模块,所述判断模块用于:The device according to claim 9, wherein the device further comprises a judging module, wherein the judging module is configured to:
    获取剩余期限阈值和剩余数据量阈值;Obtaining a remaining period threshold and a remaining data amount threshold;
    当剩余期限小于等于剩余期限阈值时,剩余数据量大于等于剩余数据量阈值,则对剩余数据执行根据确定的数据传输规格向接收方发送数据的步骤,反之,不对剩余数据执行根据确定的数据传输规格向接收方发送数据的步骤。When the remaining period is less than or equal to the remaining period threshold, and the remaining data amount is greater than or equal to the remaining data amount threshold, the step of transmitting data to the receiver according to the determined data transmission specification is performed on the remaining data, and conversely, the determined data transmission is not performed on the remaining data. The step in which the specification sends data to the receiver.
  11. 如权利要求9所述的装置,其特征在于,所述搜索模块,用于确定接收方,具体用于:The device according to claim 9, wherein the search module is configured to determine a receiver, specifically for:
    寻找发送方周围预设距离范围内的登录用户作为接收方。Look for the logged-in user within the preset distance range around the sender as the receiver.
  12. 如权利要求9所述的装置,其特征在于,所述数据传输规格,与数据传输的剩余期限相关; The apparatus according to claim 9, wherein said data transmission specification is related to a remaining period of data transmission;
    所述运算模块,具体用于:The operation module is specifically configured to:
    获取数据传输规格的基准值;Obtain a reference value for the data transmission specification;
    根据剩余期限选择期限系数;Select the term coefficient based on the remaining period;
    算得数据传输规格的设定值为基准值与期限系数的乘积值;The set value of the data transmission specification is calculated as the product of the reference value and the term coefficient;
    其中,剩余期限与期限系数正相关。Among them, the remaining period is positively related to the term coefficient.
  13. 如权利要求9所述的装置,其特征在于,所述数据传输规格,与剩余数据量与总数据量的比值相关;The apparatus according to claim 9, wherein said data transmission specification is related to a ratio of a remaining data amount to a total data amount;
    所述运算模块,具体用于:The operation module is specifically configured to:
    获取数据传输规格的基准值;Obtain a reference value for the data transmission specification;
    计算剩余数据量与总数据量的比值为剩余系数;Calculate the ratio of the amount of remaining data to the total amount of data as the residual coefficient;
    算得数据传输规格的设定值为基准值与剩余系数的乘积值。The set value of the data transmission specification is the product of the reference value and the residual coefficient.
  14. 如权利要求9所述的装置,其特征在于,所述数据传输规格,与剩余数据量与接收方剩余容量的比值相关;The apparatus according to claim 9, wherein said data transmission specification is related to a ratio of a remaining data amount to a receiver remaining capacity;
    所述运算模块,具体用于:The operation module is specifically configured to:
    获取数据传输规格的基准值;Obtain a reference value for the data transmission specification;
    计算剩余数据量与接收方剩余容量的比值;Calculating the ratio of the amount of remaining data to the remaining capacity of the receiver;
    根据剩余数据量与接收方剩余容量的比值确定饱和系数;Determining the saturation coefficient according to the ratio of the remaining data amount to the remaining capacity of the receiver;
    算得数据传输规格的设定值为基准值与饱和系数的乘积值;Calculate the set value of the data transmission specification as the product of the reference value and the saturation coefficient;
    其中,饱和系数与剩余数据量与接收方剩余容量的比值负相关。Among them, the saturation coefficient is inversely related to the ratio of the remaining data amount to the remaining capacity of the receiver.
  15. 如权利要求9所述的装置,其特征在于,所述传输模块,用于根据确定的数据传输规格向接收方发送数据,具体用于:The device according to claim 9, wherein the transmission module is configured to send data to the receiver according to the determined data transmission specification, specifically for:
    向接收方发出按照数据传输规格进行数据传输的请求;Sending a request to the recipient for data transmission according to the data transmission specification;
    当获得接收方同意数据传输的应答后,按照数据传输规格向接收方发送数据。After obtaining the response from the recipient agreeing to the data transmission, the data is transmitted to the receiver in accordance with the data transmission specification.
  16. 如权利要求9-15中任一项所述的装置,其特征在于,所述接收方为购买方;The apparatus according to any one of claims 9 to 15, wherein the recipient is a buyer;
    数据传输规格为单价;The data transmission specification is unit price;
    所述数据为交易信息;The data is transaction information;
    剩余数据量为商品库存量;The amount of remaining data is the stock of goods;
    总数据量为商品总量;The total amount of data is the total amount of goods;
    接收方剩余容量为购买方的申购量。 The remaining capacity of the receiver is the purchase amount of the purchaser.
PCT/CN2016/079026 2015-04-20 2016-04-12 Data transmission method and device WO2016169418A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510188759.1 2015-04-20
CN201510188759.1A CN106161557A (en) 2015-04-20 2015-04-20 The method and device of data transmission

Publications (1)

Publication Number Publication Date
WO2016169418A1 true WO2016169418A1 (en) 2016-10-27

Family

ID=57144354

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079026 WO2016169418A1 (en) 2015-04-20 2016-04-12 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN106161557A (en)
WO (1) WO2016169418A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259937B (en) * 2016-12-29 2021-02-02 武汉斗鱼网络科技有限公司 Method and system for displaying live network information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102903050A (en) * 2012-09-19 2013-01-30 邦讯技术股份有限公司 Method, system and device for realizing universal electronic shopping guide based on femtocell
CN103608833A (en) * 2011-06-17 2014-02-26 微软公司 Online marketplace with dynamic pricing
CN103679467A (en) * 2012-09-20 2014-03-26 姚德明 Online shopping pricing method and apparatus
US20150006258A1 (en) * 2013-03-15 2015-01-01 Studio Sbv, Inc. Subscription-based mobile reading platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003162673A (en) * 2001-11-27 2003-06-06 World:Kk Commodity selection system based on performing status

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103608833A (en) * 2011-06-17 2014-02-26 微软公司 Online marketplace with dynamic pricing
CN102903050A (en) * 2012-09-19 2013-01-30 邦讯技术股份有限公司 Method, system and device for realizing universal electronic shopping guide based on femtocell
CN103679467A (en) * 2012-09-20 2014-03-26 姚德明 Online shopping pricing method and apparatus
US20150006258A1 (en) * 2013-03-15 2015-01-01 Studio Sbv, Inc. Subscription-based mobile reading platform

Also Published As

Publication number Publication date
CN106161557A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
US20210366009A1 (en) Personalized delivery time estimate system
US8744865B2 (en) Apparatus and method for transportation and upselling of product
US8843383B2 (en) System and method for providing shipping insurance as a service
US20180276695A1 (en) Logistic demand forecasting
US8473316B1 (en) System and method for order processing state management
US20120084119A1 (en) Method and system for excess inventory management
WO2015172583A1 (en) Data processing system and method
CN111047390A (en) Cloud supply and marketing comprehensive integrated O2O e-commerce platform
CN112329970A (en) Order information processing method and device, computer equipment and medium
US20130339083A1 (en) Product placement in retail settings
CN114169936A (en) Method and device for providing preference information
US10163119B1 (en) Systems and methods for synchronized delivery
US20130085782A1 (en) System and method for providing on-line moving insurance
US10152743B1 (en) Techniques for providing shared-order functionality for a community of users
JP7339687B2 (en) Product delivery method, system and recording medium based on space station
US20090106033A1 (en) System and Method for Estimating a Shipment Delivery Date
US8489436B1 (en) System and method for an order handling data model with item-level granularity
WO2016169418A1 (en) Data transmission method and device
CN110659859B (en) E-commerce order inventory ERP management method and system
KR20230088207A (en) Method and apparatus for providing multi-country multi-channel e-commerce fulfillment integrated solution service using big data and artificial intelligence
CN113379508B (en) Goods resale method, system and storage medium based on space station
CN112348645A (en) Shopping mall management method and system thereof
JP7339686B2 (en) Gift smart matching method, system and recording medium based on space station
WO2016138827A1 (en) Data transmission method and system
US20220405700A1 (en) Purchase fulfillment using micro warehouses

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

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

Country of ref document: EP

Kind code of ref document: A1