# Patent

## Title
Method and implementing apparatus for cooperative multi-hop routing in wireless network

## Abstract

The present invention relates to a method and an implementing apparatus for cooperative multi-hop routing in a wireless network. According to the method the diversity gains and the interrupt probabilities in a cooperative communication manner between master nodes in the route are obtained, and the segmenting mode for sending packet data is determined accordingly, thus implementing cooperative communication in a multi-hop route, where signals having same information are sent through different paths, and multiple independently faded copies of data symbols may be obtained at a receiver end, thus obtaining higher reception reliability and higher transmission capacity, and improving performance of a communication process.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application is a continuation of International Application No. PCT/CN2011/071197, filed on Feb. 23, 2011, which claims priority to Chinese Patent Application No. 201010176128.5, filed on May 12, 2010, both of which are hereby incorporated by reference in their entireties.


FIELD OF THE INVENTION
The present invention relates to the field of wireless communication technologies, and in particular, to a method and an implementing apparatus for cooperative multi-hop routing in a wireless network.
BACKGROUND OF THE INVENTION
In a wireless network, in the case where a source node and a destination node are connected by a one-hop direct link, cooperative communication (Cooperative Communication, CC) is usually adopted to improve the reliability of communication. As a communication manner, cooperative communication may enable a single-antenna mobile station to obtain a gain which is similar to that in a multiple input multiple output (Multiple-Input Multiple-Output, MIMO) system.
A basic idea of cooperative communication is as follows: In a multi-user environment, single-antenna mobile stations may share their antennas according to a certain manner to generate a virtual MIMO system and obtain a transmit diversity gain. Cooperative communication makes use of an antenna of another idle node in the wireless network. When the source node sends information to the destination node, the information is also sent to the idle node at the same time, and then the idle node forwards the information to the destination node. Thus, a node utilizes not only its own spatial channel but also a spatial channel of the idle node, so that a cooperative diversity is generated for the communication, and a virtual MIMO system is generated, which may effectively increase system capacity, enhance network quality, and improves system performance. Cooperative communication methods include a decode-and-forward mode, an amplify-and-forward mode, and a coding-and-forward mode.
In the decode-and-forward (Decode-and-Forward, DF) mode, a cooperative node first attempts to detect data bits of the source node, and then resends the detected bits.
In the amplify-and-forward (Amplify-and-Forward, AF) mode, a cooperative node receives a signal with noise, where the signal with noise is sent by the source node, then amplifies the signal, and resends the amplified signal with noise. A base station makes a combined decision on data transferred by a user and its partner.
The coding-and-forward (Coding-and-Forward, CF) mode is a combination of a channel coding idea and cooperation. In the coding-and-forward mode, two independent fading channels are used to send different parts of each user codeword. A basic idea is that every user sends additional redundant information to its partner. When a channel between them is very bad, this mechanism is automatically restored to a non-cooperation mode. An outstanding characteristic of this mechanism is that cooperation is implemented through channel coding design without the need of feedback between users.
In practical applications, for a decentralized control network, cooperative communication adopts a distributed cooperation protocol, where a user node may independently decide at any time which user to cooperate with, and every user node has at least one partner to provide a second path, so as to form a diversity.
During the process of implementing the present invention, the inventor discovers that the prior art has at least the following disadvantage: The cooperative communication adopting the distributed cooperation protocol is only applicable to the case where there is only a one-hop direct link between the source node and the destination node, and for the case where there is multi-path multi-hop routing between the source node and the destination node, no corresponding cooperative communication method is available to improve performance of a communication process.
SUMMARY OF THE INVENTION
Embodiments of the present invention provide a method and an implementing apparatus for cooperative multi-hop routing in a wireless network, so as to improve communication performance of multi-hop routing.
An embodiment of the present invention provides a method for cooperative multi-hop routing in a wireless network, where the method includes:
after a route is set up, using a common neighbor node of a first master node and a second master node that are in the route as a cooperative node, and obtaining an end-to-end diversity gain and an interrupt probability between the first master node and the second master node when the cooperative node is in cooperation;
using a common neighbor node of the second master node and a third master node that are in the route as a cooperative node, and obtaining an end-to-end diversity gain and an interrupt probability between the second master node and the third master node when the cooperative node is in cooperation;
using a common neighbor node of the first master node and the third master node that are in the route as a cooperative node, and obtaining an end-to-end diversity gain and an interrupt probability between the first master node and the third master node when the cooperative node is in cooperation; and
determining a segmenting mode as one-hop segmenting with a corresponding cooperative node or two-hop segmenting with a corresponding cooperative node by using the obtained diversity gains and interrupt probabilities.
An embodiment of the present invention also provides an apparatus for implementing cooperative multi-hop routing in a wireless network, where the apparatus includes:
a first one-hop segmenting unit, configured to, after a route is set up, use a common neighbor node of a first master node and a second master node that are in the route as a cooperative node, and obtain an end-to-end diversity gain and an interrupt probability between the first master node and the second master node when the cooperative node is in cooperation;
a second one-hop segmenting unit, configured to use a common neighbor node of the second master node and a third master node that are in the route as a cooperative node, and obtain an end-to-end diversity gain and an interrupt probability between the second master node and the third master node when the cooperative node is in cooperation;
a two-hop segmenting unit, configured to use a common neighbor node of the first master node and the third master node that are in the route as a cooperative node, and obtain an end-to-end diversity gain and an interrupt probability between the first master node and the third master node when the cooperative node is in cooperation; and
a mode determining unit, configured to determine a segmenting mode as one-hop segmenting with a corresponding cooperative node or two-hop segmenting with a corresponding cooperative node by using the obtained diversity gains and interrupt probabilities.
According to the technical solutions provided in the foregoing embodiments, the diversity gains and the interrupt probabilities in a cooperative communication manner between master nodes in the route are obtained, and the segmenting mode for sending packet data is determined accordingly, thus implementing cooperative communication in a multi-hop route, where signals having same information are sent through different paths, and multiple independently faded copies of data symbols may be obtained at a receiver end, thus obtaining higher reception reliability and higher transmission capacity, and improving performance of a communication process.



BRIEF DESCRIPTION OF THE DRAWINGS
To better explain the technical solutions of the embodiments of the present invention, accompanying drawings required in the description of the embodiments are briefly introduced below. Apparently, the accompanying drawings in the following description are only some embodiments of the present invention, and persons of ordinary skill in the art may further obtain other drawings according to these accompanying drawings without creative efforts.
FIG. 1 is a flowchart of a method for cooperative multi-hop routing in a wireless network according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a function model of a first master node in the method for cooperative multi-hop routing in a wireless network according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a segmenting mode in the method for cooperative multi-hop routing in a wireless network according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of segmenting mode selection in the method for cooperative multi-hop routing in a wireless network according to an embodiment of the present invention;
FIG. 5 is a flowchart of a heuristic method in the method for cooperative multi-hop routing in a wireless network according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of segmenting mode selection of a section of route in the heuristic method in the method for cooperative multi-hop routing in a wireless network according to an embodiment of the present invention; and
FIG. 7 is a schematic structural diagram of an apparatus for implementing cooperative multi-hop routing in a wireless network according to an embodiment of the present invention.



DETAILED DESCRIPTION OF THE EMBODIMENTS
The technical solutions of the embodiments of the present invention are described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of rather than all of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments that persons of ordinary skill in the art obtain without creative efforts shall also fall within the scope of the present invention.
FIG. 1 is a flowchart of a method for cooperative multi-hop routing in a wireless network according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
Step 11: After a route is set up, use a common neighbor node of a first master node and a second master node that are in the route as a cooperative node, and obtain an end-to-end diversity gain and an interrupt probability between the first master node and the second master node when the cooperative node is in cooperation.
The diversity gain refers to a signal gain obtained by signal combination after a signal passes through different fading channels with different fading features, relative to the signal passing through a single fading channel, that is, a degree of improvement obtained by a system by adopting receiving diversity compared with not adopting receiving diversity under a same receiving condition. A cooperative diversity relies on an antenna of the cooperative node and its own antenna to transmit two or multiple signal samples with independent spatial fading, and by using an independent fading feature of a channel, redundant information is utilized in the combination, so as to obtain a spatial diversity gain, and improve transmission performance.
Step 12: Use a common neighbor node of the second master node and a third master node that are in the route as a cooperative node, and obtain an end-to-end diversity gain and an interrupt probability between the second master node and the third master node when the cooperative node is in cooperation.
Step 13: Use a common neighbor node of the first master node and the third master node that are in the route as a cooperative node, and obtain an end-to-end diversity gain and an interrupt probability between the first master node and the third master node when the cooperative node is in cooperation.
Step 14: Determine a segmenting mode as one-hop segmenting with a corresponding cooperative node or two-hop segmenting with a corresponding cooperative node by using the obtained diversity gains and interrupt probabilities.
A cooperative node of good performance is selected and a lower interrupt probability is required to obtain a higher diversity gain. It can be obtained from a simple analysis that, in multi-path transmission, an interrupt probability of inter-node paths affects the multi-path transmission. Interruption of one path of the multiple paths results in the decrease of the number of diversities received by a destination node, and the corresponding decrease of diversity gains. The more cooperative paths exist, the lower the interrupt probability.
It should be noted that, in a multi-hop route, two adjacent hops in the route may be sequentially taken as a section by using the first master node as a starting node; a segmenting mode of each subsequent section of route is determined in turn according to the method for determining the segmenting mode from the first master node to the third master node; after the segmenting mode of each section of route is determined, it is judged whether an ending node of the section of route is the destination node of the route; and if not, a segmenting mode of a subsequent adjacent section of route is determined.
In the embodiment, the diversity gains and the interrupt probabilities in a cooperative communication manner between master nodes in the route are obtained, and the segmenting mode for sending packet data is determined accordingly, thus implementing cooperative communication in a multi-hop route, where signals having same information are sent through different paths, and multiple independently faded copies of data symbols may be obtained at a receiver end, thus obtaining higher reception reliability and higher transmission capacity, and improving performance of a communication process.
The method for cooperative multi-hop routing in a wireless network according to the embodiment may further include:
Step 15: The first master node sends packet data to the destination node in the determined segmenting mode. That is, cooperative communication is adopted in the multi-hop route to obtain an increase of a diversity gain and a decrease of an interrupt probability.
The foregoing step 11 to step 15 may be executed by the first master node. A function model of the first master node may be as shown in FIG. 2, where route setup is implemented by a source node at the network layer of IP, the selection of cooperative nodes and the exchange of node information are implemented at the MAC layer of the node, the PHY layer provides the MAC layer with PHY layer information of related nodes, such as node power and channel state, as a basis for the selection of cooperative nodes at the MAC layer.
Because a route is determined after the route is set up, the first master node, namely the source node, may know subsequent master nodes that are in the rout, such as the second master node and third master node, and calculate diversity gains of one-hop segmenting and two-hop segmenting separately according to neighbor node information of the first master node, the second master node, and the third master node, so as to select a segmenting mode from the first master node to the third master node (see the following description for details), and a corresponding cooperative node. Afterwards, an operation which is the same as that of the source node is performed starting from the third master node.
One-hop segmenting means that the two master nodes of at least one hop in two adjacent hops in the route use a common neighbor node as a cooperative node; two-hop segmenting means that the first master node and the third master node of two adjacent hops in the route use at least one common neighbor node as a cooperative node.
When a one-hop direct link uses no cooperative node, the first master node is used as the source node, the second master node is used as the destination node, and a formula for calculating the diversity gain CjD from the first master node to the second master node is:

CjD=W log(1+SNR|αsd|2);

where, the subscript s represents the source node, d represents the destination node, W is a channel bandwidth, and SNR|αsd|2 is a signal-to-noise ratio from the source node to the destination node.
When a one-hop direct link uses one cooperative node, and a cooperation mode is an amplify-and-forward mode, the first master node is used as the source node, and the second master node is used as the destination node, and a formula for calculating the diversity gain CjAF from the first master node to the second master node is:




  
    
      C
      jAF
    
    =
    
      
        W
        2
      
      ⁢
      
        log
        ⁡
        
          (
          
            1
            +
            
              SNR
              ⁢
              
                
                  
                  
                    α
                    sd
                  
                  
                
                2
              
            
            +
            
              f
              ⁡
              
                (
                
                  
                    SNR
                    ⁢
                    
                      
                        
                        
                          α
                          sr
                        
                        
                      
                      2
                    
                  
                  ,
                  
                    SNR
                    ⁢
                    
                      
                        
                        
                          α
                          rd
                        
                        
                      
                      2
                    
                  
                
                )
              
            
          
          )
        
      
    
  
  ;




where, the subscript r represents the cooperative node,




  
    
      f
      ⁡
      
        (
        
          x
          ,
          y
        
        )
      
    
    =
    
      xy
      
        x
        +
        y
        +
        1
      
    
  
  ,




SNR|αsr|2 is a signal-to-noise ratio from the source node to the cooperative node, and SNR|αrd|2 is a signal-to-noise ratio from the cooperative node to the destination node.

