Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art, a kind of method that can make TCP transmission performance optimum, raising network throughput, raising bandwidth utilization, better utilization Radio Resource, stable and reliable working performance, the control of scope of application wireless network realization comparatively widely transmission control protocol sensing network coded scheduling in wireless communication procedure is provided.
In order to realize above-mentioned purpose, wireless network of the present invention realizes that the method for transmission control protocol sensing network coded scheduling control is as follows:
Realize the method for transmission control protocol sensing network coded scheduling control in this wireless network, its main feature is that described method may further comprise the steps:
(1) sets up Wireless Network Coding model, wireless channel model and transmission control protocol model in the Radio Network System;
(2) respectively the channel quality and the transmission control protocol dynamic property of Radio Network System are carried out evaluation process according to wireless channel model and transmission control protocol model;
(3) result according to evaluation process disposes in real time to the channel speed coded system in the Radio Network System;
(4) intermediate node in the Radio Network System determines that according to the Wireless Network Coding Model Selection one group of tcp data bag carries out encoding process;
(5) described intermediate node responds the sender of this group tcp data bag, and the packet after the encoding process is transmitted processing.
Realize in this wireless network setting up the Wireless Network Coding model in the method for transmission control protocol sensing network coded scheduling control, may further comprise the steps:
(11) in the intermediate node of Radio Network System, set up the local data packet buffer, in the described local data packet buffer this intermediate node of storage from wireless network monitoring reception to packet and produce and the packet at free interval by this intermediate node oneself;
(12) in the intermediate node of Radio Network System, set up the lower-priority data packet buffer, in the described lower-priority data packet buffer storage this intermediate node from wireless network monitoring reception to be not the packet that need send to other node.
Local data packet buffer in this wireless network in the method for realization transmission control protocol sensing network coded scheduling control is also carried out following processing operation:
(111) with described intermediate node institute monitoring reception to the packet crossed of coding carry out decoding processing;
(112) situation of the packet that arrives according to this intermediate node institute monitoring reception is created and is received report, and shares and give the node adjacent with this intermediate node.
Realize the wireless channel model of setting up in the method for transmission control protocol sensing network coded scheduling control in this wireless network, be specially:
Set up wireless channel model P according to following formula
e:
Wherein,
K
1And k
2Be the factor of coding criterion, N
RetransFor retransmitting number of times, N
FrBe the frame number of packet, L
FrThe frame length of packet, BER are error rate.
Channel quality and transmission control protocol dynamic property to Radio Network System in this wireless network in the method for realization transmission control protocol sensing network coded scheduling control are carried out evaluation process, may further comprise the steps:
(21) obtain signal and the interference and the noise ratio SINR of the channel of Radio Network System according to wireless channel model;
(22) at the sending node of Radio Network System, judge the relation between the current state n of TCP congestion window state parameter η, α, β and TCP congestion window of response, wherein:
1≤η<α<β≤N, N are the size of TCP send window.
The result according to evaluation process in this wireless network in the method for realization transmission control protocol sensing network coded scheduling control disposes in real time to the channel speed coded system in the Radio Network System, may further comprise the steps:
(31) if β<n≤N, then the TCP transmission rate is very high, and Radio Network System is configured to high channel rate coding mode;
(32) if α<n≤β then is configured to Radio Network System minimum channel rate coding mode;
(33) if η<n≤α then is configured to Radio Network System the coded system that channel speed is not less than QPSK;
(34) if 1≤n≤η then is configured to Radio Network System the coded system that channel speed is not less than BPSK.
High channel rate coding mode in this wireless network in the method for realization transmission control protocol sensing network coded scheduling control is the QAM64 coded system.
Minimum channel rate coding mode in this wireless network in the method for realization transmission control protocol sensing network coded scheduling control is the QAM16 coded system.
Realize in this wireless network determining that according to the Wireless Network Coding Model Selection one group of tcp data bag carries out encoding process, may further comprise the steps in the method for transmission control protocol sensing network coded scheduling control:
(41) described intermediate node is based on the Wireless Network Coding model, and the reception report and the default screening rule that send according to adjacent node screen received tcp data bag;
(42) described intermediate node is according to the TCP transmission rate of each tcp data bag, the instant channel condition of all relevant Radio Links and the definite one group of tcp data bag that will carry out encoding process of channel speed coded system of configuration in real time;
(43) this group tcp data bag is carried out encoding process, and obtain the respective coding packet.
Default screening rule in this wireless network in the method for realization transmission control protocol sensing network coded scheduling control comprises:
(411) bag that is produced by described intermediate node oneself can not be encoded as one group of packet;
(412) having the packet that the identical next one jumps a little can not encode as one group of packet;
(413) if the next one of packet transmits the requirement that the channel quality of link is lower than the coded system of lowest channel speed, then with this data packet discarding.
Realize in this wireless network in the method for transmission control protocol sensing network coded scheduling control this group tcp data bag being carried out encoding process, be specially:
With XOR bit arithmetic symbol this group tcp data bag is encoded.
The code rate of carrying out encoding process in this wireless network in the method for realization transmission control protocol sensing network coded scheduling control is for requiring the speed of the minimum this locality bag of speed in this group packet.
Realize having in forwarding information packet header of the coded data packet in the method for transmission control protocol sensing network coded scheduling control the local data package informatin behind the coding, the recipient information of each local packets, reception report information, reporting quantities field and the group/cording quantity field of this intermediate node in this wireless network.
Realize in this wireless network setting up the transmission control protocol model in the method for transmission control protocol sensing network coded scheduling control, be specially:
Set up the transmission control protocol model based on TCP Reno algorithm.
Adopted the wireless network of this invention to realize the method that transmission control protocol sensing network coded scheduling is controlled, since wherein based on existing feasibility study network code performance limited, utilized the chance dispatching algorithm in the mobile radio network, on the intermediate node of wireless network, take all factors into consideration and decide which bag to be encoded into an encoded packets aspect the dynamic of TCP and the link condition two and use what data rate coding, thereby can know accurately in unpredictable link condition that thereby any channel-changing can send the sender of acknowledge message ACK to the TCP bag fast and effectively, reduced network congestion, especially the present invention has considered that the congestion window size (a TCP parameter) and the condition of wireless channel improve the TCP transmission performance, thereby can make network that more high-throughput is arranged thereby can make bandwidth be used more effectively, improved bandwidth utilization, can the better utilization Radio Resource, stable and reliable working performance, the scope of application are comparatively extensive.
Embodiment
In order more to be expressly understood technology contents of the present invention, describe in detail especially exemplified by following examples.
See also shown in Figure 1ly, realize the method for transmission control protocol sensing network coded scheduling control in this wireless network, its main feature is that described method may further comprise the steps:
(1) sets up Wireless Network Coding model, wireless channel model and transmission control protocol model in the Radio Network System; Set up the Wireless Network Coding model, may further comprise the steps:
(a) in the intermediate node of Radio Network System, set up the local data packet buffer, in the described local data packet buffer this intermediate node of storage from wireless network monitoring reception to packet and produce and the packet at free interval by this intermediate node oneself; This local data packet buffer is also carried out following processing operation:
(i) with described intermediate node institute monitoring reception to the packet crossed of coding carry out decoding processing;
(ii) the situation of the packet that arrives according to this intermediate node institute monitoring reception is created and is received report, and shares and give the node adjacent with this intermediate node;
(b) in the intermediate node of Radio Network System, set up the lower-priority data packet buffer, in the described lower-priority data packet buffer storage this intermediate node from wireless network monitoring reception to be not the packet that need send to other node;
Set up wireless channel model, be specially:
Set up wireless channel model P according to following formula
e:
Wherein,
K
1And k
2Be the factor of coding criterion,
N
RetransFor retransmitting number of times, N
FrBe the frame number of packet, L
FrThe frame length of packet, BER are error rate;
Set up the transmission control protocol model, be specially:
Set up the transmission control protocol model based on TCP Reno algorithm;
(2) respectively the channel quality and the transmission control protocol dynamic property of Radio Network System are carried out evaluation process according to wireless channel model and transmission control protocol model, may further comprise the steps:
(a) obtain signal and the interference and the noise ratio SINR of the channel of Radio Network System according to wireless channel model;
(b) at the sending node of Radio Network System, judge the relation between the current state n of TCP congestion window state parameter η, α, β and TCP congestion window of response, wherein:
1≤η<α<β≤N, N are the size of TCP send window;
(3) result according to evaluation process disposes in real time to the channel speed coded system in the Radio Network System, may further comprise the steps:
(a) if β<n≤N, then the TCP transmission rate is very high, and Radio Network System is configured to high channel rate coding mode; This high channel rate coding mode can be the QAM64 coded system, also can be other suitable coded system;
(b) if α<n≤β then is configured to Radio Network System minimum channel rate coding mode; This minimum channel rate coding mode can be the QAM16 coded system, also can be other suitable coded system;
(c) if η<n≤α then is configured to Radio Network System the coded system that channel speed is not less than QPSK;
(d) if 1≤n≤η then is configured to Radio Network System the coded system that channel speed is not less than BPSK;
(4) intermediate node in the Radio Network System determines that according to the Wireless Network Coding Model Selection one group of tcp data bag carries out encoding process, may further comprise the steps:
(a) described intermediate node is based on the Wireless Network Coding model, and the reception report and the default screening rule that send according to adjacent node screen received tcp data bag; Should comprise by default screening rule:
(i) bag that is produced by described intermediate node oneself can not be encoded as one group of packet;
(ii) having the packet that the identical next one jumps a little can not encode as one group of packet;
If (iii) the channel quality of the next one of packet transmission link is lower than the requirement of the coded system of lowest channel speed, then with this data packet discarding;
(b) described intermediate node is according to the TCP transmission rate of each tcp data bag, the instant channel condition of all relevant Radio Links and the definite one group of tcp data bag that will carry out encoding process of channel speed coded system of configuration in real time;
(c) this group tcp data bag is carried out encoding process, and obtain the respective coding packet, be specially: this group tcp data bag is encoded with XOR bit arithmetic symbol;
This code rate of carrying out encoding process is for requiring the speed of the minimum this locality bag of speed in this group packet; Have the local data package informatin behind the coding, the recipient information of each local packets, reception report information, reporting quantities field and the group/cording quantity field of this intermediate node in the forwarding information packet header of coded data packet;
(5) described intermediate node responds the sender of this group tcp data bag, and the packet after the encoding process is transmitted processing.
In the middle of reality was used, the correlation model in the method for the present invention was as follows:
In algorithm of the present invention, the model that need use comprises the network code model, wireless channel model, and TCP model:
(1) network code model:
In order to make coding have randomness, the packets of information in the intermediate node monitoring network at random.The packets of information that extracting listens to and it is deposited in the buffer (local data packet buffer) that is named as this locality of packetPool.Storage is also stored by node oneself and is produced the packets of information that the special time interval is arranged except the packets of information of monitoring among the packetPool.Packets of information among the packetPool is used for doing two things: the one, and, the packets of information that the coding of node is crossed is passed in decoding; The 2nd,, create the reception report and share to neighbors.No matter when node has obtained the chance of a transmission, and it all will receive report add in the bag that sends information with other nodes sharing.When other neighbors listened to such bag, they extracted and receive report and upgrade local information.Each node all also has the buffer (lower-priority data packet buffer) of another one lowPriorityBuffer.Those that storage listens in the buffer of lowPriorityBuffer are not the packets of information that will issue certain node.This has just guaranteed that traditional interface queue can not flooded by the packets of information of coming from network.This has also reduced those in addition the potential extra process load that may reduce the node life-span.In addition, this has been avoided unnecessary forwarding bag to impact network.The bag that has only the bag of node oneself generation and transmit by node can pass through IFQ (Fair Queue algorithm).Bag among the lowPriorityBuffer have only and the packet encoder by IFQ after just can be transmitted, otherwise through being dropped after the particular time interval.
Suppose that node all shared their reception report.When a node had data to transmit, scheduler program checked that at first the reception report that comes from neighbors decides which bag coding of putting together.Notice that those will weave into one group of bag never by the bag that node oneself produces.Reason is not have neighbors to monitor such bag.In addition, the identical next one a little the bag coding of also not putting together that jumps is arranged.If so done, recipient's its this locality bag of can not decoding so.ρ ∈ ψ={ P
1, P
2..., P
lIt is the combination of the one group of bag that will encode.Scheduler program uses the channel information of the decision radio link quality of collecting to determine which bag to be coupled with head.If bag ρ, its link-quality is very poor, even the lowest modulation strategy of difference all can not be used, such bag will remove from combination ψ.According to the TCP transmission rate of each bag, taken all factors into consideration the instant channel condition of all relevant Radio Links, scheduler program distributes best data rate to give the encoded packets that produces from combination ψ.When final decision behind the one group of bag that will encode, accord with the XOR bit arithmetic and to encode.The information of this locality bag in the bag in the forwarding information packet header of encoded packets (seeing also shown in Figure 1) behind our the note coding and their recipient are so the recipient just can know the recipient whether they expect.Equally, it can help the recipient to determine which bag will be used to decode.Reception also will be added before being reported in the bag transmission.In Fig. 1, receive reporting quantities (Report num) and group/cording quantity (Encoded num) territory and all distributed a byte.Here supposition:
● a node is owing to internal memory, and the reasons such as limitation of power and calculating can not keep (or processing) to surpass 256 monitoring bags in packetPool.
● a node can not be encoded and be surpassed 256 local bags.
Equally, other nodes also are such abilities, and this just means that forwarding information packet header can produce.Therefore, wrap oversizely, this is to reduce network performance.Should be noted that and use local search network code algorithm to replace the detailed query algorithm.These all are that hypothesis node resource limited and detailed inquiry may be introduced unwarranted unnecessary delay and causes reducing network throughput.
Strategy of the present invention is to use different unicast mode methods.Suppose collective's information content that bag P carries each bag, P={P
1, P
2..., P
l.Bag P can only send among the numerous recipients of these encoded packets to.The benefit of this method has been minimized affirmation bag in the network, and if not this method, each recipient will return one and confirms will reduce effective utilization of bandwidth so by bag so.Equally, because encoded packets only comprises the good this locality bag of Radio Link, bag transmits possibility of success and the decoding possibility of success will be very high.
If K is the number of local bag in encoded packets, for the success of can decoding, the recipient of expection must have wherein K-1 local bag.In the process of decoding, encoded packets is carried out the XOR bit arithmetic with the bag among the local packetPool.If not to be expection recipient's node listen to such bag and K-1 be used for the decoding bag of bag P is also arranged for some, it can extract this locality bag that it does not have and store among the packetPool so.
(2) channel model:
The present invention uses the TwoRayGround model as propagation model in one square kilometre scope.The error rate of setting bag among the present invention is that 0.01.MAC layer number of retransmissions is 6. for purpose simple and simulation, and the size of TCP bag is set at 100 bytes.Through-put power is 100 watts.Suppose that channel estimating is desirable.Suppose that the sender receives channel information there from the recipient.Use following formula (1), (2), (3), the present invention determines the SINRs (Signal to Interference plus Noise Ratio signal and interference and noise ratio) (as shown in the following Table 1) that will use as required in different modulation strategies:
K wherein
1And k
2Be a series of contents in the coding criterion.Especially, N
RetransBe the number of times of retransmitting, N
FrBe frame number, L
FrBe frame length, and BER is an error rate.
Table 1 modulation strategy and Signal to Interference plus Noise Ratio
Modulation strategy |
The SINR (dB) that requires |
BPSK |
6.549 |
QPSK |
8.471 |
QAM16 |
10.989 |
QAM64 |
16.13 |
(3) TCP model
Use TCP Reno algorithm in the method for the present invention, it is a most popular algorithm in the Transmission Control Protocol version.The TCPReno algorithm comprises startup slowly, Congestion Avoidance and re-transmission fast, fast quick-recovery stage.When a TCP session was set up, we said that TCP is in slow the startup stage.In this stage, the big or small double growth of congestion window when whenever receiving an ACK acknowledge message.The size of congestion window is the restriction of transmitting terminal being received a transmitting terminal of the maximum amount of data that affirmation (ACK) can transmit to network before.Surpass thresholding or detect when congested up to the size of congestion window, stop to carry out slowstart algorithm, change congestion avoidance phase over to.Congestion window size begins linear growth.When receiving terminal is received an out-of-sequence datagram, can beam back a repeat ACK immediately, the purpose of this ACK is to inform that transmitting terminal receives an out-of-sequence datagram and its desired sequence number of accepting is described.From the angle of transmitting terminal, repeat ACK may cause by many network problems.At first, they might be to cause because of packet loss.In the case, all data segments after this data segment all can trigger repeat ACK.Secondly, repeat ACK may be owing to the rearrangement of network to data segment causes.At last, repeat ACK might be that ACK or data segment are caused by network copy.In addition, filled up the sequence number vacancy when receiving terminal partial or completely and should send an ACK immediately, can notify transmitting terminal more in time like this, it is recovered from retransmission state rapidly.
Receiving that 3 repeat ACKs (are 4 continuous identical ACK, indicate that 1 data segment loses) time, TCP does not wait that retransmission timer is overtime it seems that with regard to retransmitting immediately the data segment of having lost enters the fast quick-recovery stage and carries out new transfer of data, at this moment the retransmission timer duration doubles, transmission rate reduces by half, and is in this stage ever since up to 1 non-repeat ACK arrival.Forward to more afterwards and avoid the congested stage, after the timer expiry, forward to slower the startup stage.Even this strategy TCP version than early stage is good, efficient is still very low when having only at least one lost package of recipient.Therefore, its performance is poorer in wireless network environment.
What the present invention proposed is the TCP sensing network coding method of a more healthy and stronger more comprehensively random schedule.In this method, take all factors into consideration the dynamic property (using the TCP model of B joint explanation) of TCP and channel quality (using the channel model of C joint explanation) and decide which bag to be encoded and use what data rate.Thereby this method can be known any channel-changing accurately and can respond the sender of TCP bag fast and effectively in unpredictable link condition.Especially,, establish TCP send window size and be N at transmitting terminal, 1≤η<α<β≤N, η wherein, α and β are the parameters that determines TCP congestion window state equally.If n ∈ N is the state of current congestion window, β<n≤N, expression TCP transmission rate is very high.Therefore, scheduler program can be ignored link quality distribution high channel rate coding mode (QAM64).The reason that can so do is if when TCP speed is very high, and bad channel quality and channel speed can be inevitably because the congested packet losses that causes when low.The benefit of distributing high channel speed in this case is that the good node of other link qualities can obtain media fast.The advantage of so doing is to share by efficient resource.Yet transmission can cause high bit error rate on the channel of an employing high modulation strategy and bad channel quality.This just needs to adopt adaptive coding to guarantee this special bit error rate.And just in case owing to the reason expection recipient of bad channel quality has lost bag, the node that other links are good can listen to such bag and can be transmitted to the expection recipient by network code.When α<n≤β, adopt minimum channel speed coded system QAM16, can distribute QAM64 if channel quality is fine.So do and to guarantee that TCP can utilize obtainable bandwidth fast.For η<n≤α, allocated channel rate coding mode is at least QPSK.When if channel quality becomes very good, can adopt channel coding method, as BPSK with 1≤n≤η.
Regular, Radio Link meeting deep fading, this just means that minimum modulation strategy all can not use.In this case, allocated channel not.Therefore, do not transmit any data.So Duo benefit is saving power and avoids impacting other node.Yet TCP can be overtime when can not receive acknowledge message ACK.Node does not transmit data and just means that neighbors can not receive that receiving report upgrades the information of monitoring bag, at this moment Bian Ma chance will be little a lot.For fear of this situation, allow certain channel qualities such as delay to improve and recover transmission.Promptly enabling to transmit in the time of bad channel quality, also is to receive report and monitor bag in order to provide to the good neighbors of link-quality.So can increase the code machine meeting.On intermediate node, bag of encoding or non-encoded packets all are the data rates that determines according to the TCP transmission rate that forwarding information packet header subscript is known.When a code machine meeting, intermediate node selects the suitable bag of a combination to encode according to method discussed above.Notice that final one group of bag selecting may require different code rates to encode.In order to obtain best data rate, our strategy is a speed of selecting to require in this group bag the minimum local bag of speed.Even this selection can not be satisfied the requirement of the high bag of those speed, but be to have considered that the dynamic of TCP and the requirement of link condition two aspects have guaranteed performance.
Adopted above-mentioned wireless network to realize the method for transmission control protocol sensing network coded scheduling control, since wherein based on existing feasibility study network code performance limited, utilized the chance dispatching algorithm in the mobile radio network, on the intermediate node of wireless network, take all factors into consideration and decide which bag to be encoded into an encoded packets aspect the dynamic of TCP and the link condition two and use what data rate coding, thereby can know accurately in unpredictable link condition that thereby any channel-changing can send the sender of acknowledge message ACK to the TCP bag fast and effectively, reduced network congestion, especially the present invention has considered that the congestion window size (a TCP parameter) and the condition of wireless channel improve the TCP transmission performance, thereby can make network that more high-throughput is arranged thereby can make bandwidth be used more effectively, improved bandwidth utilization, can the better utilization Radio Resource, stable and reliable working performance, the scope of application are comparatively extensive.
In this specification, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, specification and accompanying drawing are regarded in an illustrative, rather than a restrictive.