A kind of methods, devices and systems of D2D flow processing
[technical field]
The present invention relates to fields of communication technology, more particularly to a kind of methods, devices and systems of D2D flow processing.
[background technique]
High speed development since mobile communication is born, mobile Internet access flow increase at a high speed every year, as the most rapid net of development
Network technology, mobile Internet need support a large amount of different types of business, various businesses to the demands for services of Internet resources sharply
Increase so that mobile network resource allocation and to various businesses transmission reasonability, fairness, high efficiency the problems such as on face
Very big challenge.Therefore, Internet resources are rationally efficiently distributed, the research hotspot of current mobile network is had become.
In order to improve problem above, the resource allocator model that a set of game based on D2D technology is bidded originally has been researched and proposed
With algorithm, guarantees that both parties are normally evaluated, distribute resource by the height of price.
Lee K.D. proposes a kind of fair resource allocation algorithm (Lee algorithm) based on node.The algorithm is by subcarrier
Be divided into two sub-problems with power distribution problems, i.e., first by mesh router (meshrouter, MR) be mesh client
(Mesh client, MC) distributes sub-carrier number, and then each mesh client is that other coupled all connections are reallocated
Power and subcarrier.The two subproblems are all modeled as receiving assorted agreed-upons price and solving (Nash bargaining based on maximizing by algorithm
Solution, NBS) algorithm model, and Nonlinear Mixed Integer Programming Problem is transformed into the time-division by second subproblem
Scheduling problem.This method is theoretically to set up, but compare be difficult to realize in practice, because it is related to the other time point
With the problem of, therefore be not particularly well suited for real time business.
Chen et al. has made intensive studies the spectrum reuse problem in the network based on 802.16, proposes a kind of packet
Containing time slot allocation, bandwidth allocation and real-time service bandwidth guarantee integrated framework, solve give each client's link-quality and
Resource allocation problem under the conditions of bandwidth demand of base station Uplink/Downlink etc..This algorithm is only to come from some angle
Resource allocation problem is solved, is not all guaranteeing that resource allocation has preferable utilization rate fundamentally.
In consideration of it, overcoming defect present in the prior art is the art urgent problem to be solved.
[summary of the invention]
The technical problem to be solved by the present invention is to solve the problems, such as that resource allocation utilization rate is low in the prior art.
The present invention adopts the following technical scheme:
In a first aspect, the present invention provides a kind of methods of D2D flow processing, comprising:
The corresponding auction information of each user and/or auction information in trade network are obtained, wherein the auction packet
The unit price of the flow packet to be bought and purchase is included, the auction information includes the unit price of the flow packet to be sold and sale;
According to the descending sequence of absolute value of unit price each in trade network, each flow packet corresponding to each unit price is arranged,
First ray is obtained, the flow total value M to be sold in trade network is calculated, is counted according to the First ray and flow total value M
Calculation is equalized price;
According to the First ray and the equilibrium price, the auction users and auction use that the first round participates in business are determined
Family;
The transaction of the auction users and auction user is completed according to preset strategy.
Preferably, described that equilibrium price is calculated according to the First ray and flow total value M, it specifically includes:
It successively adds up flow packet corresponding to each unit price according to unit price sequence from high to low each in First ray, until tired
Value added confirmation constitutes the flow packet that the flow of M+1 accumulated value is belonged to when reaching M+1, then the flow packet institute confirmed is right
The unit price answered is equilibrium price.
Preferably, according to the First ray and the equilibrium price, determine auction users that the first round participates in business and
Auction user, specifically includes:
When the flow packet that the M+1 is belonged to belongs to seller, determine that the auction users that the first round participates in business are described
Unit price that is in First ray and selling is greater than one or more seller of the equilibrium price and the M+1 is belonged to
Seller;Determine that the auction user that the first round participates in business is that in the First ray and purchase unit price is equal less than described
One or more buyer for the price that weighs;
When the flow packet that the M+1 is belonged to belongs to buyer, determine that the auction users that the first round participates in business are described
Unit price that is in First ray and selling is greater than one or more seller of the equilibrium price;Determine that the first round participates in handing over
Easy auction user be the First ray in and purchase unit price be less than the equilibrium price one or more buy
Family.
Preferably, the transaction that the auction users and auction user are completed according to preset strategy, specifically includes:
Step A) confirm highest first auction users of unit price sold in current auction user and is bought in auction user
The highest first auction user of unit price, complete corresponding transaction according to respective flow packet;
If the first auction users and flow packet corresponding to the first auction user are just equal, first auction is excluded
User and the first auction user, execute step A in remaining auction users and auction user again);
If the first auction users and flow packet corresponding to the first auction user are unequal, exclude flow packet it is small one
Side, and using the side for possessing residual flow packet after transaction as a member in remaining auction users and auction user, it holds again
Row step A).
Preferably, it further includes belonging to that the auction information and auction information, which include other than including respective flow packet and unit price,
Property, the attribute specifically includes network speed, residence time, the one or more in signal strength, then described according to preset strategy
The transaction of the auction users and auction user is completed, specifically further include:
By the one or more in the network speed, residence time and signal strength, weight is together constituted with corresponding unit price
The factor;
Step B) confirm highest first auction users of unit price sold in current auction user and is bought in auction user
The highest first auction user of weight matching degree, complete corresponding transaction according to respective flow packet;
If the first auction users and flow packet corresponding to the first auction user are just equal, first auction is excluded
User and the first auction user, execute step B in remaining auction users and auction user again);
If the first auction users and flow packet corresponding to the first auction user are unequal, exclude flow packet it is small one
Side, and using the side for possessing residual flow packet after transaction as a member in remaining auction users and auction user, it holds again
Row step B).
Second aspect, the present invention provides a kind of D2D flow counterparties that the method proposed based on first aspect is realized
Method, comprising:
Seller reports the unit price of oneself and the flow packet to be sold to server registration, and periodically monitors oneself
Status information, report the status information to server;
Buyer reports the unit price of oneself and the flow packet to be bought to server registration;Network signal around monitoring,
And the network signal relevant information monitored is sent to server;
The method that server perform claim requires any D2D flow processing of 1-5, and processing result is returned to and is bought
Family;
Buyer establishes the link and carries out data transmission with seller;
Both sides calculate the flow of transmission in real time, and server is reported to carry out disbursement and sattlement.
Preferably, further includes:
After the data transfer ends, notification message, buyer and seller both sides' break link are sent to server.
The third aspect, the present invention provides a kind of devices of D2D flow processing, comprising:
Transaction Information obtains module, for obtaining the corresponding auction information of each user in trade network and/or auction letter
Breath;
Equilibrium price computing module, for the descending sequence of absolute value according to unit price each in trade network, arrangement is each
Each flow packet corresponding to unit price obtains First ray, the flow total value M to be sold in trade network is calculated, according to described
Equilibrium price is calculated in First ray and flow total value M;
Trade user confirmation module, for determining that the first round participates in handing over according to the First ray and the equilibrium price
Easy auction users and auction user;
Module is implemented in transaction, for completing the transaction of the auction users and auction user according to preset strategy.
Preferably, the equilibrium price computing module further includes accumulator module and equilibrium price confirmation module, specific:
The accumulator module, for right according to unit price sequence from high to low each in First ray each unit price institute that successively adds up
The flow packet answered;
The equilibrium price confirmation module, for when being added to M+1, the flow that confirmation constitutes M+1 accumulated value to be belonged to
Flow packet, then unit price corresponding to the flow packet confirmed is equilibrium price.
Preferably, the trade user confirmation module, including auction users confirmation module and auction user's confirmation module, tool
Body:
When the flow packet that the M+1 is belonged to belongs to seller,
The auction users confirmation module, for determining that the auction users that the first round participates in business are in the First ray
And the unit price sold be greater than one or more seller and the seller that is belonged to of the M+1 of the equilibrium price;
The auction user confirmation module, for determining that the auction user that the first round participates in business is in the First ray
And purchase unit price be less than the equilibrium price one or more buyer;
When the flow packet that the M+1 is belonged to belongs to buyer,
The auction users confirmation module, for determining that the auction users that the first round participates in business are in the First ray
And sell unit price be greater than the equilibrium price one or more seller;
The auction user confirmation module, for determining that the auction user that the first round participates in business is in the First ray
And purchase unit price be less than the equilibrium price one or more buyer.
Fourth aspect, the present invention provides a kind of devices of D2D flow processing, comprising:
Memory, for storing one or more application program;
Processor, one or more application program for being stored in run memory so that complete first aspect or
The method of the method or the transaction of D2D flow of the processing of D2D flow described in second aspect.
5th aspect, the present invention provides a kind of systems of D2D flow processing, and the system comprises one or more to buy
Family's terminal, one or more seller's terminals and server, specific:
The seller's terminals, for server registration, reporting the unit price of oneself and the flow packet to be sold, and period
Property monitoring oneself status information, report the status information to server;
The purchaser terminal, for server registration, reporting the unit price of oneself and the flow packet to be bought;Monitoring week
The network signal enclosed, and the network signal relevant information monitored is sent to server;
The server, for obtaining the corresponding auction information of each user in trade network and/or auction information;According to
The descending sequence of absolute value of each unit price in trade network arranges each flow packet corresponding to each unit price, obtains First ray,
The flow total value M to be sold in trade network is calculated, balanced valence is calculated according to the First ray and flow total value M
Lattice;According to the First ray and the equilibrium price, the auction users and auction user that the first round participates in business are determined;According to
Preset strategy completes the transaction of the auction users and auction user.
Compared with prior art, the beneficial effects of the present invention are: fair (prevent tactful behaviour the present invention provides a kind of
Control) processing of D2D flow method so that trade user is unable to get income by issuing deceptive information or hiding information, separately
On the one hand, competitive equilibrium is achieved the effect that by equilibrium price, when so that some resource pricing in market being P, the resource
Overall supplies QS(P) and aggregate demand QD(P) be it is equal, optimize network configuration scheme, reduce the waste of resource.
[Detailed description of the invention]
Fig. 1 is a kind of flow diagram of the method for D2D flow processing provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the method for D2D flow processing provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of the method for D2D flow processing provided in an embodiment of the present invention;
Fig. 4 is a kind of flow diagram of the method for D2D flow processing provided in an embodiment of the present invention;
Fig. 5 is a kind of neural network algorithm configuration diagram provided in an embodiment of the present invention;
Fig. 6 is a kind of neural network algorithm part configuration diagram provided in an embodiment of the present invention;
Fig. 7 is a kind of flow diagram of the method for D2D flow transaction provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of the device of D2D flow processing provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of the device of D2D flow processing provided in an embodiment of the present invention
Figure 10 is a kind of structural schematic diagram of the device of D2D flow processing provided in an embodiment of the present invention
Figure 11 is a kind of structural schematic diagram of the device of D2D flow processing provided in an embodiment of the present invention
Figure 12 is a kind of configuration diagram of the system of D2D flow processing provided in an embodiment of the present invention;
Figure 13 is a kind of structural schematic diagram of the server of D2D flow processing provided in an embodiment of the present invention;
Figure 14 is a kind of method flow schematic diagram of D2D flow processing provided in an embodiment of the present invention.
[specific embodiment]
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In the description of the present invention, term "inner", "outside", " longitudinal direction ", " transverse direction ", "upper", "lower", "top", "bottom" etc. refer to
The orientation or positional relationship shown be based on the orientation or positional relationship shown in the drawings, be merely for convenience of description the present invention rather than
It is required that the present invention must be constructed and operated in a specific orientation, therefore it is not construed as limitation of the present invention.
In addition, as long as technical characteristic involved in the various embodiments of the present invention described below is each other not
Constituting conflict can be combined with each other.
D2D technology refers to the skill that mobile terminal is directly communicated under Cellular Networks auxiliary or when without Cellular Networks covering
Art.The application of the technology substantially reduces dependence of the mobile letter to traditional base station, with wide Commercialization Model and reality meaning
Justice, therefore obtain the support of several national operators.
The embodiment of the invention provides one to have independent, privately owned two-way auction mould bidding, competitive equilibrium, fair
Type.The description that the methods, devices and systems of the D2D flow processing are carried out by the auction theory from different dimensions.At this
In auction theory, preferred each trade user just knows that oneself quotation to goods to auction, without knowing other people quotation, and
And the quotation of each user is mutually indepedent, disobeys the quotation to put blame on others.The methods, devices and systems that D2D flow is handled below
Several dimensions are specifically described the contents of the present invention.In various embodiments of the present invention, it is assumed that the unit price of the purchase of buyer is in a program
Performance be less than zero value, and the unit price performance in a program of the sale of seller is greater than zero value.
Embodiment 1:
The embodiment of the present invention 1 provides a kind of method of D2D flow processing, as shown in Figure 1, comprising:
In step 201, the corresponding auction information of each user and/or auction information in trade network are obtained.
Wherein the auction information includes the unit price of the flow packet to be bought and purchase, and the auction information includes being wanted
The flow packet of sale and the unit price of sale.
In step 202, it according to the descending sequence of absolute value of unit price each in trade network, arranges corresponding to each unit price
Each flow packet, obtain First ray, calculate the flow total value M to be sold in trade network, according to the First ray with
Equilibrium price is calculated in flow total value M.
In step 203, according to the First ray and the equilibrium price, determine that the auction that the first round participates in business is used
Family and auction user.
In various embodiments of the present invention, auction users and auction user refer in particular to the transaction determined in step 203 use
Family, and the trade user that the buyer, seller in each embodiment are then used to be referred to as in entire trade network.
In step 204, the transaction of the auction users and auction user is completed according to preset strategy.
The embodiment of the invention provides a kind of methods of (preventing tactful manipulation) the D2D flow of justice processing, so that transaction
User is unable to get income by publication deceptive information or hiding information, on the other hand, it is equal to reach competition by equilibrium price
The effect of weighing apparatus, when so that some resource pricing in market being P, the overall supplies Q of the resourceS(P) and aggregate demand QD(P) it is
Equal, network configuration scheme is optimized, the waste of resource is reduced.
Embodiment 2:
It is described that equilibrium price is calculated according to the First ray and flow total value M in conjunction with the embodiment of the present invention 1, it deposits
In a kind of preferred implementation, specifically include:
It successively adds up flow packet corresponding to each unit price according to unit price sequence from high to low each in First ray, until tired
Value added confirmation constitutes the flow packet that the flow of M+1 accumulated value is belonged to when reaching M+1, then the flow packet institute confirmed is right
The unit price answered is equilibrium price.
For above-mentioned preferred implementation when being converted into program realization, there is a kind of optional realization side in the First ray
Formula, as shown in Fig. 2, " according to the descending sequence of absolute value of unit price each in trade network, each list will be arranged in step 202
Each flow packet, obtains First ray corresponding to valence " specifically execute are as follows:
In step 2021, each flow packet is split as to the subflow amount of unit magnitude (such as: using 1M as unit magnitude), and
Each subflow amount corresponds to respective quotation per unit.
Assuming that there is m seller in trade network, the flow total value of total sale is M, has n buyer in trade network,
Its flow total value bought is N.L=m+n is the sum of trade user.In every wheel transaction, trade user will going out oneself
Flow packet (the flow packet of the purchase) K soldi∈ [1, l] and the bid p of oneselfi∈ [1, l] is reported to system.We define by
Any and All Bid sequence, obtains following price set:
Wherein.KiExpression belongs to piThe flow packet of trade user i under unit price, piFor unit price.
In step 2022, according to the descending sequence of absolute value of unit price each in trade network, arrange from each stream
The subflow amount that amount packet is split out.
The sequencer procedure can be used following procedure code 1 and execute the completion alignment processes:
Program code 1:
Wherein, sort p [1 ... L] in a descending order completes obtaining for First ray using ranking functions
?.
Then another part " calculates the flow total value M to be sold in trade network, according to first sequence in step 202
Equilibrium price is calculated in column and flow total value M ", it specifically can be directly complete by return p [M+1] in above-mentioned execution code
At.
It is emphasized that convenience of the above-mentioned set 1 only for elaboration, silent by different trade user unit prices to be administered
Think a value.And in practical application, a seller may provide the flow packet of multiple sales, and the possibility of each flow packet
Different unit prices can be worked out.It is seller with Kx user, and specifies the flow include example of three different unit prices, completes step
After 2021 conversions as follows shown in set (2):
The case where similar above-mentioned set (2), the similarly suitable embodiment of the present invention are completed.
Embodiment 3:
In conjunction with the embodiment of the present invention 1, there are a kind of preferred implementations, according to the First ray and the balanced valence
Lattice determine auction users and auction user that the first round participates in business, specifically include:
When the flow total value that the M+1 is belonged to belongs to seller, determine the auction users that the first round participates in business for institute
Unit price that is in First ray and selling is stated to be returned greater than one or more seller of the equilibrium price and the M+1
The seller of category;Determine that the auction user that the first round participates in business is described in the First ray and purchase unit price is less than
One or more buyer of equilibrium price;
When the flow total value that the M+1 is belonged to belongs to buyer, determine the auction users that the first round participates in business for institute
State one or more seller that unit price that is in First ray and selling is greater than the equilibrium price;Determine that the first round participates in
The auction user of transaction be the First ray in and purchase unit price be less than the equilibrium price one or more buy
Family.
Wherein it is determined that the auction users that the first round participates in business are that unit price that is in the First ray and selling is greater than
One or more seller of the equilibrium price;Determine that the auction user that the first round participates in business is in the First ray
And purchase unit price be less than the equilibrium price one or more buyer, can be realized by subordinate's program code 2:
Program code 2:
Wherein, J be confirm contain the set of auction users and auction user.
Embodiment 4:
In conjunction with the various embodiments described above of the present invention, the friendship that the auction users and auction user are completed according to preset strategy
Easily, as shown in figure 3, specifically including:
In step 2041, highest first auction users of unit price sold in current auction user and auction user are confirmed
The highest first auction user of unit price of middle purchase completes corresponding transaction according to respective flow packet.
In step 2042, confirmation the first auction users and flow packet size corresponding to the first auction user whether phase
Deng.If equal then follow the steps 2043;If being not desired to etc. to then follow the steps 2044.
In step 2043, first auction users and the first auction user are excluded, confirms that auction users and auction are used
Whether family transaction is completed, and executes step 2041 again in remaining auction users and auction user if not completing, if completing
Then close the trade;
In step 2044, the small side of flow total value is excluded, and the side for possessing residual flow total value after transaction is made
For a member in remaining auction users and auction user, step 2041 is executed again.
Embodiment 5:
In conjunction with the various embodiments described above of the present invention, the auction information and auction information include total in addition to including respective flow
Volume and unit price it is outer further include attribute, the attribute specifically includes network speed, residence time, the one or more in signal strength,
The then transaction that the auction users and auction user are completed according to preset strategy, as shown in figure 4, specifically further include:
By the one or more in the network speed, residence time and signal strength, weight is together constituted with corresponding unit price
The factor;
In step 2041 ', confirm highest first auction users of unit price sold in current auction user and auction user
The highest first auction user of the weight matching degree of middle purchase completes corresponding transaction according to respective flow packet;
In step 2042 ', confirm that the first auction users and flow packet size corresponding to the first auction user are just equal,
First auction users and the first auction user are then excluded, confirm whether auction users and auction customer transaction are completed, if not having
Complete to execute step 2041 again in remaining auction users and auction user ', it closes the trade if completing;
In step 2043 ', confirm that the first auction users and flow packet size corresponding to the first auction user are unequal, then
The small side of flow total value is excluded, and a side of residual flow total value will be possessed after transaction as remaining auction users and auction
A member in user executes step 2041 again '.
The embodiment of the present invention, the case where price is only considered for the various embodiments described above, proposition based on auctioning bilateral friendship
Easy algorithm;For multiattribute situation, the Trading Model based on proposed algorithm is proposed.
In the case where considering multiattribute situation, after each user provides true scoring, completed in each layer of neural network
Weight is updated after solution, below will explanation how come solve be used for update weight.
Error function in neural network is defined first are as follows:
Wherein, okFor the output of neuron k, tkIt is exported for the target of neuron k, outputs is all nerves of output layer
Member set.In conjunction with the embodiment of the present invention, the error function (3) can be converted into following formula:
In order to reduce error, right value update function be may be defined as:
Wherein wjiFor the weight of the input i of neuron j.
Solution procedure are as follows:
5.1, for output layer, as shown in Figure 5:
Wherein:
Abbreviation obtains:
Therefore, Δ wjiIt is represented by following formula:
5.2, for hidden layer, as shown in Figure 6:
Wherein:
Therefore:
Δwji=η δjxji (15)
Therefore for the neuron k of output layer:
δk←ok(1-ok)(tk-ok) (16)
For the neuron h of hidden layer:
When calculating every layer of weight, the δ of respective layer is substituted into following formula respectively.
wji←wji+Δwji=wji+ηδjxji (18)
Wherein, xjiFor the input i of neuron j;
netj=∑ wjixjiFor the weighted sum of all inputs of neuron j;
ojFor the output of neuron j;
tjIt is exported for the target of neuron j;
σ is sigmod function;
Outputs is all neuronal ensembles of output layer;
DownStream (j) is all outputs by neuron j neuronal ensemble as input;
Embodiment 6:
In conjunction with the various embodiments described above, the embodiment of the invention also provides a kind of D2D flow method of commerce, as shown in fig. 7, packet
It includes:
In step 21, seller reports the unit price of oneself and the flow total value to be sold, and period to server registration
Property monitoring oneself status information, report the status information to server.
Wherein, the status information includes Network status, geographical location etc..
In step 22, buyer reports the unit price of oneself and the flow total value to be bought to server registration;Monitoring week
The network signal enclosed, and the network signal relevant information monitored is sent to server.
Wherein, network signal relevant information includes the SSID and MAC Address of hot spot.
In step 23, the method that server executes the processing of D2D flow described in above-described embodiment, and processing result is returned
To buyer.
In step 24, buyer establishes the link and carries out data transmission with seller.
In step 25, both sides calculate the flow of transmission in real time, and server is reported to carry out disbursement and sattlement.
The embodiment of the invention provides a kind of methods of (preventing tactful manipulation) the D2D flow of justice processing, so that transaction
User is unable to get income by publication deceptive information or hiding information, on the other hand, it is equal to reach competition by equilibrium price
The effect of weighing apparatus, when so that some resource pricing in market being P, the overall supplies Q of the resourceS(P) and aggregate demand QD(P) it is
Equal, network configuration scheme is optimized, the waste of resource is reduced.
In conjunction with the embodiment of the present invention, there are a kind of preferred implementations, wherein after executing the step 25, also wraps
It includes:
In step 26, after the data transfer ends, notification message is sent to server, buyer and seller both sides disconnect chain
It connects.
Embodiment 7:
The embodiment of the invention also provides a kind of devices of D2D flow processing, as shown in Figure 8, comprising:
Transaction Information obtains module, for obtaining the corresponding auction information of each user in trade network and/or auction letter
Breath;
Equilibrium price computing module, for the descending sequence of absolute value according to unit price each in trade network, arrangement is each
Each flow total value corresponding to unit price obtains First ray, the flow total value M to be sold in trade network is calculated, according to institute
It states First ray and equilibrium price is calculated in flow total value M;
Trade user confirmation module, for determining that the first round participates in handing over according to the First ray and the equilibrium price
Easy auction users and auction user;
Module is implemented in transaction, for completing the transaction of the auction users and auction user according to preset strategy.
In conjunction with the embodiment of the present invention, there are a kind of preferred implementation, the equilibrium price computing module further includes tiring out
Add module and equilibrium price confirmation module, as shown in figure 9, specifically:
The accumulator module, for right according to unit price sequence from high to low each in First ray each unit price institute that successively adds up
The flow total value answered;
The equilibrium price confirmation module, the flow total value belonged to for when being added to M+1, confirming the M+1, then
Unit price corresponding to the flow total value confirmed is equilibrium price.
In conjunction with the embodiment of the present invention, there are a kind of preferred implementation, the trade user confirmation module, including auction
User's confirmation module and auction user's confirmation module, as shown in Figure 10, specific:
When the flow total value that the M+1 is belonged to belongs to seller,
The auction users confirmation module, for determining that the auction users that the first round participates in business are in the First ray
And the unit price sold be greater than one or more seller and the seller that is belonged to of the M+1 of the equilibrium price;
The auction user confirmation module, for determining that the auction user that the first round participates in business is in the First ray
And purchase unit price be less than the equilibrium price one or more buyer;
When the flow total value that the M+1 is belonged to belongs to buyer,
The auction users confirmation module, for determining that the auction users that the first round participates in business are in the First ray
And sell unit price be greater than the equilibrium price one or more seller;
The auction user confirmation module, for determining that the auction user that the first round participates in business is in the First ray
And purchase unit price be less than the equilibrium price one or more buyer.
Embodiment 8:
The embodiment of the invention also provides a kind of devices of D2D flow processing, as shown in figure 11, comprising:
Memory, for storing one or more application program;
Processor, one or more application program for being stored in run memory, so that completing above-mentioned each implementation
The method of any D2D flow processing or the method for D2D flow transaction in example.
Embodiment 9:
The embodiment of the invention also provides a kind of systems of D2D flow processing, and the system comprises one or more to buy
Family's terminal, one or more seller's terminals and server, wherein buyer, which is in, to be needed using network flow, but is the absence of
Floating resources do not have operator's signal, can not be linked to the state of network;Seller can be linked to network and (pass through operator
The network or wifi of offer), it is desirable to income is exchanged for by providing network flow.Different sellers may be linked to different
Carrier network, its own is also different at one's own expense, therefore seller can provide different flow prices, as shown in figure 12, specifically
:
The seller's terminals, for server registration, reporting the unit price of oneself and the flow total value to be sold, and week
The status information of the monitoring of phase property oneself, reports the status information to server;
Wherein, status information includes Network status, geographical location etc..
The purchaser terminal, for server registration, reporting the unit price of oneself and the flow total value to be bought;Monitoring
The network signal of surrounding, and the network signal relevant information monitored is sent to server;
Wherein, the network signal relevant information includes the SSID and MAC Address of hot spot.
The server, for obtaining the corresponding auction information of each user in trade network and/or auction information;According to
The descending sequence of absolute value of each unit price in trade network arranges each flow total value corresponding to each unit price, obtains the first sequence
Column calculate the flow total value M to be sold in trade network, equilibrium are calculated according to the First ray and flow total value M
Price;According to the First ray and the equilibrium price, the auction users and auction user that the first round participates in business are determined;It presses
The transaction of the auction users and auction user is completed according to preset strategy.
In embodiments of the present invention, server is in addition to for going back other than running D2D flow processing method described in embodiment 1
It is responsible for carrying out buyer and seller authentication, match control, disbursement and sattlement, the work such as data acquisition.
Embodiment 10:
The present invention additionally provides a kind of based on distribution other than providing the device of the processing of D2D flow described in embodiment 7
The server of architecture design, matched seller device and buyer device are as shown in figure 13, and the server includes:
Account center: account center is responsible for managing the account information of both parties, and provides authentication service.Both parties exist
Must first be registered to account center before flow transaction, after account's center certification, flow friendship can be carried out
Easily;
Settlement center: it is responsible for settling accounts the expense generated in both parties' flow process of exchange.It was shared in flow
Cheng Zhong, both parties all run accounting module, and after the completion of flow is shared, it is clear that expense carries out expense after both sides submit confirmation errorless
It calculates, avoids billing error caused by breaking due to Network Abnormal;
Data acquisition: timing acquiring and user information, including geographical location, current network speed, current signal strength etc..
Use when for control centre's progress match decision;
Control centre: the nucleus module of system, Operating match algorithm match buyer and seller.Before buyer uses network,
The address SSID and mac for the WI-FI hotspot list for needing to search out oneself is sent to control module.Control module is adopted according to data
Collect the collected data run matching algorithm of module, most suitable seller is matched to buyer;
API server: being supplied to the service end interface of mobile device calling, and request be issued to each business module,
The degree of coupling of reduction system improves scalability.
Seller terminal/buyer terminal includes:
Account module: it is responsible for registering to client-server, and logs in.Manage account's rate etc.;
Detection module: detection current network conditions, geographical location information, the information such as periphery wifi hotspot list.And it reports
To server;
Accounting module: it is responsible for carrying out traffic statistics in process of exchange;
Url management: reporting server to request, and is linked to respective nodes according to the matching result of server end;
D2D flow method of commerce described in reference implementation example 6, in the server of the distributed structure/architecture described in the present embodiment
Implementation is specifically referred to and is completed shown in Figure 14, here, not repeating one by one.
It is worth noting that in information exchange, implementation procedure between module, unit in above-mentioned apparatus and system etc.
Hold, due to being based on same design with processing method embodiment of the invention, particular content be can be found in embodiment of the present invention method
Narration, details are not described herein again.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of embodiment is can to lead to
Program is crossed to instruct relevant hardware and complete, which can be stored in a computer readable storage medium, storage medium
It may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access
Memory), disk or CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.