An end-to-end signal-to-noise ratio may be obtained by solving a state equation:



  
    
      
        [
        
          
            
              
                
                  y
                  d
                
                ⁡
                
                  [
                  n
                  ]
                
              
            
          
          
            
              
                
                  y
                  d
                
                ⁡
                
                  [
                  
                    n
                    +
                    
                      N
                      /
                      4
                    
                  
                  ]
                
              
            
          
        
        ]
      
      
        }
        
          
            y
            d
          
          ⁡
          
            [
            n
            ]
          
        
      
    
    =
    
      
        
          
            [
            
              
                
                  
                    α
                    
                      s
                      ,
                      d
                    
                  
                
              
              
                
                  
                    
                      α
                      
                        r
                        ,
                        d
                      
                    
                    ⁢
                    
                      βα
                      
                        s
                        ,
                        r
                      
                    
                  
                
              
            
            ]
          
          
            }
            A
          
        
        ⁢
        
          
            X
            s
          
          ⁡
          
            [
            n
            ]
          
        
      
      +
      
        
          
            [
            
              
                
                  0
                
                
                  1
                
                
                  0
                
              
              
                
                  
                    
                      α
                      
                        r
                        ,
                        d
                      
                    
                    ⁢
                    β
                  
                
                
                  0
                
                
                  1
                
              
            
            ]
          
          
            }
            B
          
        
        ⁢
        
          
            [
            
              
                
                  
                    
                      z
                      r
                    
                    ⁡
                    
                      [
                      n
                      ]
                    
                  
                
              
              
                
                  
                    
                      z
                      d
                    
                    ⁡
                    
                      [
                      n
                      ]
                    
                  
                
              
              
                
                  
                    
                      z
                      d
                    
                    ⁡
                    
                      [
                      
                        n
                        +
                        
                          N
                          /
                          4
                        
                      
                      ]
                    
                  
                
              
            
            ]
          
          
            }
            
              z
              ⁡
              
                [
                n
                ]
              
            
          
        
      
    
  




  
    
      
    
    ⁢
    
      
        AA
        +
      
      =
      
        [
        
          
            
              
                α
                
                  s
                  ,
                  d
                
                2
              
            
            
              
                
                  
                    α
                    
                      s
                      ,
                      d
                    
                  
                  ⁡
                  
                    (
                    
                      
                        α
                        
                          r
                          ,
                          d
                        
                      
                      ⁢
                      
                        βα
                        
                          s
                          ,
                          r
                        
                      
                    
                    )
                  
                
                *
              
            
          
          
            
              
                
                  α
                  
                    s
                    ,
                    d
                  
                  *
                
                ⁢
                
                  α
                  
                    r
                    ,
                    d
                  
                
                ⁢
                
                  βα
                  
                    s
                    ,
                    r
                  
                
              
            
            
              
                
                  
                  
                    
                      α
                      
                        r
                        ,
                        d
                      
                    
                    ⁢
                    
                      βα
                      
                        s
                        ,
                        r
                      
                    
                  
                  
                
                2
              
            
          
        
        ]
      
    
  




  
    
      
    
    ⁢
    
      
        
          BE
          ⁡
          
            [
            
              zz
              +
            
            ]
          
        
        ⁢
        
          B
          +
        
      
      =
      
        [
        
          
            
              
                N
                d
              
            
            
              0
            
          
          
            
              0
            
            
              
                
                  
                    
                      
                      
                        
                          α
                          
                            r
                            ,
                            d
                          
                        
                        ⁢
                        β
                      
                      
                    
                    2
                  
                  ⁢
                  
                    N
                    r
                  
                
                +
                
                  N
                  d
                
              
            
          
        
        ]
      
    
  




  
    
      
        
          
            det
            ⁡
            
              (
              
                I
                +
                
                  
                    (
                    
                      
                        P
                        s
                      
                      ⁢
                      
                        AA
                        +
                      
                    
                    )
                  
                  ⁢
                  
                    
                      (
                      
                        
                          BE
                          ⁡
                          
                            [
                            
                              zz
                              +
                            
                            ]
                          
                        
                        ⁢
                        
                          B
                          +
                        
                      
                      )
                    
                    
                      -
                      1
                    
                  
                
              
              )
            
          
          =
          
          ⁢
          
            1
            +
            
              
                
                  P
                  s
                
                ⁢
                
                  α
                  
                    s
                    ,
                    d
                  
                  2
                
              
              
                N
                d
              
            
            +
            
              
                
                  P
                  s
                
                ⁢
                
                  
                    
                    
                      
                        α
                        
                          r
                          ,
                          d
                        
                      
                      ⁢
                      
                        βα
                        
                          s
                          ,
                          r
                        
                      
                    
                    
                  
                  2
                
              
              
                (
                
                  
                    
                      
                        
                        
                          
                            α
                            
                              r
                              ,
                              d
                            
                          
                          ⁢
                          β
                        
                        
                      
                      2
                    
                    ⁢
                    
                      N
                      r
                    
                  
                  +
                  
                    N
                    d
                  
                
                )
              
            
          
        
      
    
    
      
        
          =
          
          ⁢
          
            1
            +
            
              SNR
              ⁢
              
                
                  
                  
                    α
                    sd
                  
                  
                
                2
              
            
            +
            
              f
              ⁡
              
                (
                
                  
                    SNR
                    ⁢
                    
                      
                        
                        
                          α
                          sr
                        
                        
                      
                      2
                    
                  
                  ,
                  
                    SNR
                    ⁢
                    
                      
                        
                        
                          α
                          rd
                        
                        
                      
                      2
                    
                  
                
                )
              
            
          
        
      
    
  



where, α is a channel gain, SNR is a signal-to-noise ratio, P is transmit power, N is noise power, β is a relay amplification coefficient, and




  β
  ≤
  
    
      
        
          P
          r
        
        
          
            
              
                
                
                  a
                  sr
                
                
              
              2
            
            ⁢
            
              P
              s
            
          
          +
          
            N
            r
          
        
      
    
    .
  




When a one-hop direct link uses one cooperative node, and the cooperation mode is a decode-and-forward mode, a formula for calculating the diversity gain CjDF from the first master node to the second master node is:




  
    C
    jDF
  
  =
  
    
      W
      2
    
    ⁢
    min
    ⁢
    
      {
      
        
          log
          ⁡
          
            (
            
              1
              +
              
                SNR
                ⁢
                
                  
                    
                    
                      α
                      sr
                    
                    
                  
                  2
                
              
            
            )
          
        
        ,
        
          log
          ⁡
          
            (
            
              1
              +
              
                SNR
                ⁢
                
                  
                    
                    
                      α
                      sd
                    
                    
                  
                  2
                
              
              +
              
                SNR
                ⁢
                
                  
                    
                    
                      α
                      rd
                    
                    
                  
                  2
                
              
            
            )
          
        
      
      }
    
  




When a one-hop direct link uses one cooperative node, and the cooperation mode is a coding-and-forward mode, the diversity gain from the first master node to the second master node equals the diversity gain CjDF in the decode-and-forward mode.
Similarly, when the second master node is used as the source node, and the third master node is used as the destination node, the diversity gain from the second master node to the third master node may be calculated.
When two-hop segmenting is adopted, and there is one cooperative node, a formula for calculating the diversity gain in the amplify-and-forward mode is:




  
    
      C
      jAF
    
    =
    
      
        W
        2
      
      ⁢
      
        log
        (
        
          1
          +
          
            
              
                P
                s
              
              ⁢
              
                
                  
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ⁢
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                    ⁢
                    
                      α
                      
                        sn
                        1
                      
                    
                  
                  
                
                2
              
            
            
              
                
                  
                    
                    
                      
                        α
                        
                          
                            n
                            1
                          
                          ⁢
                          d
                        
                      
                      ⁢
                      
                        β
                        1
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  
                    n
                    1
                  
                
              
              +
              
                N
                d
              
            
          
          +
          
            
              
                P
                s
              
              ⁢
              
                
                  
                  
                    
                      α
                      rd
                    
                    ⁢
                    
                      β
                      2
                    
                    ⁢
                    
                      α
                      sr
                    
                  
                  
                
                2
              
            
            
              
                
                  
                    
                    
                      
                        α
                        rd
                      
                      ⁢
                      
                        β
                        2
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  r
                
              
              +
              
                N
                d
              
            
          
        
        )
      
    
  
  ;




where, a process of using a state equation to solve



  
    
      
    
    ⁢
    
      1
      +
      
        
          
            P
            s
          
          ⁢
          
            
              
              
                
                  α
                  
                    
                      n
                      1
                    
                    ⁢
                    d
                  
                
                ⁢
                
                  β
                  1
                
                ⁢
                
                  α
                  
                    sn
                    1
                  
                
              
              
            
            2
          
        
        
          
            
              
                
                
                  
                    α
                    
                      
                        n
                        1
                      
                      ⁢
                      d
                    
                  
                  ⁢
                  
                    β
                    1
                  
                
                
              
              2
            
            ⁢
            
              N
              
                n
                1
              
            
          
          +
          
            N
            d
          
        
      
      +
      
        
          
            P
            s
          
          ⁢
          
            
              
              
                
                  α
                  rd
                
                ⁢
                
                  β
                  2
                
                ⁢
                
                  α
                  sr
                
              
              
            
            2
          
        
        
          
            
              
                
                
                  
                    α
                    rd
                  
                  ⁢
                  
                    β
                    2
                  
                
                
              
              2
            
            ⁢
            
              N
              r
            
          
          +
          
            N
            d
          
        
      
    
  




  
    
      
    
    ⁢
    
      is
      ⁢
      
        :
      
    
  




  
    
      
        
          [
          
            
              
                
                  
                    y
                    d
                  
                  ⁡
                  
                    [
                    n
                    ]
                  
                
              
            
            
              
                
                  
                    y
                    d
                  
                  ⁡
                  
                    [
                    
                      n
                      +
                      
                        N
                        /
                        4
                      
                    
                    ]
                  
                
              
            
          
          ]
        
        }
      
      
        
          y
          d
        
        ⁡
        
          [
          n
          ]
        
      
    
    =
    
      
        
          
            [
            
              
                
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                    ⁢
                    
                      α
                      
                        s
                        ,
                        
                          n
                          1
                        
                      
                    
                  
                
              
              
                
                  
                    
                      α
                      
                        r
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      2
                    
                    ⁢
                    
                      α
                      
                        s
                        ,
                        r
                      
                    
                  
                
              
            
            ]
          
          
            }
            A
          
        
        ⁢
        
          
            X
            s
          
          ⁡
          
            [
            n
            ]
          
        
      
      +
      
        
          
            [
            
              
                
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                  
                
                
                  0
                
                
                  1
                
                
                  0
                
              
              
                
                  0
                
                
                  
                    
                      α
                      
                        r
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      2
                    
                  
                
                
                  0
                
                
                  1
                
              
            
            ]
          
          
            }
            B
          
        
        ⁢
        
          
            [
            
              
                
                  
                    
                      z
                      
                        n
                        1
                      
                    
                    ⁡
                    
                      [
                      n
                      ]
                    
                  
                
              
              
                
                  
                    
                      z
                      r
                    
                    ⁡
                    
                      [
                      
                        n
                        +
                        
                          N
                          /
                          4
                        
                      
                      ]
                    
                  
                
              
              
                
                  
                    
                      z
                      d
                    
                    ⁡
                    
                      [
                      n
                      ]
                    
                  
                
              
              
                
                  
                    
                      z
                      d
                    
                    ⁡
                    
                      [
                      
                        n
                        +
                        
                          N
                          /
                          4
                        
                      
                      ]
                    
                  
                
              
            
            ]
          
          
            }
            
              z
              ⁡
              
                [
                n
                ]
              
            
          
        
      
    
  




  
    
      
    
    ⁢
    
      
        AA
        +
      
      =
      
        [
        
          
            
              
                
                  
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                    ⁢
                    
                      α
                      
                        s
                        ,
                        
                          n
                          1
                        
                      
                    
                  
                  
                
                2
              
            
            
              
                
                  α
                  
                    
                      n
                      1
                    
                    ,
                    d
                  
                
                ⁢
                
                  β
                  1
                
                ⁢
                
                  
                    
                      α
                      
                        s
                        ,
                        
                          n
                          1
                        
                      
                    
                    ⁡
                    
                      (
                      
                        
                          α
                          
                            r
                            ,
                            d
                          
                        
                        ⁢
                        
                          β
                          2
                        
                        ⁢
                        
                          α
                          
                            s
                            ,
                            r
                          
                        
                      
                      )
                    
                  
                  *
                
              
            
          
          
            
              
                
                  
                    (
                    
                      
                        α
                        
                          
                            n
                            1
                          
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        1
                      
                      ⁢
                      
                        α
                        
                          s
                          ,
                          
                            n
                            1
                          
                        
                      
                    
                    )
                  
                  *
                
                ⁢
                
                  α
                  
                    r
                    ,
                    d
                  
                
                ⁢
                
                  β
                  2
                
                ⁢
                
                  α
                  
                    s
                    ,
                    r
                  
                
              
            
            
              
                
                  
                  
                    
                      α
                      
                        r
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      2
                    
                    ⁢
                    
                      α
                      
                        s
                        ,
                        r
                      
                    
                  
                  
                
                2
              
            
          
        
        ]
      
    
  




  
    
      
    
    ⁢
    
      
        
          BE
          ⁡
          
            [
            
              zz
              +
            
            ]
          
        
        ⁢
        
          B
          +
        
      
      =
      
        [
        
          
            
              
                
                  
                    
                      
                      
                        
                          α
                          
                            
                              n
                              1
                            
                            ,
                            d
                          
                        
                        ⁢
                        
                          β
                          1
                        
                      
                      
                    
                    2
                  
                  ⁢
                  
                    N
                    
                      n
                      1
                    
                  
                
                +
                
                  N
                  d
                
              
            
            
              0
            
          
          
            
              0
            
            
              
                
                  
                    
                      
                      
                        
                          α
                          
                            r
                            ,
                            d
                          
                        
                        ⁢
                        
                          β
                          2
                        
                      
                      
                    
                    2
                  
                  ⁢
                  
                    N
                    r
                  
                
                +
                
                  N
                  d
                
              
            
          
        
        ]
      
    
  




  
    
      det
      ⁡
      
        (
        
          I
          +
          
            
              (
              
                
                  P
                  s
                
                ⁢
                
                  AA
                  +
                
              
              )
            
            ⁢
            
              
                (
                
                  
                    BE
                    ⁡
                    
                      [
                      
                        zz
                        +
                      
                      ]
                    
                  
                  ⁢
                  
                    B
                    +
                  
                
                )
              
              
                -
                1
              
            
          
        
        )
      
    
    =
    
      1
      +
      
        
          
            P
            s
          
          ⁢
          
            
              
              
                
                  α
                  
                    
                      n
                      1
                    
                    ,
                    d
                  
                
                ⁢
                
                  β
                  1
                
                ⁢
                
                  α
                  
                    s
                    ,
                    
                      n
                      1
                    
                  
                
              
              
            
            2
          
        
        
          (
          
            
              
                
                  
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                  
                  
                
                2
              
              ⁢
              
                N
                
                  n
                  1
                
              
            
            +
            
              N
              d
            
          
          )
        
      
      +
      
        
          
            
              P
              s
            
            ⁢
            
              
                
                
                  
                    α
                    
                      r
                      ,
                      d
                    
                  
                  ⁢
                  
                    β
                    2
                  
                  ⁢
                  
                    α
                    
                      s
                      ,
                      r
                    
                  
                
                
              
              2
            
          
          
            (
            
              
                
                  
                    
                    
                      
                        α
                        
                          r
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        2
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  r
                
              
              +
              
                N
                d
              
            
            )
          
        
        .
      
    
  



