Summary of the invention
The objective of the invention is to solve that portable terminal carries out network selecting according to mobile network's service quality and network speed and a kind of communication of mobile terminal network method for optimizing and preferred embodiment in GSM of providing; Wherein network quality is mainly considered disconnection number of times, route length, and network speed considers that mainly packet is issued to the time interval, speed uplink and the downstream rate of receiving affirmation.
The objective of the invention is to realize like this:
A kind of mobile communications network method for optimizing is characterized in that, may further comprise the steps:
Step 1 according to the definite factor that influences network service quality and network speed of the characteristic of GSM, is referred to as decision variable, sets up Mathematical Modeling;
Step 2, for each decision variable distributes initial weight, selected mobile communication system network evaluation function;
Step 3 in certain period, is measured the influence of each decision variable to whole network, revises the weight of decision variable, to seek more excellent weight, obtains new weight combination;
Step 4, the set of weights cooperation that obtains according to step 3 is an evaluation function, tests and calculate the value of each decision variable of three big mobile networks.
Step 5 according to the maximum of three mobile networks' decision variable, is done corresponding the correction to the decision-making variate-value.
Step 6, calculating and comparison three big mobile networks' evaluation function value is selected optimum connection of mobile terminal into network.After the certain hour section, it is preferred to carry out network again, to adapt to the continuous variation of network.
In
step 1, the factor that influences network quality comprises the length of disconnection number of times, route; With disconnection number of times between at a time and the ratio that always is connected number of times as decision variable
, with the ratio of the maximum hop count of the average route length of packet in certain time period and packet as decision variable
.The factor that influences network speed comprises that packet is from being issued to the time interval, mobile network's speed uplink and the downstream rate of receiving affirmation; With packet in certain time period from the ratio that sends to the average time interval of receiving affirmation and packet retransmission threshold value as decision variable
; With three big mobile networks at a time between in the section difference and the three big mobile networks of maximum and the speed uplink mean value in this time period of speed uplink in this time period the peaked ratio of speed uplink as decision variable
, with three big mobile networks at a time between section interior downstream rate maximum and in this time period difference and the three big mobile networks of downstream rate mean value in this time period the peaked ratio of downstream rate as decision variable
.
In
step 2; The mobile communication system network evaluation function can be expressed as
; Wherein
is the pairing weight of each decision variable; And satisfy
,
.For initial weight; Can be
with each weight allocation, i.e. the influence of each decision variable be equal.
In step 3; Through weighing the influence size of each decision variable to the mobile network; Whether decision redistributes weight
; If need redistribute weight, then weight need satisfy constraints
and
; If need not redistribute weight, quote the weight allocation in
step 2.
In step 4, the value of the corresponding decision variable of three big mobile networks
in the section between meter is calculated at a time.
In step 5; If record the maximum of certain decision variable
in three big mobile networks less than
; Consider that this decision variable is too little in whole weighted average; Do not match with other decision variable, it is done corresponding revision.The value of this decision variable in three macroreticulars is all enlarged integer side's power of
, the maximum that makes this decision variable in three macroreticulars is greater than
.
In step 6, calculating is also compared three big mobile network's evaluation function values, and the value reckling is an optimal network, thereby it is preferred to accomplish primary network.After after a while, change if influence the importance of the factor of network service quality, the weight that remodifies decision variable is returned step 3, otherwise returns step 4, continues to calculate the evaluation function value, reselects optimal network.
The mobile communications network method for optimizing, its characteristic comprises:
The first, in order to estimate the network service quality of each mobile communication carrier, consider to influence the factor of network service quality, set up Mathematical Modeling;
The second, the factor that influences network service quality comprises that the length of disconnection number of times, route, packet are from being issued to the time interval, mobile network's speed uplink and the downstream rate of receiving affirmation;
The 3rd; The decision variable of Mathematical Modeling comprises
; Wherein
is illustrated in disconnection number of times and the ratio that always is connected number of times in certain period;
representes the ratio of maximum hop count of average route length and the packet of packet in this time period;
representes that packet in this time period is from sending to the average time interval of receiving affirmation and the ratio of packet retransmission threshold value;
expression three big mobile networks at a time between difference and three big mobile networks peaked ratio of speed uplink in this time period of speed uplink mean value in maximum and this time period of speed uplink in the section,
representes the maximum of section interior downstream rate between three big mobile networks are at a time and difference and three big mobile networks peaked ratio of downstream rate in this time period of interior downstream rate mean value of this time period.
The 4th; The target function of Mathematical Modeling is
; Wherein
is the pairing weight of each decision variable; And satisfy
,
;
The 5th, according to the maximum of the three big mobile networks' that test and calculate decision variable, the decision-making variate-value is done corresponding the correction;
The 6th, in certain period, making target function
reach minimum network among the three big mobile networks is preferred network.
A kind of mobile communications network preferred embodiment comprises network interface card module, middle control module, telecommunications 3G module, moves 3G module and the 3G of UNICOM module; It is characterized in that: portable terminal sends packet through the network interface card module, and this network interface card module is network interface card or Wi-Fi equipment; Middle control module links to each other through serial ports with the network interface card module, and middle control module is used for realizing that mobile communications network is preferred and accomplish preferred at the network of three big mobile communication; In the control module again through serial ports respectively with telecommunications 3G module, move the 3G module and be connected with UNICOM 3G module.
It is preferred that packet carries out mobile communications network via the network method for optimizing of middle control module, according to the mobile communications network method for optimizing, if communication network is the current optimal network, then packet sent to the telecommunications 3G module that links to each other with middle control module; If the mobile network is the current optimal network, then packet is sent to the mobile 3G module that links to each other with middle control module; If UNICOM's network is the current optimal network, then packet is sent to the 3G of the UNICOM module that links to each other with middle control module.
Characteristics of the present invention and good effect are following: through set up Mathematical Modeling estimate at a time between the section in optimal network; And with network quality and network speed as the key factor that influences mobile communications network, thereby guaranteed the reasonability of the decision variable of the Mathematical Modeling of building.In addition according to the weight of each decision variable of actual conditions correction and decision variable value so that target function (evaluation function) is more reasonable.Its characteristic is that in mobile communication, to carry out network preferred through setting up rational mathematical model, thereby makes portable terminal can select the optimum access network of communication quality, effectively for the user provides service on net, and simple.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is further specified.
Embodiment 1; The mobile communications network preferred embodiment comprises mixed-media network modules mixed-media 1, middle control module 2 and the telecommunications 3G module 3 that links to each other through serial ports with middle control module, moves 3G module 4, the 3G of UNICOM module 5; It is characterized in that: portable terminal sends packet through network interface card module 1, and this network interface card module can be equipment such as network interface card, Wi-Fi.
In control module 2 and network interface card module 1 link to each other through serial ports, encapsulated the mobile communications network method for optimizing in the middle control module 2, the network of completion in three big mobile communication is preferred.It is preferred that packet carries out mobile communications network via middle control module 1 built-in network method for optimizing, according to the mobile communications network method for optimizing, if communication network is the current optimal network, then packet sent to the telecommunications 3G module 3 that links to each other with middle control module 2; If the mobile network is the current optimal network, then packet is sent to the mobile 3G module 4 that links to each other with middle control module 2; If UNICOM's network is the current optimal network, then packet is sent to the 3G of the UNICOM module 5 that links to each other with middle control module 2.
A kind of mobile communications network method for optimizing is characterized in that, may further comprise the steps:
Step 1 according to the definite factor that influences network service quality and network speed of the characteristic of GSM, is referred to as decision variable, sets up Mathematical Modeling;
Step 2, for each decision variable distributes initial weight, selected mobile communication system network evaluation function;
Step 3 in certain period, is weighed the influence of each decision variable to whole network, revises the weight of decision variable, to seek more excellent weight, obtains new weight combination;
Step 4, the set of weights cooperation that obtains according to step 3 is an evaluation function, measures the value of each decision variable that calculates three big mobile networks.
Step 5 according to the maximum of three mobile networks' decision variable, is done corresponding the correction to the decision-making variate-value.
Step 6 is calculated and three big mobile networks' evaluation function value relatively, selects optimum connection of mobile terminal into network.After the certain hour section, it is preferred to carry out network again, to adapt to the continuous variation of network.
In
step 1, the factor that influences network quality comprises the length that connects number of times and disconnection number of times, route; With disconnection number of times in the section between at a time and the ratio that always is connected number of times as decision variable
, with the ratio of the maximum hop count of the average route length of packet in certain time period and packet as decision variable
.The factor that influences network speed comprises that packet is from being issued to the time interval, mobile network's speed uplink and the downstream rate of receiving affirmation; With packet in certain time period from the ratio that sends to the average time interval of receiving affirmation and packet retransmission threshold value as decision variable
; With three big mobile networks at a time between in the section difference and the three big mobile networks of maximum and the speed uplink mean value in this time period of speed uplink in this time period the peaked ratio of speed uplink as decision variable
, with three big mobile networks at a time between section interior downstream rate maximum and in this time period difference and the three big mobile networks of downstream rate mean value in this time period the peaked ratio of downstream rate as decision variable
.
In
step 2; The mobile communication system network evaluation function can be expressed as
; Wherein
is the pairing weight of each decision variable; And satisfy
,
.For initial weight; Can be
with each weight allocation, i.e. the influence of each decision variable be equal.
In step 3; Through measuring the influence size of each decision variable to the mobile network; Whether decision redistributes weight
; If need redistribute weight, then weight need satisfy constraints
and
; If need not redistribute weight, quote the weight allocation in
step 2.
In step 4, the value of the corresponding decision variable of three big mobile networks
in the section between test is calculated at a time.
In step 5; If record the maximum of certain decision variable
in three big mobile networks less than
; Consider that this decision variable is too little in whole weighted average; Do not match with other decision variable, it is done corresponding revision.With integer side's power that this decision variable value in three macroreticulars all enlarges
, the maximum that makes this decision variable in three macroreticulars is greater than
.
In step 6, calculating is also compared three big mobile network's evaluation function values, and the value reckling is an optimal network, thereby it is preferred to accomplish primary network.After after a while, change if influence the importance of the factor of network service quality, the weight that remodifies decision variable is returned step 3, otherwise returns step 4, continues to calculate the evaluation function value, reselects optimal network.
Embodiment 2, and the time period of testing is decided to be 7 days, promptly in a work week, pass judgment on the optimal network among the three big mobile networks.Test environment is the 3G HSDPA of a China Mobile network's coverage area, the 3G HSDPA of CHINAUNICOM network's coverage area, the 3G EVDO of China Telecom network's coverage area.In this time period; Think that initial decision variable influence is equal; Thereby the initial weight of each decision variable equates,
.Consider that simultaneously route length, packet are not too important from sending to these two factors of time of receiving packet; Redistribute weight; The respective weights of inessential factor is assigned as
, the weight allocation of its excess-three decision variable is
.
In this work week, the value of each decision variable is calculated in test, comprising:
First; For decision variable
, it is illustrated in disconnection number of times and the ratio that always is connected number of times in this work week.In this work week, for communication network, disconnection 70 times, always connecting number of times is 100 times; For the mobile network, disconnection 80 times, always connecting number of times is 103 times; For UNICOM's network, disconnection 65 times, always connecting number of times is 98 times.Thereby for communication network, decision variable
; For the mobile network, decision variable
; For UNICOM's network, decision variable
.Since decision variable
maximum is
greater than
, need not revise the value of decision variable
.
Second; For decision variable
, it is illustrated in the ratio of maximum hop count of average route length and the packet of packet in this work week.The homepage website 221.179.180.76 of Sina is an example with visit, and three big mobile networks' maximum hop count is 255; For communication network, its average route is 15 jumpings; For the mobile network, its average route is 16 jumpings; For UNICOM's network, its average route is 15 jumpings.Thereby for communication network, decision variable
; For the mobile network, decision variable
; For UNICOM's network, decision variable
.Since decision variable
maximum is
less than
, need revise the value of decision variable
.Enlarge 10 1 power power; Promptly 10 times, make the maximum of decision variable
become
greater than
.After the correction; For communication network, decision variable
; For the mobile network, decision variable
; For UNICOM's network, decision variable
.
The 3rd; For decision variable
, packet is from sending to the average time interval of receiving affirmation and the ratio of packet retransmission threshold value in its this work week of expression.Each network packet retransmission threshold value is 3min.The homepage website 221.179.180.76 of Sina is an example with visit, and for communication network, packet is 0.03sec from sending to the average time interval of receiving affirmation; For the mobile network, packet is 0.033sec from sending to the average time interval of receiving affirmation; For UNICOM's network, packet is 0.031sec from sending to the average time interval of receiving affirmation.Thereby for communication network, decision variable
; For the mobile network, decision variable
; For UNICOM's network, decision variable
.Since decision variable
maximum is
less than
, need revise the value of decision variable
.Enlarge 10 3 power powers; Promptly 1000 times, make the maximum of decision variable
become
greater than
.After the correction; For communication network, decision variable
; For the mobile network, decision variable
; For UNICOM's network, decision variable
.
The 4th; For decision variable
, its expression three big mobile network at a time between difference and the three big mobile networks peaked ratio of speed uplink in this time period of the interior speed uplink mean value of maximum and this time period of speed uplink in the section.For communication network, the mean value of speed uplink is 90kb/s in this time period, and maximal rate is 180kb/s; For the mobile network should the mean value of speed uplink be 5.5kb/s in the time period, and maximal rate is 12kb/s; For UNICOM's network, the mean value of speed uplink is 120kb/s in this time period, and maximal rate is 260kb/s; Maximum at this section three big mobile network's speed uplinks in the time is 260kb/s.Thereby for communication network, decision variable
; For the mobile network, decision variable
; For UNICOM's network, decision variable
.Since decision variable
maximum is
greater than
, need not revise the value of decision variable
.
The 5th; For decision variable
, its expression three big mobile network at a time between difference and the three big mobile networks peaked ratio of downstream rate in this time period of the interior downstream rate mean value of maximum and this time period of downstream rate in the section.For communication network, the mean value of downstream rate is 140kb/s in this time period, and maximal rate is 300kb/s; For the mobile network should the mean value of downstream rate be 46.7kb/s in the time period, and maximal rate is 86kb/s; For UNICOM's network, the mean value of downstream rate is 256kb/s in this time period, and maximal rate is 350kb/s; Maximum in this section three big mobile network's downstream rates in the time is 350kb/s.Thereby for communication network, decision variable
; For the mobile network, decision variable
; For UNICOM's network, decision variable
.Since decision variable
maximum is
greater than
, need not revise the value of decision variable
.
Value and weight
with three macroreticulars each decision variable
in this work week; Bring target function
into, the target function value that can get communication network is
; Mobile network's target function value is
; The target function value of UNICOM's network
; Relatively can get, UNICOM's network is the current optimal access network;
In sum; Communication of mobile terminal network method for optimizing; Through set up Mathematical Modeling estimate at a time between optimal network in the section, and with network quality and network speed as the key factor that influences mobile communications network, thereby guaranteed the reasonability of the decision variable of the Mathematical Modeling of building.In addition according to the value of the weight of each decision variable of actual conditions correction and decision variable so that target function (evaluation function) is more reasonable.In mobile communication, to carry out network preferred through setting up rational mathematical model, thereby make portable terminal can select the optimum access network of communication quality, effectively for the user provides service on net, and simple.