A formula for calculating the diversity gain CjDF in the decode-and-forward mode is:




  
    C
    jDF
  
  =
  
    
      W
      2
    
    ⁢
    min
    ⁢
    
      
        {
        
          
            log
            ⁡
            
              (
              
                1
                +
                
                  SNR
                  ⁢
                  
                    
                      
                      
                        α
                        
                          sn
                          1
                        
                      
                      
                    
                    2
                  
                
                +
                
                  SNR
                  ⁢
                  
                    
                      
                      
                        α
                        sr
                      
                      
                    
                    2
                  
                
              
              )
            
          
          ,
          
            log
            ⁡
            
              (
              
                1
                +
                
                  SNR
                  ⁢
                  
                    
                      
                      
                        α
                        
                          
                            n
                            1
                          
                          ⁢
                          d
                        
                      
                      
                    
                    2
                  
                
                +
                
                  SNR
                  ⁢
                  
                    
                      
                      
                        α
                        rd
                      
                      
                    
                    2
                  
                
              
              )
            
          
        
        }
      
      .
    
  




When two-hop segmenting is adopted, and there are two cooperative nodes, a formula for calculating the diversity gain in the amplify-and-forward mode is:




  
    
      C
      jAF
    
    =
    
      
        W
        3
      
      ⁢
      
        log
        ⁡
        
          (
          
            1
            +
            
              
                
                  P
                  s
                
                ⁢
                
                  
                    
                    
                      
                        a
                        
                          
                            n
                            1
                          
                          ⁢
                          d
                        
                      
                      ⁢
                      
                        β
                        1
                      
                      ⁢
                      
                        a
                        
                          sn
                          1
                        
                      
                    
                    
                  
                  2
                
              
              
                
                  
                    
                      
                      
                        
                          a
                          
                            
                              n
                              1
                            
                            ⁢
                            d
                          
                        
                        ⁢
                        
                          β
                          1
                        
                      
                      
                    
                    2
                  
                  ⁢
                  
                    N
                    
                      n
                      1
                    
                  
                
                +
                
                  N
                  d
                
              
            
            +
            
              
                
                  P
                  s
                
                ⁢
                
                  
                    
                    
                      
                        a
                        
                          
                            r
                            1
                          
                          ⁢
                          d
                        
                      
                      ⁢
                      
                        β
                        2
                      
                      ⁢
                      
                        a
                        
                          sr
                          1
                        
                      
                    
                    
                  
                  2
                
              
              
                
                  
                    
                      
                      
                        
                          a
                          
                            
                              r
                              1
                            
                            ⁢
                            d
                          
                        
                        ⁢
                        
                          β
                          2
                        
                      
                      
                    
                    2
                  
                  ⁢
                  
                    N
                    
                      r
                      1
                    
                  
                
                +
                
                  N
                  d
                
              
            
            +
            
              
                
                  P
                  s
                
                ⁢
                
                  
                    
                    
                      
                        a
                        
                          
                            r
                            2
                          
                          ⁢
                          d
                        
                      
                      ⁢
                      
                        β
                        3
                      
                      ⁢
                      
                        a
                        
                          sr
                          2
                        
                      
                    
                    
                  
                  2
                
              
              
                
                  
                    
                      
                      
                        
                          a
                          
                            
                              r
                              2
                            
                            ⁢
                            d
                          
                        
                        ⁢
                        
                          β
                          3
                        
                      
                      
                    
                    2
                  
                  ⁢
                  
                    N
                    
                      r
                      2
                    
                  
                
                +
                
                  N
                  d
                
              
            
          
          )
        
      
    
  
  ;




where, a process of using a state equation to solve



  
    1
    +
    
      
        
          P
          s
        
        ⁢
        
          
            
            
              
                α
                
                  
                    n
                    1
                  
                  ⁢
                  d
                
              
              ⁢
              
                β
                1
              
              ⁢
              
                α
                
                  sn
                  1
                
              
            
            
          
          2
        
      
      
        
          
            
              
              
                
                  α
                  
                    
                      n
                      1
                    
                    ⁢
                    d
                  
                
                ⁢
                
                  β
                  1
                
              
              
            
            2
          
          ⁢
          
            N
            
              n
              1
            
          
        
        +
        
          N
          d
        
      
    
    +
    
      
        
          P
          s
        
        ⁢
        
          
            
            
              
                α
                
                  
                    r
                    1
                  
                  ⁢
                  d
                
              
              ⁢
              
                β
                2
              
              ⁢
              
                α
                
                  sr
                  1
                
              
            
            
          
          2
        
      
      
        
          
            
              
              
                
                  α
                  
                    
                      r
                      1
                    
                    ⁢
                    d
                  
                
                ⁢
                
                  β
                  2
                
              
              
            
            2
          
          ⁢
          
            N
            
              r
              1
            
          
        
        +
        
          N
          d
        
      
    
    +
    
      
        
          P
          s
        
        ⁢
        
          
            
            
              
                α
                
                  
                    r
                    2
                  
                  ⁢
                  d
                
              
              ⁢
              
                β
                3
              
              ⁢
              
                α
                sr
              
            
            
          
          2
        
      
      
        
          
            
              
              
                
                  α
                  
                    
                      r
                      2
                    
                    ⁢
                    d
                  
                
                ⁢
                
                  β
                  3
                
              
              
            
            2
          
          ⁢
          
            N
            
              r
              2
            
          
        
        +
        
          N
          d
        
      
    
  




  
    is
    ⁢
    
      :
    
  




  
    
      
        [
        
          
            
              
                
                  y
                  d
                
                ⁡
                
                  [
                  n
                  ]
                
              
            
          
          
            
              
                
                  y
                  d
                
                ⁡
                
                  [
                  
                    n
                    +
                    
                      N
                      /
                      6
                    
                  
                  ]
                
              
            
          
          
            
              
                
                  y
                  d
                
                ⁡
                
                  [
                  
                    n
                    +
                    
                      N
                      /
                      3
                    
                  
                  ]
                
              
            
          
        
        ]
      
      
        }
        
          
            y
            d
          
          ⁡
          
            [
            n
            ]
          
        
      
    
    =
    
      
        
          
            [
            
              
                
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                    ⁢
                    
                      α
                      
                        s
                        ,
                        
                          n
                          1
                        
                      
                    
                  
                
              
              
                
                  
                    
                      α
                      
                        
                          r
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      2
                    
                    ⁢
                    
                      α
                      
                        s
                        ,
                        
                          r
                          1
                        
                      
                    
                  
                
              
              
                
                  
                    
                      α
                      
                        
                          r
                          2
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      3
                    
                    ⁢
                    
                      α
                      
                        s
                        ,
                        
                          r
                          2
                        
                      
                    
                  
                
              
            
            ]
          
          
            }
            A
          
        
        ⁢
        
          
            X
            s
          
          ⁡
          
            [
            n
            ]
          
        
      
      +
      
        
          
            [
            
              
                
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                  
                
                
                  0
                
                
                  0
                
                
                  1
                
                
                  0
                
                
                  0
                
              
              
                
                  0
                
                
                  
                    
                      α
                      
                        
                          r
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      2
                    
                  
                
                
                  0
                
                
                  0
                
                
                  1
                
                
                  0
                
              
              
                
                  0
                
                
                  0
                
                
                  
                    
                      α
                      
                        
                          r
                          2
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      3
                    
                  
                
                
                  0
                
                
                  0
                
                
                  1
                
              
            
            ]
          
          
            }
            B
          
        
        ⁢
        
          
            [
            
              
                
                  
                    
                      z
                      
                        n
                        1
                      
                    
                    ⁡
                    
                      [
                      n
                      ]
                    
                  
                
              
              
                
                  
                    
                      z
                      
                        r
                        1
                      
                    
                    ⁡
                    
                      [
                      
                        n
                        +
                        
                          N
                          /
                          6
                        
                      
                      ]
                    
                  
                
              
              
                
                  
                    
                      z
                      
                        r
                        2
                      
                    
                    ⁡
                    
                      [
                      
                        n
                        +
                        
                          N
                          /
                          3
                        
                      
                      ]
                    
                  
                
              
              
                
                  
                    
                      z
                      d
                    
                    ⁡
                    
                      [
                      n
                      ]
                    
                  
                
              
              
                
                  
                    
                      z
                      d
                    
                    ⁡
                    
                      [
                      
                        n
                        +
                        
                          N
                          /
                          6
                        
                      
                      ]
                    
                  
                
              
              
                
                  
                    
                      z
                      d
                    
                    ⁡
                    
                      [
                      
                        n
                        +
                        
                          N
                          /
                          3
                        
                      
                      ]
                    
                  
                
              
            
            ]
          
          
            }
            
              z
              ⁡
              
                [
                n
                ]
              
            
          
        
      
    
  




  
    
      AA
      +
    
    =
    
      [
      
        
          
            
              
                
                
                  
                    α
                    
                      
                        n
                        1
                      
                      ,
                      d
                    
                  
                  ⁢
                  
                    β
                    1
                  
                  ⁢
                  
                    α
                    
                      s
                      ,
                      
                        n
                        1
                      
                    
                  
                
                
              
              2
            
          
          
            
              
                α
                
                  
                    n
                    1
                  
                  ,
                  d
                
              
              ⁢
              
                β
                1
              
              ⁢
              
                
                  
                    α
                    
                      s
                      ,
                      
                        n
                        1
                      
                    
                  
                  ⁡
                  
                    (
                    
                      
                        α
                        
                          
                            r
                            1
                          
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        2
                      
                      ⁢
                      
                        α
                        
                          s
                          ,
                          
                            r
                            1
                          
                        
                      
                    
                    )
                  
                
                *
              
            
          
          
            
              
                α
                
                  
                    n
                    1
                  
                  ,
                  d
                
              
              ⁢
              
                β
                1
              
              ⁢
              
                
                  
                    α
                    
                      s
                      ,
                      
                        n
                        1
                      
                    
                  
                  ⁡
                  
                    (
                    
                      
                        α
                        
                          
                            r
                            2
                          
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        3
                      
                      ⁢
                      
                        α
                        
                          s
                          ,
                          
                            r
                            2
                          
                        
                      
                    
                    )
                  
                
                *
              
            
          
        
        
          
            
              
                
                  (
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                    ⁢
                    
                      α
                      
                        s
                        ,
                        
                          n
                          1
                        
                      
                    
                  
                  )
                
                *
              
              ⁢
              
                α
                
                  
                    r
                    1
                  
                  ,
                  d
                
              
              ⁢
              
                β
                2
              
              ⁢
              
                α
                
                  s
                  ,
                  
                    r
                    1
                  
                
              
            
          
          
            
              
                
                
                  
                    α
                    
                      
                        r
                        1
                      
                      ,
                      d
                    
                  
                  ⁢
                  
                    β
                    2
                  
                  ⁢
                  
                    α
                    
                      s
                      ,
                      
                        r
                        1
                      
                    
                  
                
                
              
              2
            
          
          
            
              
                α
                
                  
                    r
                    1
                  
                  ,
                  d
                
              
              ⁢
              
                β
                2
              
              ⁢
              
                
                  
                    α
                    
                      s
                      ,
                      
                        r
                        1
                      
                    
                  
                  ⁡
                  
                    (
                    
                      
                        α
                        
                          
                            r
                            2
                          
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        3
                      
                      ⁢
                      
                        α
                        
                          s
                          ,
                          
                            r
                            2
                          
                        
                      
                    
                    )
                  
                
                *
              
            
          
        
        
          
            
              
                
                  (
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                    ⁢
                    
                      α
                      
                        s
                        ,
                        
                          n
                          1
                        
                      
                    
                  
                  )
                
                *
              
              ⁢
              
                α
                
                  
                    r
                    2
                  
                  ,
                  d
                
              
              ⁢
              
                β
                3
              
              ⁢
              
                α
                
                  s
                  ,
                  
                    r
                    2
                  
                
              
            
          
          
            
              
                
                  (
                  
                    
                      α
                      
                        
                          r
                          1
                        
                        ,
                        d
                      
                    
                    ⁢
                    
                      β
                      2
                    
                    ⁢
                    
                      α
                      
                        s
                        ,
                        
                          r
                          1
                        
                      
                    
                  
                  )
                
                *
              
              ⁢
              
                α
                
                  
                    r
                    2
                  
                  ,
                  d
                
              
              ⁢
              
                β
                3
              
              ⁢
              
                α
                
                  s
                  ,
                  
                    r
                    2
                  
                
              
            
          
          
            
              
                
                
                  
                    α
                    
                      
                        r
                        2
                      
                      ,
                      d
                    
                  
                  ⁢
                  
                    β
                    3
                  
                  ⁢
                  
                    α
                    
                      s
                      ,
                      
                        r
                        2
                      
                    
                  
                
                
              
              2
            
          
        
      
      ]
    
  




  
    
      
        BE
        ⁡
        
          [
          
            zz
            +
          
          ]
        
      
      ⁢
      
        B
        +
      
    
    =
    
      [
      
        
          
            
              
                
                  
                    
                    
                      
                        α
                        
                          
                            n
                            1
                          
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        1
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  
                    n
                    1
                  
                
              
              +
              
                N
                d
              
            
          
          
            0
          
          
            0
          
        
        
          
            0
          
          
            
              
                
                  
                    
                    
                      
                        α
                        
                          
                            r
                            1
                          
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        2
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  
                    r
                    1
                  
                
              
              +
              
                N
                d
              
            
          
          
            0
          
        
        
          
            0
          
          
            0
          
          
            
              
                
                  
                    
                    
                      
                        α
                        
                          
                            r
                            2
                          
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        3
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  
                    r
                    2
                  
                
              
              +
              
                N
                d
              
            
          
        
      
      ]
    
  




  
    
      
        det
        ⁡
        
          (
          
            I
            +
            
              
                (
                
                  
                    P
                    s
                  
                  ⁢
                  
                    AA
                    +
                  
                
                )
              
              ⁢
              
                
                  (
                  
                    
                      BE
                      ⁡
                      
                        [
                        
                          zz
                          +
                        
                        ]
                      
                    
                    ⁢
                    
                      B
                      +
                    
                  
                  )
                
                
                  -
                  1
                
              
            
          
          )
        
      
      =
      
        1
        +
        
          
            
              P
              s
            
            ⁢
            
              
                
                
                  
                    α
                    
                      
                        n
                        1
                      
                      ,
                      d
                    
                  
                  ⁢
                  
                    β
                    1
                  
                  ⁢
                  
                    α
                    
                      s
                      ,
                      
                        n
                        1
                      
                    
                  
                
                
              
              2
            
          
          
            (
            
              
                
                  
                    
                    
                      
                        α
                        
                          
                            n
                            1
                          
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        1
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  
                    n
                    1
                  
                
              
              +
              
                N
                d
              
            
            )
          
        
        +
        
          
            
              P
              s
            
            ⁢
            
              
                
                
                  
                    α
                    
                      
                        r
                        1
                      
                      ,
                      d
                    
                  
                  ⁢
                  
                    β
                    2
                  
                  ⁢
                  
                    α
                    
                      s
                      ,
                      
                        r
                        1
                      
                    
                  
                
                
              
              2
            
          
          
            (
            
              
                
                  
                    
                    
                      
                        α
                        
                          
                            r
                            1
                          
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        2
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  
                    r
                    1
                  
                
              
              +
              
                N
                d
              
            
            )
          
        
        +
        
          
            
              P
              s
            
            ⁢
            
              
                
                
                  
                    α
                    
                      
                        r
                        2
                      
                      ,
                      d
                    
                  
                  ⁢
                  
                    β
                    3
                  
                  ⁢
                  
                    α
                    
                      s
                      ,
                      
                        r
                        2
                      
                    
                  
                
                
              
              2
            
          
          
            (
            
              
                
                  
                    
                    
                      
                        α
                        
                          
                            r
                            2
                          
                          ,
                          d
                        
                      
                      ⁢
                      
                        β
                        3
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  
                    r
                    2
                  
                
              
              +
              
                N
                d
              
            
            )
          
        
      
    
    ;
  



A formula for calculating the diversity gain CjDF in the decode-and-forward mode is:




  
    C
    jDF
  
  =
  
    
      W
      3
    
    ⁢
    min
    ⁢
    
      
        {
        
          
            log
            ⁡
            
              (
              
                1
                +
                
                  SNR
                  ⁢
                  
                    
                      
                      
                        α
                        
                          sn
                          1
                        
                      
                      
                    
                    2
                  
                
                +
                
                  SNR
                  ⁢
                  
                    
                      
                      
                        α
                        
                          sr
                          1
                        
                      
                      
                    
                    2
                  
                
                +
                
                  SNR
                  ⁢
                  
                    
                      
                      
                        α
                        
                          sr
                          2
                        
                      
                      
                    
                    2
                  
                
              
              )
            
          
          ,
          
            log
            ⁡
            
              (
              
                1
                +
                
                  SNR
                  ⁢
                  
                    
                      
                      
                        α
                        
                          
                            n
                            1
                          
                          ⁢
                          d
                        
                      
                      
                    
                    2
                  
                
                +
                
                  SNR
                  ⁢
                  
                    
                      
                      
                        α
                        
                          
                            r
                            1
                          
                          ⁢
                          d
                        
                      
                      
                    
                    2
                  
                
                +
                
                  SNR
                  ⁢
                  
                    
                      
                      
                        α
                        
                          
                            r
                            2
                          
                          ⁢
                          d
                        
                      
                      
                    
                    2
                  
                
              
              )
            
          
        
        }
      
      .
    
  




The interrupt probability between the first master node and the second master node is calculated in the same way as that of the interrupt probability of a one-hop direct link in the prior art. When the first master node is used as the source node, and the second master node is used as the destination node, a formula for calculating the interrupt probability pjD in the non-cooperation mode is:




  
    
      
        
          
            p
            jD
          
          ⁡
          
            (
            
              SNR
              ,
              R
            
            )
          
        
        =
        
        ⁢
        
          Pr
          ⁡
          
            [
            
              
                C
                jD
              
              <
              
                2
                ⁢
                r
              
            
            ]
          
        
      
    
  
  
    
      
        =
        
        ⁢
        
          Pr
          [
          
            
              
                
                
                  α
                  sd
                
                
              
              2
            
            <
            
              
                
                  2
                  R
                
                -
                1
              
              SNR
            
          
          ]
        
      
    
  
  
    
      
        
          =
          
          ⁢
          
            1
            -
            
              
                
                  exp
                  (
                  
                    -
                    
                      
                        
                          2
                          R
                        
                        -
                        1
                      
                      
                        SNR
                        ⁢
                        
                          
                        
                        ⁢
                        
                          σ
                          sd
                          2
                        
                      
                    
                  
                  )
                
                ~
                
                  1
                  
                    σ
                    sd
                    2
                  
                
              
              ·
              
                
                  
                    2
                    R
                  
                  -
                  1
                
                SNR
              
            
          
        
        ;
      
    
  




This formula is used to describe an attenuation rate at a certain signal-to-noise ratio and transmission rate under the Rayleigh fading channel, where R=2r/W b/s/Hz.
When there is one cooperative node between the first master node and the second master node, the interrupt probability in the amplify-and-forward mode equals the interrupt probability in the decode-and-forward mode. The calculation formula is:




  
    
      
        
          p
          
            jAF
            /
            DF
          
        
        =
        
        ⁢
        
          
            (
            
              
                -
                
                  (
                  
                    1
                    -
                    
                      p
                      sr
                    
                  
                  )
                
              
              ⁢
              
                (
                
                  1
                  -
                  
                    p
                    rd
                  
                
                )
              
            
            )
          
          ⁢
          
            p
            sd
          
        
      
    
  
  
    
      
        
          =
          
          ⁢
          
            
              [
              
                1
                -
                
                  exp
                  (
                  
                    
                      -
                      
                        
                          
                            2
                            
                              R
                              sr
                            
                          
                          -
                          1
                        
                        
                          SNR
                          ⁢
                          
                            
                          
                          ⁢
                          
                            σ
                            sr
                            2
                          
                        
                      
                    
                    -
                    
                      
                        
                          2
                          
                            R
                            rd
                          
                        
                        -
                        1
                      
                      
                        SNR
                        ⁢
                        
                          
                        
                        ⁢
                        
                          σ
                          rd
                          2
                        
                      
                    
                  
                  )
                
              
              ]
            
            [
            
              1
              -
              
                exp
                (
                
                  -
                  
                    
                      
                        2
                        
                          R
                          sd
                        
                      
                      -
                      1
                    
                    
                      SNR
                      ⁢
                      
                        
                      
                      ⁢
                      
                        σ
                        sd
                        2
                      
                    
                  
                
                )
              
            
            ]
          
        
        ;
      
    
  




where, and Rsr=2rsr/W, Rrd=2rrd/W, and Rsd=2rsd/W, where rsr, rrd, and rsd respectively represent data rates required to be sent between the source node and the cooperative node, between the cooperative node and the destination node, and between the source node and the destination node.
For the amplify-and-forward mode and the coding-and-forward mode, signal-to-noise ratios and sending rates of a direct channel and a forward channel are independent. In the calculation of the interrupt probability, the forward channel may be considered as a set of direct channels.
Similarly, when the second master node is used as the source node, and the third master node is used as the destination node, the interrupt probability from the second master node to the third master node may be calculated.
The interrupt probability of two-hop segmenting is obtained from the interrupt probability between the first master node and the second master node and the interrupt probability between the second master node and the third master node. For details the following description about FIG. 4.
Before the cooperative node is selected, the signal-to-noise ratio of the channel should be obtained first. It can be obtained from the foregoing formulas that, the higher the signal-to-noise ratio, the higher the diversity gain. According to the Shannon formula, a channel of a higher signal-to-noise ratio has a higher throughput under a given bandwidth. For the impact on the interrupt probability, the higher the signal-to-noise ratio, the smaller the probability of falling on an average value. That is, the distribution of the interrupt probability is more even. At the same time, a sending rate of the channel also has effects on the performance of cooperation. The impact of these factors on the transmission performance needs to be considered comprehensively as a criterion for assessing whether the node can be used as a cooperative node.
The embodiment of the present invention stresses determining the segmenting manner and the cooperative node, that is, determining the segmenting mode. The segmenting mode refers to a unit that is formed by the three master nodes of two adjacent hops in the route and an adopted cooperative node. When it is determined that the two adjacent hops in the route are one-hop segmenting or two-hop segmenting, and the cooperative node is determined, the segmenting mode is determined.
The process of determining the segmenting mode is a process of analyzing impacts of a communication path and the number of hops on the performance of the communication process. It is found that the increase of paths and the decrease of the number of hops both have good effects on the performance of the communication process, but when the paths are increased, the number of hops is increased definitely at the same time, which is not good for the improvement of the performance of the communication process. Therefore, the process of determining the segmenting mode is a process of finding a best balance between the paths and the number of hops, where a multi-hop route is divided into several segments (segment), the number of hops of which is two hops at most, and the segments are used as smallest units of the multi-hop route. Each segment adopts a cooperative communication technology, and an interrupt probability and a path diversity gain from the source node to the destination node are optimized through the use of cooperative paths, that is, the increase of the diversity gain and the decrease of the interrupt probability in the communication process are achieved.
As shown in FIG. 3, an established route S→N1→N2→N3→N4→N5→D is divided to four segments, where a segmenting mode of each segment is different. For example, a mode 1 is a segmenting mode of one-hop segmenting with one cooperative node; a mode 2 is a segmenting mode of two-hop segmenting with one cooperative node; a mode 3 is a segmenting mode of two-hop segmenting with two cooperative nodes; and a mode 4 is a segmenting mode of one-hop segmenting with two cooperative nodes. The numbered nodes in FIG. 3, namely nodes S, N1, N2, N3, N4, N5 and D, are directly communicating nodes in the route, and unnumbered nodes, namely shadowed small circles in FIG. 3, are cooperative nodes.
After the route is set up, there is a set of segmenting modes S={S1, S2, . . . , Sm} for the entire route, where each Si represents a segmenting mode.
A target function is a segmenting beneficial effect function of the segmenting mode. A larger function value indicates that the segmenting mode is more beneficial for performance improvement of a communication process.
For a certain selected segmenting mode Si, a formula for calculating the target function FSi is:




  
    
      F
      
        S
        i
      
    
    =
    
      
        γ
        
          p
          
            s
            i
          
        
      
      +
      
        
          (
          
            1
            -
            γ
          
          )
        
        ⁢
        
          C
          
            s
            i
          
        
      
    
  
  ,




where, Csi is an end-to-end diversity gain corresponding to the segmenting mode Si, psi is an end-to-end interrupt probability corresponding to the segmenting mode Si, and γ is a weighting factor.
A formula for calculating the interrupt probability psi is:




  
    p
    
      s
      i
    
  
  =
  
    1
    -
    
      
        ∏
        
          j
          =
          1
        
        x
      
      ⁢
      
        (
        
          1
          -
          
            p
            j
          
        
        )
      
    
  




where, pj is an interrupt probability of a jth one-hop link.
A formula for calculating the diversity gain, namely the diversity gain Csi is:




  
    C
    
      s
      i
    
  
  =
  
    
      min
      
        j
        =
        1
      
      x
    
    ⁢
    
      {
      
        C
        j
      
      }
    
  




where, Cj is the diversity gain of the jth segment, x is the number of segments of Si, and the corresponding Csi is the minimum diversity gain of all segments in the entire path, which is also the minimum diversity gain of the link.
For the best segmenting mode S*,




  
    F
    *
  
  =
  
    
      
        max
        
          {
          i
          }
        
      
      ⁢
      
        {
        
          F
          
            s
            i
          
        
        }
      
    
    =
    
      
        max
        
          {
          i
          }
        
      
      ⁢
      
        {
        
          
            γ
            
              p
              
                s
                i
              
            
          
          +
          
            
              (
              
                1
                -
                γ
              
              )
            
            ⁢
            
              C
              
                s
                i
              
            
          
        
        }
      
    
  




where, F* is the maximum target function, which means when the maximum target function F* is obtained, the best segmenting mode S* is obtained.
When the established route is short, a direct method for determining the best segmenting mode of the route is to calculate target functions of all possible segmenting modes by using an enumeration method, and find the best segmenting mode by comparing the target functions.
As shown in FIG. 4, when it is determined that a route is A→B→C, and the maximum segment length is two hops, there are 6 possible segmenting modes in this example.
A first segmenting mode S1: no cooperation.
A second segmenting mode S2: one-hop segmenting, where AB uses no cooperation, and BC uses one cooperative node.
In the example, the one cooperative node may be a node Y or a node X. A cooperative node that enables a target function to be maximum is selected as a final cooperative node.
A third segmenting mode S3: one-hop segmenting, where AB uses one cooperative node, and BC uses no cooperation.
In the example, the one cooperative node may be a node Y or a node X. A cooperative node that enables a target function to be maximum is selected as a final cooperative node.
A fourth segmenting mode S4: one-hop segmenting, where AB uses one cooperative node, and BC uses one cooperative node.
In the example, the one cooperative node may be a node Y or a node X. A cooperative node that enables a target function to be maximum is selected as a final cooperative node.
A fifth segmenting mode S5: two-hop segmenting, where AC uses one cooperative node.
In the example, the one cooperative node may be a node Y or a node X. A cooperative node that enables a target function to be maximum is selected as a final cooperative node.
A sixth segmenting mode S6: two-hop segmenting, where AC uses two cooperative nodes.
In the example, the two cooperative nodes are a node X and a node Y.
For the first segmenting mode S1, an end-to-end diversity gain, an interrupt probability, and a target function are calculated respectively as follows:




  
    
      C
      
        S
        1
      
    
    =
    
      min
      ⁢
      
        {
        
          
            C
            AB
          
          ,
          
            C
            BC
          
        
        }
      
    
  
  ,
  
    

  
  ⁢
  
    
      p
      
        S
        1
      
    
    =
    
      1
      -
      
        
          (
          
            1
            -
            
              p
              AB
            
          
          )
        
        ⁢
        
          (
          
            1
            -
            
              p
              BC
            
          
          )
        
      
    
  
  ,
  
    

  
  ⁢
  
    
      
        F
        
          S
          1
        
      
      =
      
        
          γ
          
            p
            
              S
              1
            
          
        
        +
        
          
            (
            
              1
              -
              γ
            
            )
          
          ⁢
          
            C
            
              S
              1
            
          
        
      
    
    ;
  




where, CAB and CBC are obtained by using the calculation formula for the capacity in the one-hop direct link and no cooperation mode. PAB and PBC are obtained by using the calculation formula for the interrupt probability in the one-hop link and no cooperation mode.
For the second segmenting mode S2 a formula for calculating the target function is




  
    F
    
      S
      2
    
  
  =
  
    
      γ
      
        p
        
          S
          2
        
      
    
    +
    
      
        (
        
          1
          -
          γ
        
        )
      
      ⁢
      
        
          C
          
            S
            2
          
        
        .
      
    
  




When the cooperative node X is adopted for cooperative communication, an end-to-end diversity gain and an interrupt probability are respectively calculated as follows:

CS2=min{CAB,CBXC},pS2=1−(1−pAB)×{1−[1−(1−pBX)(1−pXC)]×pBC}.

When the cooperative node Y is adopted for cooperative communication, an end-to-end diversity gain and an interrupt probability are respectively calculated as follows:

CS2=min{CAB,CBYC},pS2=1−(1−pAB)×{1−[1−(1−pBY)(1−pYC)]×pBC};

where, CBXC and CBYC are obtained by using the calculation formula for the diversity gain in the foregoing one-hop direct link where one cooperative node is used, and pBC is obtained by using the calculation formula for the interrupt probability in the foregoing one-hop direct link where one cooperative node is used.
For the third segmenting mode S3, a formula for calculating the target function is:




  
    F
    
      S
      3
    
  
  =
  
    
      γ
      
        p
        
          S
          3
        
      
    
    +
    
      
        (
        
          1
          -
          γ
        
        )
      
      ⁢
      
        
          C
          
            S
            3
          
        
        .
      
    
  




When the cooperative node X is adopted for cooperative communication, an end-to-end diversity gain and an interrupt probability are respectively calculated as follows:

CS3=min{CAXB,CBC},pS3=1−{1−[1−(1−pAX)(1−pXB)]×pAB}×(1−pBC).

When the cooperative node Y is adopted for cooperative communication, an end-to-end diversity gain and an interrupt probability are respectively calculated as follows:

CS3=min{CAYB,CBC},pS3=1−{1−[1−(1−pAY)(1−pYB)]×pAB}×(1−pBC);

where, CAXB and CAYB are obtained by using the calculation formula for the diversity gain in the foregoing one-hop direct link where one cooperative node is used, and pAB is obtained by using the calculation formula for the interrupt probability in the foregoing one-hop direct link where one cooperative node is used.
For the fourth segmenting mode S4, a formula for calculating the target function is:




  
    F
    
      S
      4
    
  
  =
  
    
      γ
      
        p
        
          S
          4
        
      
    
    +
    
      
        (
        
          1
          -
          γ
        
        )
      
      ⁢
      
        
          C
          
            S
            4
          
        
        .
      
    
  




When the cooperative node X is adopted for cooperative communication, an end-to-end diversity gain and an interrupt probability are respectively calculated as follows:

CS4=min{CAXB,CBXC},pS4=1−{1−[1−(1−pAX)(1−pXB)]×pAB}×{1−[1−(1−pBX)(1−pXC)]×pBC}.

When the cooperative node Y is adopted for cooperative communication, an end-to-end diversity gain and an interrupt probability are respectively calculated as follows:

CS4=min{CAYB,CBYC},pS4=1−{1−[1−(1−pAY)(1−pYB)]×pAB}×{1−[1−(1−pBY)(1−pYC)]×pBC}.

where, CAXB, CAYB, CBXC, and CBYC are obtained by using the calculation formula for the diversity gain in the foregoing one-hop direct link where one cooperative node is used, and pAB and pBC are obtained by using the calculation formula for the interrupt probability in the foregoing one-hop direct link where one cooperative node is used.
For the fifth segmenting mode S5, a formula for calculating the target function is:




  
    F
    
      S
      5
    
  
  =
  
    
      γ
      
        p
        
          S
          5
        
      
    
    +
    
      
        (
        
          1
          -
          γ
        
        )
      
      ⁢
      
        
          C
          
            S
            5
          
        
        .
      
    
  




When the cooperative node X is adopted for cooperative communication, an end-to-end diversity gain and an interrupt probability are respectively calculated as follows:

CS5=CABXC,pS5=1−[1−(1−pAX)(1−pXC)][1−(1−pAB)(1−pBC)].

When the cooperative node Y is adopted for cooperative communication, an end-to-end diversity gain and an interrupt probability are respectively calculated as follows:

CS5=CABYC,pS5=1−[1−(1−pAY)(1−pYC)][1−(1−pAB)(1−pBC)];

where, CABXC and CABYC are obtained by using the calculation formula for the diversity gain in the foregoing two-hop segmenting mode where one cooperative node is used, and pAB and pBC are obtained by using the calculation formula for the interrupt probability in the foregoing two-hop segmenting mode where one cooperative node is used.
For the sixth segmenting mode S6, an end-to-end diversity gain, an interrupt probability, and a target function are calculated respectively as follows:




  
    
  
  ⁢
  
    
      
        C
        
          S
          6
        
      
      =
      
        C
        ABXYC
      
    
    ,
    
      

    
    ⁢
    
      
        p
        
          S
          6
        
      
      =
      
        1
        -
        
          
            
              [
              
                1
                -
                
                  
                    (
                    
                      1
                      -
                      
                        p
                        AX
                      
                    
                    )
                  
                  ⁢
                  
                    (
                    
                      1
                      -
                      
                        p
                        XC
                      
                    
                    )
                  
                
              
              ]
            
            ⁡
            
              [
              
                1
                -
                
                  
                    (
                    
                      1
                      -
                      
                        p
                        AB
                      
                    
                    )
                  
                  ⁢
                  
                    (
                    
                      1
                      -
                      
                        p
                        BC
                      
                    
                    )
                  
                
              
              ]
            
          
          ⁡
          
            [
            
              1
              -
              
                
                  (
                  
                    1
                    -
                    
                      p
                      AY
                    
                  
                  )
                
                ⁢
                
                  (
                  
                    1
                    -
                    
                      p
                      YC
                    
                  
                  )
                
              
            
            ]
          
        
      
    
    ,
    
      

    
    ⁢
    
      
    
    ⁢
    
      
        F
        
          S
          6
        
      
      =
      
        
          γ
          
            p
            
              S
              6
            
          
        
        +
        
          
            (
            
              1
              -
              γ
            
            )
          
          ⁢
          
            
              C
              
                S
                6
              
            
            .
          
        
      
    
  




where, CABXYC is obtained by using the calculation formula for the diversity gain in the foregoing two-hop segmenting mode where two cooperative nodes are used, and pAB and pBC are obtained by using the calculation formula for the interrupt probability in the foregoing two-hop segmenting mode where one cooperative node is used.
The maximum target function is found by comparing target functions in all the segmenting modes and between the segmenting modes. The segmenting mode and the cooperative node that correspond to the maximum target function are the best segmenting mode and cooperative node. Assuming that the maximum target function is obtained in the third segmenting mode where the cooperative node X is used, the third segmenting mode is the best segmenting mode, and the cooperative node X is the best cooperative node.
Then a source node A uses the best segmenting mode and the best cooperative node to send packet data to a destination node C. Thus, through cooperative multi-hop routing, the best performance of the communication process is achieved.
It may be known from the foregoing example that, implementation of the method is simple, the method is easier to implement when a network scale is small and a route is short, and the best performance in the entire network can be achieved.
When the network scale increases and the end-to-end path is longer, the number of segmenting modes grows exponentially, and the complexity of calculation also grows quickly. Therefore, a heuristic method is further provided here.
A basic idea of the heuristic method is as follows: The best segmenting mode and the best cooperative node are determined section by section from a source node to a destination node with the constraint of two hops at most, namely, starting from the source node and taking two adjacent hops in the route as one section. Assuming that a source node is N1, a destination node is Nm, and a route from the source node to the destination node is P={N1, N2, N3, . . . , Nm}, the heuristic method from the source node to the destination node is as shown in FIG. 5. B, E, and k are variables, where E=k+1, and k is a natural number with an initial value 1. NB is used to represent a starting node of each section of route, NE+1 is used to represent an ending node of each section of route, and NE is used to represent a middle master node of each section of route. A process for determining the best segmenting mode and the best cooperative node of each section of route includes:
Step 51: Find a common neighbor node of NB and NE, calculate a diversity gain, an interrupt probability, and a target function from NB to NE under the cooperation of each common neighbor node.
Calculate capacity, an interrupt probability, and a target function from NB to NE when there is no cooperation.
Compare all target functions, and use the maximum target function as the target function FNBNE from NB to NE.
Similarly, obtain the target function FNENE+1 from NE to NE+1 through calculation.
Find a common neighbor node of NB and NE+1, calculate a diversity gain, an interrupt probability, and a target function from NB to NE+1 under the cooperation of each common neighbor node.
Calculate capacity, an interrupt probability, and a target function from NB to NE+1 when there is no cooperation.
Compare all target functions from NB to NE+1, and use the maximum target function as the target function FNBNE+1 from NB to NE+1.
A first section of route is taken as an example. N1 is a starting node of a first segment, and N2 is an ending node of the first segment; a cooperative node is searched according to neighbor nodes of N1 and N2, and the diversity gain CN1N2, interrupt probability pN1N2, and target function FN1N2 of the segment are calculated. N2 is a starting node of a second segment, and N3 is an ending node of the second segment; a cooperative node is searched according to neighbor nodes of N2 and N3, and the diversity gain CN2N3, interrupt probability pN2N3, and target function FN2N3 of the segment are calculated.
N1 is the starting node of the first segment, and N3 is the ending node of the first segment; a cooperative node is searched according to neighbor nodes of N1 and N3, and the diversity gain CN1N3, interrupt probability pN1N3, and target function FN1N3 of the segment are calculated.
Step 52: Compare and min{FNBNE,FNENE+1} and FNBNE+1, and if min{FNBNE,FNENE+1} is greater than FNBNE+1, execute step 53; otherwise, execute step 54.
Step 53: Determine the section of route as one-hop segmenting, and record a corresponding cooperative node, so that subsequently, a source node can use one-hop segmenting and the recorded cooperative node to transmit packet data in the section of route. Then, execute step 55.
A segmenting mode of one-hop segmenting may be the foregoing first segmenting mode S1 to the fourth segmenting mode S4. That is, when there is no cooperation from NB to NE+1, the segmenting mode of the section of route is S1; when there is no cooperation from NB to NE, and one cooperative node is used from NE to NE+1, the segmenting mode of the section of route is S2; when one cooperative node is used from NB to NE, and there is no cooperation from NE to NE+1, the segmenting mode of the section of route is S3; when one cooperative node is used from NB to NE, and one cooperative node is used from NE to NE+1, the segmenting mode of the section of route is S4.
When the segmenting mode is S2, the recorded cooperative node is a cooperative node corresponding to the target function FNENE+1 from NE to NE+1.
When the segmenting mode is S3, the recorded cooperative node is a cooperative node corresponding to the target function FNBNE from NB to NE.
When the segmenting mode is S4, the recorded cooperative nodes include a cooperative node corresponding to the target function FNBNE from NB to NE, and a cooperative node corresponding to the target function FNENE+1 from NE to NE+1.
Step 54: Determine that the section of route adopts two-hop segmenting, and record a corresponding cooperative node.
A segmenting mode corresponding to the two-hop segmenting may be the foregoing fifth segmenting mode S5 and sixth segmenting mode S6. When NB and NE+1 use one cooperative node, the segmenting mode of the section of route is Ss; when NB and NE+1 use two cooperative nodes, the segmenting mode of the section of route is S6.
The recorded cooperative node is a cooperative node which is used by NB and NE+1 and corresponds to the target function FNBNE+1 from NB to NE+1.
A first section of route is taken as an example. Compare min{FN1N2,FN2N3} and FN1N3, and if min{FN1N2,FN2N3} is greater than FN1N3, the first segment adopts one-hop segmenting; otherwise the first segment adopts two-hop segmenting.
Step 55: Judge whether E+1 is equal to m, namely, judge whether NE+1 is a destination node. If yes, end the process. Otherwise, add 1 to k, and continue to execute step 51. That is, the ending node NE+1 of the section of route is used as the starting node of the next section, and the segmenting mode and a cooperative node of the next section of route is determined in the same method. This process is repeated until the ending node of the section is the destination node.
The selection of cooperative nodes in a section of route is described through an example.
As shown in FIG. 6, a node X, a node Y, and a node Z are cooperative nodes, and a node A, a node B, and a node C are master nodes.
Before a segmenting mode is determined, neighbor nodes that may be used for cooperation are determined first.
A target function when there is no cooperative node between the node A and the node B is calculated, and target functions when the node X, the node Y, and the node Z are respectively used as a cooperative node between the node A and the node B are calculated. Assuming that the target function when the node A and the node B use the node Y as the cooperative node is the greatest, the node Y is selected as the cooperative node between the node A and the node B; and the target function when the node A and the node B use the node Y as the cooperative node is used as the target function FAB between the node A and the node B.
Similarly, all possible target functions between the node B and the node C are calculated, and the greatest target function is found and used as the target function FBC between the node B and the node C. Assuming that the target function is the greatest when there is no cooperation, there is no cooperative node between the node B and the node C.
Then the target function of one-hop segmenting is FAC1=min{FAB,FBC}.
Target functions when the node A and the node C use one cooperative node or two cooperative nodes under two-hop segmenting are calculated. Assuming that the target function of the two-hop segment is the greatest when the node A and the node C use the node X and the node Y as cooperative nodes, the target function is used as the target function FAC2 of the two-hop segment.
Or, according to the description of the embodiment shown in FIG. 4, parameters pAC2, CAC2, pAC1=1−(1−pAB)(1−pBC), and CAC1=min{CAB,CBC} and are calculated to obtain



  
    
      F
      AC
      1
    
    =
    
      
        γ
        
          p
          AC
          1
        
      
      +
      
        
          (
          
            1
            -
            γ
          
          )
        
        ⁢
        
          C
          AC
          1
        
      
    
  




  and




  
    
      F
      AC
      2
    
    =
    
      
        γ
        
          p
          AC
          2
        
      
      +
      
        
          (
          
            1
            -
            γ
          
          )
        
        ⁢
        
          
            C
            AC
            2
          
          .
        
      
    
  



If FAC1>FAC2, as shown in FIG. 6, one-hop segmenting is selected for the section of route, and the cooperative node is the node Y. Otherwise, two-hop segmenting is used, and the cooperative nodes are the node X and the node Y.
FIG. 7 is a schematic structural diagram of an apparatus for implementing cooperative multi-hop routing in a wireless network according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes: a first one-hop segmenting unit 71, a second one-hop segmenting unit 72, a two-hop segmenting unit 73, and a mode determining unit 74.
The first one-hop segmenting unit 71 is configured to, after a route is set up, use a common neighbor node of a first master node and a second master node that are in the route as a cooperative node, and obtain an end-to-end diversity gain and an interrupt probability between the first master node and the second master node when the cooperative node is in cooperation.
The second one-hop segmenting unit 72 is configured to use a common neighbor node of the second master node and a third master node that are in the route as a cooperative node, and obtain an end-to-end diversity gain and an interrupt probability between the second master node and the third master node when the cooperative node is in cooperation.
The two-hop segmenting unit 73 is configured to use a common neighbor node of the first master node and the third master node that are in the route as a cooperative node, and obtain an end-to-end diversity gain and an interrupt probability between the first master node and the third master node when the cooperative node is in cooperation. For example, the two-hop segmenting unit 73 may be specifically configured to obtain the end-to-end diversity gain between the first master node and the third master node through calculation by using a calculation formula:




  
    C
    jAF
  
  =
  
    
      W
      2
    
    ⁢
    
      log
      (
      
        1
        +
        
          
            
              P
              s
            
            ⁢
            
              
                
                
                  
                    α
                    
                      
                        n
                        1
                      
                      ⁢
                      d
                    
                  
                  ⁢
                  
                    β
                    1
                  
                  ⁢
                  
                    α
                    
                      sn
                      1
                    
                  
                
                
              
              2
            
          
          
            
              
                
                  
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ⁢
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                  
                  
                
                2
              
              ⁢
              
                N
                
                  n
                  1
                
              
            
            +
            
              N
              d
            
          
        
        +
        
          
            
              P
              s
            
            ⁢
            
              
                
                
                  
                    α
                    rd
                  
                  ⁢
                  
                    β
                    2
                  
                  ⁢
                  
                    α
                    sr
                  
                
                
              
              2
            
          
          
            
              
                
                  
                  
                    
                      α
                      rd
                    
                    ⁢
                    
                      β
                      2
                    
                  
                  
                
                2
              
              ⁢
              
                N
                r
              
            
            +
            
              N
              d
            
          
        
      
      )
    
  




    
    
        or by using a calculation formula:
    
    






  
    C
    jDF
  
  =
  
    
      W
      2
    
    ⁢
    min
    ⁢
    
      {
      
        
          log
          ⁡
          
            (
            
              1
              +
              
                SNR
                ⁢
                
                  
                    
                    
                      α
                      
                        sn
                        1
                      
                    
                    
                  
                  2
                
              
              +
              
                SNR
                ⁢
                
                  
                    
                    
                      α
                      sr
                    
                    
                  
                  2
                
              
            
            )
          
        
        ,
        
          log
          ⁡
          
            (
            
              1
              +
              
                SNR
                ⁢
                
                  
                    
                    
                      α
                      
                        
                          n
                          1
                        
                        ⁢
                        d
                      
                    
                    
                  
                  2
                
              
              +
              
                SNR
                ⁢
                
                  
                    
                    
                      α
                      rd
                    
                    
                  
                  2
                
              
            
            )
          
        
      
      }
    
  




    
    
        or by using a calculation formula:
    
    






  
    C
    jAF
  
  =
  
    
      W
      3
    
    ⁢
    
      log
      (
      
        
      
      ⁢
      
        1
        +
        
          
            
              P
              s
            
            ⁢
            
              
                
                
                  
                    a
                    
                      
                        n
                        1
                      
                      ⁢
                      d
                    
                  
                  ⁢
                  
                    β
                    1
                  
                  ⁢
                  
                    a
                    
                      sn
                      1
                    
                  
                
                
              
              2
            
          
          
            
              
                
                  
                  
                    
                      a
                      
                        
                          n
                          1
                        
                        ⁢
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                  
                  
                
                2
              
              ⁢
              
                N
                
                  n
                  1
                
              
            
            +
            
              N
              d
            
          
        
        +
        
          
            
              P
              s
            
            ⁢
            
              
                
                
                  
                    a
                    
                      
                        r
                        1
                      
                      ⁢
                      d
                    
                  
                  ⁢
                  
                    β
                    2
                  
                  ⁢
                  
                    a
                    
                      sr
                      i
                    
                  
                
                
              
              2
            
          
          
            
              
                
                  
                  
                    
                      a
                      
                        
                          r
                          1
                        
                        ⁢
                        d
                      
                    
                    ⁢
                    
                      β
                      2
                    
                  
                  
                
                2
              
              ⁢
              
                N
                
                  r
                  1
                
              
            
            +
            
              N
              d
            
          
        
        +
        
          
            
              P
              s
            
            ⁢
            
              
                
                
                  
                    a
                    
                      
                        r
                        2
                      
                      ⁢
                      d
                    
                  
                  ⁢
                  
                    β
                    3
                  
                  ⁢
                  
                    a
                    
                      sr
                      2
                    
                  
                
                
              
              2
            
          
          
            
              
                
                  
                  
                    
                      a
                      
                        
                          r
                          2
                        
                        ⁢
                        d
                      
                    
                    ⁢
                    
                      β
                      3
                    
                  
                  
                
                2
              
              ⁢
              
                N
                
                  r
                  2
                
              
            
            +
            
              N
              d
            
          
        
      
      )
    
  




    
    
        or by using a calculation formula:
    
    






  
    
      C
      jDF
    
    =
    
      
        W
        3
      
      ⁢
      min
      ⁢
      
        {
        
          
            
              
                
                  log
                  ⁢
                  
                    (
                    
                      1
                      +
                      
                        SNR
                        ⁢
                        
                          
                            
                            
                              α
                              
                                sn
                                1
                              
                            
                            
                          
                          2
                        
                      
                      +
                      
                        SNR
                        ⁢
                        
                          
                            
                            
                              α
                              
                                sr
                                1
                              
                            
                            
                          
                          2
                        
                      
                      +
                      
                        SNR
                        ⁢
                        
                          
                            
                            
                              α
                              
                                sr
                                2
                              
                            
                            
                          
                          2
                        
                      
                    
                    )
                  
                
                ,
              
            
          
          
            
              
                log
                ⁡
                
                  (
                  
                    1
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              
                                n
                                1
                              
                              ⁢
                              d
                            
                          
                          
                        
                        2
                      
                    
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              
                                r
                                1
                              
                              ⁢
                              d
                            
                          
                          
                        
                        2
                      
                    
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              
                                r
                                2
                              
                              ⁢
                              d
                            
                          
                          
                        
                        2
                      
                    
                  
                  )
                
              
            
          
        
        }
      
    
  
  ;




    
    
        where, α is a channel gain, SNR is a signal-to-noise ratio, P is transmit power, N is noise power, β is a relay amplification coefficient,
    
    






  
    β
    ≤
    
      
        
          P
          r
        
        
          
            
              
                
                
                  a
                  sr
                
                
              
              2
            
            ⁢
            
              P
              s
            
          
          +
          
            N
            r
          
        
      
    
  
  ,




    
    
         the subscript s represents the first master node, the subscript d represents the third master node, n1 represents a first cooperative node, and n2 represents a second cooperative node.
    
    


The mode determining unit 74 is configured to determine a segmenting mode as one-hop segmenting with a corresponding cooperative node or two-hop segmenting with a corresponding cooperative node by using the obtained diversity gains and interrupt probabilities.
The apparatus for implementing cooperative multi-hop routing in a wireless network according to the embodiment may further include a data sending unit 75. The data sending unit 75 is configured to send packet data to a destination node in the determined segmenting mode.
The first one-hop segmenting unit 71 may be further configured to obtain end-to-end capacity and an interrupt probability between the first master node and the second master node when there is no cooperation.
The second one-hop segmenting unit 72 may be further configured to obtain end-to-end capacity and an interrupt probability between the second master node and the third master node when there is no cooperation.
The mode determining unit 74 may include:

    
    
        a first target function obtaining subunit, configured to obtain a target function in a first segmenting mode where the segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end capacity and interrupt probability between the first master node and the second master node when there is no cooperation and by using the obtained end-to-end capacity and interrupt probability between the second master node and the third master node when there is no cooperation;
        a second target function obtaining subunit, configured to obtain a target function in a second segmenting mode where the segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end capacity and interrupt probability between the first master node and the second master node when there is no cooperation and by using the obtained end-to-end diversity gain and interrupt probability between the second master node and the third master node when a cooperative node is in cooperation;
        a third target function obtaining subunit, configured to obtain a target function in a third segmenting mode where the segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the second master node when a cooperative node is in cooperation and by using the obtained end-to-end capacity and interrupt probability between the second master node and the third master node when there is no cooperation;
        a fourth target function obtaining subunit, configured to obtain a target function in a fourth segmenting mode where the segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the second master node when a cooperative node is in cooperation and by using the obtained end-to-end diversity gain and interrupt probability between the second master node and the third master node when a cooperative node is in cooperation;
        a two-hop segmenting target function obtaining subunit, configured to obtain a target function in the segmenting mode where the segmenting mode from the first master node to the third master node is two-hop segmenting by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the third master node when a cooperative node is in cooperation; and
        a selecting subunit, configured to select the segmenting mode where the target function is the greatest.
    
    


Or, the mode determining unit 74 may include:

    
    
        a first target function obtaining subunit, configured to obtain an end-to-end target function between the first master node and the second master node by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the second master node when a cooperative node is in cooperation;
        a second target function obtaining subunit, configured to obtain an end-to-end target function between the second master node and the third master node by using the obtained end-to-end diversity gain and interrupt probability between the second master node and the third master node when a cooperative node is in cooperation;
        a third target function obtaining subunit, configured to obtain an end-to-end target function between the first master node and the third master node by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the third master node when a cooperative node is in cooperation;
        a comparing subunit, configured to compare the obtained target functions; and
        a determining subunit, configured to determine, according to a comparison result, that the segmenting mode between the first master node and the third master node is one-hop segmenting with a corresponding cooperative node or two-hop segmenting with a corresponding cooperative node.
    
    


The mode determining unit 74 may be specifically configured to obtain the target function by using a calculation formula:




  F
  =
  
    
      γ
      p
    
    +
    
      
        (
        
          1
          -
          γ
        
        )
      
      ⁢
      C
    
  




    
    
        where F is the target function, p is the interrupt probability, and C is the diversity gain.
    
    


The apparatus for implementing cooperative multi-hop routing in a wireless network according to the embodiment of the present invention may further include: a sectioning unit and a judging unit.
The sectioning unit is configured to sequentially take two adjacent hops in the route as one section by using the first master node as a starting node; and the mode determining unit is specifically configured to determine a segmenting mode of each subsequent section of route according to the method for determining the segmenting mode from the first master node to the third master node.
The judging unit is configured to: after the mode determining unit determines the segmenting mode of each section of route, judge whether an ending node of the section of route is a destination node of the route; and if not, continue determining the segmenting mode of the subsequent adjacent section of route.
In the embodiment, the apparatus for implementing cooperative multi-hop routing in a wireless network obtains the diversity gains and the interrupt probabilities in a cooperative communication manner between master nodes in the route through the first one-hop segmenting unit, the second one-hop segmenting unit, and the two-hop segmenting unit, and determines the segmenting mode for sending packet data accordingly, thus implementing cooperative communication in a multi-hop route, where signals having the same information are sent through different paths, and multiple independently faded copies of data symbols may be obtained at a receiver end, thus obtaining better reception reliability and higher transmission capacity, and improving performance of a communication process.
Persons of ordinary skill in the art may understand that, all or part of the steps in the foregoing method embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program is executed, the steps in the foregoing method embodiments are executed. The storage medium includes any medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or a compact disk.
Finally, it should be noted that: the foregoing embodiments are merely used to describe rather than limit the technical solutions of the present invention; although the present invention is described in detail through the foregoing embodiments, persons of ordinary skill in the art should understand that: they may still make modifications to the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to part of the technical features; however, these modifications or replacements do not make the nature of the corresponding technical solutions depart from the spirit and scope of the technical solutions in the embodiments of the present invention.

## Claims

1. A method for cooperative multi-hop routing in a wireless network, comprising:
after a route is set up, using as a corresponding first cooperative node a common neighbor node of a first master node and a second master node that are in the route, and obtaining an end-to-end diversity gain and an interrupt probability between the first master node and the second master node when the first cooperative node is in cooperation with the first and second master nodes;
using as a corresponding second corresponding cooperative node a common neighbor node of the second master node and a third master node that are in the route, and obtaining an end-to-end diversity gain and an interrupt probability between the second master node and the third master node when the second cooperative node is in cooperation with the second and third mater nodes;
using as a corresponding third cooperative node a common neighbor node of the first master node and the third master node that are in the route, and obtaining an end-to-end diversity gain and an interrupt probability between the first master node and the third master node when the third cooperative node is in cooperation with the first and third master nodes; and
determining a segmenting mode as a one-hop segmenting with a corresponding cooperative node or as a two-hop segmenting with a corresponding cooperative node, by obtaining a target function using the obtained diversity gains and interrupt probabilities from among the first, second and third master nodes.

2. The method for cooperative multi-hop routing in a wireless network according to claim 1, wherein, the method further comprises:
obtaining end-to-end capacity and an interrupt probability between the first master node and the second master node when there is no cooperation with the first cooperative node; and
obtaining end-to-end capacity and interrupt probability between the second master node and the third master node when there is no cooperation with the second cooperative node; and
the determining the segmenting mode as one-hop segmenting with a corresponding cooperative node or two-hop segmenting with a corresponding cooperative node by using the obtained diversity gains and interrupt probabilities comprises:
obtaining a target function in a first segmenting mode where a segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end capacity and interrupt probability between the first master node and the second master node when there is no cooperation with the first cooperative node and by using the obtained end-to-end capacity and interrupt probability between the second master node and the third master node when there is no cooperation with the second cooperative node;
obtaining a target function in a second segmenting mode where the segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end capacity and interrupt probability between the first master node and the second master node when there is no cooperation with the first cooperative node and by using the obtained end-to-end diversity gain and interrupt probability between the second master node and the third master node when the second cooperative node is in cooperation with the second corresponding cooperative node;
obtaining a target function in a third segmenting mode where the segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the second master node when the first cooperative node is in cooperation with the first and second master nodes and by using the obtained end-to-end capacity and interrupt probability between the second master node and the third master node when there is no cooperation with the second cooperative node;
obtaining a target function in a fourth segmenting mode where the segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the second master node when the first cooperative node is in cooperation with the first and second master nodes and by using the obtained end-to-end diversity gain and interrupt probability between the second master node and the third master node when the second cooperative node is in cooperation with the second and third master nodes;
obtaining a target function in a segmenting mode where the segmenting mode from the first master node to the third master node is two-hop segmenting by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the third master node when the third cooperative node is in cooperation with the first and third master nodes; and
selecting a segmenting mode where the target function is the greatest.

3. The method for cooperative multi-hop routing in a wireless network according to claim 1, wherein the determining the segmenting mode as one-hop segmenting with a corresponding cooperative node or two-hop segmenting with a corresponding cooperative node by using the obtained diversity gains and interrupt probabilities comprises:
obtaining an end-to-end target function between the first master node and the second master node by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the second master node when the first cooperative node is in cooperation with the first and second master nodes;
obtaining an end-to-end target function between the second master node and the third master node by using the obtained end-to-end diversity gain and interrupt probability between the second master node and the third master node when the second cooperative node is in cooperation with the second and third master nodes;
obtaining an end-to-end target function between the first master node and the third master node by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the third master node when the third cooperative node is in cooperation with the first and third master nodes;
comparing the obtained target functions; and
determining, according to a comparison result, that the segmenting mode between the first master node and the third master node is one-hop segmenting with a corresponding cooperative node or two-hop segmenting with a corresponding cooperative node.

4. The method for cooperative multi-hop routing in a wireless network according to claim 3, further comprising:
sequentially taking two adjacent hops in the route as one section by using the first master node as a starting node;
determining a segmenting mode of each subsequent section of the route in turn according to the determining of the segmenting mode from the first master node to the third master node; and
after determining the segmenting mode of each section of route, judging whether an ending node of the section of route is a destination node of the route; and if not, continuing determining a segmenting mode of a subsequent adjacent section of route.

5. The method for cooperative multi-hop routing in a wireless network according claim 1, wherein the obtaining the end-to-end diversity gain between the first master node and the third master node when the third cooperative node is in cooperation with the first and third master nodes comprises:
obtaining the end-to-end diversity gain between the first master node and the third master node in case of an amplify-and-forward (AF) mode through calculation by using a calculation formula:





  
    C
    jAF
  
  =
  
    
      W
      2
    
    ⁢
    
      log
      ⁡
      
        (
        
          1
          +
          
            
              
                P
                s
              
              ⁢
              
                
                  
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ⁢
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                    ⁢
                    
                      α
                      
                        sn
                        1
                      
                    
                  
                  
                
                2
              
            
            
              
                
                  
                    
                    
                      
                        α
                        
                          
                            n
                            1
                          
                          ⁢
                          d
                        
                      
                      ⁢
                      
                        β
                        1
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  
                    n
                    1
                  
                
              
              +
              
                N
                d
              
            
          
          +
          
            
              
                P
                s
              
              ⁢
              
                
                  
                  
                    
                      α
                      
                        r
                        ⁢
                        
                          
                        
                        ⁢
                        d
                      
                    
                    ⁢
                    
                      β
                      2
                    
                    ⁢
                    
                      α
                      sr
                    
                  
                  
                
                2
              
            
            
              
                
                  
                    
                    
                      
                        α
                        
                          r
                          ⁢
                          
                            
                          
                          ⁢
                          d
                        
                      
                      ⁢
                      
                        β
                        2
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  r
                
              
              +
              
                N
                d
              
            
          
        
        )
      
    
  



or in case of a decode-and-forward (DF) mode by using a calculation formula:





  
    C
    jDF
  
  =
  
    
      W
      2
    
    ⁢
    min
    ⁢
    
      {
      
        
          
            
              
                log
                ⁡
                
                  (
                  
                    1
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              sn
                              1
                            
                          
                          
                        
                        2
                      
                    
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            sr
                          
                          
                        
                        2
                      
                    
                  
                  )
                
              
              ,
            
          
        
        
          
            
              log
              ⁡
              
                (
                
                  1
                  +
                  
                    SNR
                    ⁢
                    
                      
                        
                        
                          α
                          
                            
                              n
                              1
                            
                            ⁢
                            d
                          
                        
                        
                      
                      2
                    
                  
                  +
                  
                    SNR
                    ⁢
                    
                      
                        
                        
                          α
                          
                            r
                            ⁢
                            
                              
                            
                            ⁢
                            d
                          
                        
                        
                      
                      2
                    
                  
                
                )
              
            
          
        
      
      }
    
  



or in case of AF mode by using a calculation formula:





  
    C
    jAF
  
  =
  
    
      W
      3
    
    ⁢
    
      log
      ⁡
      
        (
        
          
            
              
                1
                +
                
                  
                    
                      P
                      s
                    
                    ⁢
                    
                      
                        
                        
                          
                            a
                            
                              
                                n
                                1
                              
                              ⁢
                              d
                            
                          
                          ⁢
                          
                            β
                            1
                          
                          ⁢
                          
                            a
                            
                              sn
                              1
                            
                          
                        
                        
                      
                      2
                    
                  
                  
                    
                      
                        
                          
                          
                            
                              a
                              
                                
                                  n
                                  1
                                
                                ⁢
                                d
                              
                            
                            ⁢
                            
                              β
                              1
                            
                          
                          
                        
                        2
                      
                      ⁢
                      
                        N
                        
                          n
                          1
                        
                      
                    
                    +
                    
                      N
                      d
                    
                  
                
                +
              
            
          
          
            
              
                
                  
                    
                      P
                      s
                    
                    ⁢
                    
                      
                        
                        
                          
                            a
                            
                              
                                r
                                1
                              
                              ⁢
                              d
                            
                          
                          ⁢
                          
                            β
                            2
                          
                          ⁢
                          
                            a
                            
                              sr
                              1
                            
                          
                        
                        
                      
                      2
                    
                  
                  
                    
                      
                        
                          
                          
                            
                              a
                              
                                
                                  r
                                  1
                                
                                ⁢
                                d
                              
                            
                            ⁢
                            
                              β
                              2
                            
                          
                          
                        
                        2
                      
                      ⁢
                      
                        N
                        
                          r
                          1
                        
                      
                    
                    +
                    
                      N
                      d
                    
                  
                
                +
                
                  
                    
                      P
                      s
                    
                    ⁢
                    
                      
                        
                        
                          
                            a
                            
                              
                                r
                                2
                              
                              ⁢
                              d
                            
                          
                          ⁢
                          
                            β
                            3
                          
                          ⁢
                          
                            a
                            
                              sr
                              2
                            
                          
                        
                        
                      
                      2
                    
                  
                  
                    
                      
                        
                          
                          
                            
                              a
                              
                                
                                  r
                                  2
                                
                                ⁢
                                d
                              
                            
                            ⁢
                            
                              β
                              3
                            
                          
                          
                        
                        2
                      
                      ⁢
                      
                        N
                        
                          r
                          2
                        
                      
                    
                    +
                    
                      N
                      d
                    
                  
                
              
            
          
        
        )
      
    
  



or in case of DF mode by using a calculation formula:





  
    
      C
      jDF
    
    =
    
      
        W
        3
      
      ⁢
      min
      ⁢
      
        {
        
          
            
              
                
                  log
                  ⁡
                  
                    (
                    
                      1
                      +
                      
                        SNR
                        ⁢
                        
                          
                            
                            
                              α
                              
                                sn
                                1
                              
                            
                            
                          
                          2
                        
                      
                      +
                      
                        SNR
                        ⁢
                        
                          
                            
                            
                              α
                              
                                sr
                                1
                              
                            
                            
                          
                          2
                        
                      
                      +
                      
                        SNR
                        ⁢
                        
                          
                            
                            
                              α
                              
                                sr
                                2
                              
                            
                            
                          
                          2
                        
                      
                    
                    )
                  
                
                ,
              
            
          
          
            
              
                log
                ⁡
                
                  (
                  
                    1
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              
                                n
                                1
                              
                              ⁢
                              d
                            
                          
                          
                        
                        2
                      
                    
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              
                                r
                                1
                              
                              ⁢
                              d
                            
                          
                          
                        
                        2
                      
                    
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              
                                r
                                2
                              
                              ⁢
                              d
                            
                          
                          
                        
                        2
                      
                    
                  
                  )
                
              
            
          
        
        }
      
    
  
  ;



where, W is a channel bandwidth, α is a channel gain, SNR is a signal-to-noise ratio, P is transmit power, N is noise power, β is a relay amplification coefficient,





  
    β
    ≤
    
      
        
          P
          r
        
        
          
            
              
                
                
                  a
                  sr
                
                
              
              2
            
            ⁢
            
              P
              s
            
          
          +
          
            N
            r
          
        
      
    
  
  ,




subscript s represents the first master node, subscript d represents the third master node, n1 represents a first cooperative node, and n2 represents a second cooperative node.

6. The method for cooperative multi-hop routing in a wireless network according to claim 2, wherein a formula for calculating the target function is:




  
    F
    =
    
      
        γ
        p
      
      +
      
        
          (
          
            1
            -
            γ
          
          )
        
        ⁢
        C
      
    
  
  ,



where, F is a target function, γ is a weighting factor, p is an interrupt probability, and C is a diversity gain.

7. The method for cooperative multi-hop routing in a wireless network according to claim 1, wherein, after the determining the segmenting mode as one-hop segmenting with a corresponding cooperative node or two-hop segmenting with a corresponding cooperative node by using the obtained diversity gains and interrupt probabilities, the method further comprises:
sending, by the first master node, packet data to a destination node in the determined segmenting mode.

8. An apparatus for implementing cooperative multi-hop routing in a wireless network, comprising:
computer hardware configured to execute:
after a route is set up, use as a corresponding first cooperative node a common neighbor node of a first master node and a second master node that are in the route, and obtain an end-to-end diversity gain and an interrupt probability between the first master node and the second master node when the first cooperative node is in cooperation with the first and second master nodes;
use as a corresponding second corresponding cooperative node a common neighbor node of the second master node and a third master node that are in the route, and obtain an end-to-end diversity gain and an interrupt probability between the second master node and the third master node when the second cooperative node is in cooperation with the second and third master nodes;
use as a corresponding third cooperative node a common neighbor node of the first master node and the third master node that are in the route, and obtain an end-to-end diversity gain and an interrupt probability between the first master node and the third master node when the third cooperative node is in cooperation with the first and third master nodes; and
determine a segmenting mode as a one-hop segmenting with a corresponding cooperative node or as two-hop segmenting with a corresponding cooperative node, by obtaining a target function using the obtained diversity gains and interrupt probabilities from among the first, second and third master nodes.

9. The apparatus according to claim 8, wherein the computer hardware is further configured to execute:
obtain end-to-end capacity and an interrupt probability between the first master node and the second master node when there is no cooperation with the first cooperative node;
obtain end-to-end capacity and an interrupt probability between the second master node and the third master node when there is no cooperation with the second cooperative node; and
obtain a target function in a first segmenting mode where a segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end capacity and interrupt probability between the first master node and the second master node when there is no cooperation with the first cooperative node and by using the obtained end-to-end capacity and interrupt probability between the second master node and the third master node when there is no cooperation with the second cooperative node;
obtain a target function in a second segmenting mode where the segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end capacity and interrupt probability between the first master node and the second master node when there is no cooperation with the first cooperative node and by using the obtained end-to-end diversity gain and interrupt probability between the second master node and the third master node when the second cooperative node is in cooperation with the second cooperative node;
obtain a target function in a third segmenting mode where the segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the second master node when the first cooperative node is in cooperation with the first and second master nodes and by using the obtained end-to-end capacity and interrupt probability between the second master node and the third master node when there is no cooperation with the second cooperative node;
obtain a target function in a fourth segmenting mode where the segmenting mode from the first master node to the third master node is one-hop segmenting by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the second master node when the first cooperative node is in cooperation with the first and second master nodes and by using the obtained end-to-end diversity gain and interrupt probability between the second master node and the third master node when the second cooperative node is in cooperation with the second and third master nodes;
obtain a target function in a segmenting mode where the segmenting mode from the first master node to the third master node is two-hop segmenting by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the third master node when the third cooperative node is in cooperation with the first and second master nodes; and
select a segmenting mode where the target function is the greatest.

10. The apparatus according to claim 8, wherein the computer hardware is further configured to execute:
obtain an end-to-end target function between the first master node and the second master node by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the second master node when the first cooperative node is in cooperation with the first and second master nodes;
obtain an end-to-end target function between the second master node and the third master node by using the obtained end-to-end diversity gain and interrupt probability between the second master node and the third master node when the second cooperative node is in cooperation with the second and third master nodes;
a third target function obtaining subunit, configured to obtain an end-to-end target function between the first master node and the third master node by using the obtained end-to-end diversity gain and interrupt probability between the first master node and the third master node when the third cooperative node is in cooperation with the first and third master nodes;
compare the obtained target functions; and
determine, according to a comparison result, that the segmenting mode between the first master node and the third master node is one-hop segmenting with a corresponding cooperative node or two-hop segmenting with a corresponding cooperative node.

11. The apparatus according to claim 10, wherein the computer hardware is further configured to execute:
sequentially take two adjacent hops in the route as one section by using the first master node as a starting node;
determine a segmenting mode of each subsequent section of the route in turn according to the determining of the segmenting mode from the first master node to the third master node; and
of the segmenting mode of each section of route, judge whether an ending node of the section of route is a destination node of the route; and if not, continue determining a segmenting mode of the subsequent adjacent section of route.

12. The apparatus according to claim 8, wherein the computer hardware is further configured to obtain the end-to-end diversity gain between the first master node and the third master node in case of an amplify-and-forward (AF) mode through calculation by using a calculation formula:




  
    C
    jAF
  
  =
  
    
      W
      2
    
    ⁢
    
      log
      ⁡
      
        (
        
          1
          +
          
            
              
                P
                s
              
              ⁢
              
                
                  
                  
                    
                      α
                      
                        
                          n
                          1
                        
                        ⁢
                        d
                      
                    
                    ⁢
                    
                      β
                      1
                    
                    ⁢
                    
                      α
                      
                        sn
                        1
                      
                    
                  
                  
                
                2
              
            
            
              
                
                  
                    
                    
                      
                        α
                        
                          
                            n
                            1
                          
                          ⁢
                          d
                        
                      
                      ⁢
                      
                        β
                        1
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  
                    n
                    1
                  
                
              
              +
              
                N
                d
              
            
          
          +
          
            
              
                P
                s
              
              ⁢
              
                
                  
                  
                    
                      α
                      
                        r
                        ⁢
                        
                          
                        
                        ⁢
                        d
                      
                    
                    ⁢
                    
                      β
                      2
                    
                    ⁢
                    
                      α
                      sr
                    
                  
                  
                
                2
              
            
            
              
                
                  
                    
                    
                      
                        α
                        
                          r
                          ⁢
                          
                            
                          
                          ⁢
                          d
                        
                      
                      ⁢
                      
                        β
                        2
                      
                    
                    
                  
                  2
                
                ⁢
                
                  N
                  r
                
              
              +
              
                N
                d
              
            
          
        
        )
      
    
  



or in case of a decode-and-forward (DF) mode by using a calculation formula:





  
    C
    jDF
  
  =
  
    
      W
      2
    
    ⁢
    min
    ⁢
    
      {
      
        
          
            
              
                log
                ⁡
                
                  (
                  
                    1
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              sn
                              1
                            
                          
                          
                        
                        2
                      
                    
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            sr
                          
                          
                        
                        2
                      
                    
                  
                  )
                
              
              ,
            
          
        
        
          
            
              log
              ⁡
              
                (
                
                  1
                  +
                  
                    SNR
                    ⁢
                    
                      
                        
                        
                          α
                          
                            
                              n
                              1
                            
                            ⁢
                            d
                          
                        
                        
                      
                      2
                    
                  
                  +
                  
                    SNR
                    ⁢
                    
                      
                        
                        
                          α
                          
                            r
                            ⁢
                            
                              
                            
                            ⁢
                            d
                          
                        
                        
                      
                      2
                    
                  
                
                )
              
            
          
        
      
      }
    
  



or in case of AF mode by using a calculation formula:





  
    C
    jAF
  
  =
  
    
      W
      3
    
    ⁢
    
      log
      ⁡
      
        (
        
          
            
              
                1
                +
                
                  
                    
                      P
                      s
                    
                    ⁢
                    
                      
                        
                        
                          
                            a
                            
                              
                                n
                                1
                              
                              ⁢
                              d
                            
                          
                          ⁢
                          
                            β
                            1
                          
                          ⁢
                          
                            a
                            
                              sn
                              1
                            
                          
                        
                        
                      
                      2
                    
                  
                  
                    
                      
                        
                        
                          
                            a
                            
                              
                                n
                                1
                              
                              ⁢
                              d
                            
                          
                          ⁢
                          
                            β
                            1
                          
                        
                        
                      
                      2
                    
                    +
                    
                      N
                      
                        n
                        1
                      
                    
                    +
                    
                      N
                      d
                    
                  
                
                +
              
            
          
          
            
              
                
                  
                    
                      P
                      s
                    
                    ⁢
                    
                      
                        
                        
                          
                            a
                            
                              
                                r
                                1
                              
                              ⁢
                              d
                            
                          
                          ⁢
                          
                            β
                            2
                          
                          ⁢
                          
                            a
                            
                              sr
                              1
                            
                          
                        
                        
                      
                      2
                    
                  
                  
                    
                      
                        
                        
                          
                            a
                            
                              
                                r
                                1
                              
                              ⁢
                              d
                            
                          
                          ⁢
                          
                            β
                            2
                          
                        
                        
                      
                      2
                    
                    +
                    
                      N
                      
                        r
                        1
                      
                    
                    +
                    
                      N
                      d
                    
                  
                
                +
                
                  
                    
                      P
                      s
                    
                    ⁢
                    
                      
                        
                        
                          
                            a
                            
                              
                                r
                                2
                              
                              ⁢
                              d
                            
                          
                          ⁢
                          
                            β
                            3
                          
                          ⁢
                          
                            a
                            
                              sr
                              2
                            
                          
                        
                        
                      
                      2
                    
                  
                  
                    
                      
                        
                          
                          
                            
                              a
                              
                                
                                  r
                                  2
                                
                                ⁢
                                d
                              
                            
                            ⁢
                            
                              β
                              3
                            
                          
                          
                        
                        2
                      
                      ⁢
                      
                        N
                        
                          r
                          2
                        
                      
                    
                    +
                    
                      N
                      d
                    
                  
                
              
            
          
        
        )
      
    
  



or in case of DF mode by using a calculation formula:





  
    
      C
      jDF
    
    =
    
      
        W
        3
      
      ⁢
      min
      ⁢
      
        {
        
          
            
              
                
                  log
                  ⁡
                  
                    (
                    
                      1
                      +
                      
                        SNR
                        ⁢
                        
                          
                            
                            
                              α
                              
                                sn
                                1
                              
                            
                            
                          
                          2
                        
                      
                      +
                      
                        SNR
                        ⁢
                        
                          
                            
                            
                              α
                              
                                sr
                                1
                              
                            
                            
                          
                          2
                        
                      
                      +
                      
                        SNR
                        ⁢
                        
                          
                            
                            
                              α
                              
                                sr
                                2
                              
                            
                            
                          
                          2
                        
                      
                    
                    )
                  
                
                ,
              
            
          
          
            
              
                log
                ⁡
                
                  (
                  
                    1
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              
                                n
                                1
                              
                              ⁢
                              d
                            
                          
                          
                        
                        2
                      
                    
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              
                                r
                                1
                              
                              ⁢
                              d
                            
                          
                          
                        
                        2
                      
                    
                    +
                    
                      SNR
                      ⁢
                      
                        
                          
                          
                            α
                            
                              
                                r
                                2
                              
                              ⁢
                              d
                            
                          
                          
                        
                        2
                      
                    
                  
                  )
                
              
            
          
        
        }
      
    
  
  ;



where, W is a channel bandwidth, α is a channel gain, SNR is a signal-to-noise ratio, P is transmit power, N is noise power, β is a relay amplification coefficient,





  
    β
    ≤
    
      
        
          P
          r
        
        
          
            
              
                
                
                  a
                  sr
                
                
              
              2
            
            ⁢
            
              P
              s
            
          
          +
          
            N
            r
          
        
      
    
  
  ,




subscript s represents the first master node, subscript d represents the third master node, n1 represents a first cooperative node, and n2 represents a second cooperative node.

13. The apparatus according to claim 9, wherein the computer hardware is further configured to execute: obtain the target function by using a calculation formula:




  F
  =
  
    
      γ
      p
    
    +
    
      
        (
        
          1
          -
          γ
        
        )
      
      ⁢
      C
    
  



where F is a target function, γ is a weighting factor, p is an interrupt probability, and C is a diversity gain.

14. The apparatus according to claim 8, wherein the computer hardware is further configured to execute:
send packet data to a destination node in the determined segmenting mode.