Disclosure of Invention
In view of the above, the present invention is directed to a parallel path forwarding method with redundant coding in WOBAN. Aiming at the problems of large loss of service data and high recovery cost of the existing WOBAN survivability guarantee method, the invention calculates the number of parallel paths meeting the requirement according to the service reliability requirement and calculates the parallel path with the minimum time delay according to the queuing theory. And then, coding the service data packet by using redundant coding at the source node, and calculating an optimal flow distribution scheme and a coding packet number according to parameters such as the path number, the packet loss rate and the like. When the destination node receives enough linearly independent coding packets from a plurality of parallel paths, the original service data can be recovered. The invention carries out redundancy coding and parallel connection and path forwarding on the original service data packet, and tolerates faults of DF, ONU, wireless nodes, wireless links and the like in the data packet forwarding process. After the network equipment in any path fails, the destination node can recover the original data only by receiving enough coding packets from other paths without searching for a new route, thereby realizing rapid and lossless service recovery. Compared with other methods, the method reduces the service recovery cost on the basis of data lossless recovery, and simultaneously improves the service recovery speed.
In order to achieve the purpose, the invention provides the following technical scheme:
the parallel path forwarding method with redundant coding in WOBAN includes link state broadcasting stage, link weight value distributing stage, parallel path calculating stage and redundant coding transmission stage,
in the link state broadcasting stage, the wireless routing node and the ONU broadcast the link state information to the network;
in the link weight value distribution stage, the wireless routing node and the ONU calculate the time delay of the optical fiber and the wireless link according to the parameters in the link state information, and set the time delay as the weight value of the link;
in the parallel path calculation stage, the wireless routing node and the ONU calculate the number N of parallel paths meeting the service requirement according to the reliability requirement of the service and the error rates of the optical fiber and the wireless link, and repeatedly calculate N parallel paths with minimum time delay by using a Dijkstra shortest path algorithm;
and in the redundant coding transmission stage, the wireless routing node and the ONU calculate the optimal coding packet flow distribution scheme and the optimal number coding data packet number M, perform redundant coding and transmit the redundant coding to the destination node through a parallel path.
Further, the link state information includes parameters: node type, node identification, exit link group, data packet density, packet loss rate, queue length and timestamp.
Further, the broadcasting of the link state information to the network by the wireless routing node and the ONU node specifically includes:
and the wireless routing node sends the link state information to the wireless routing node and the ONU, and the ONU simultaneously sends the link state information to the wireless routing node, the ONU and the OLT.
Further, the calculating the time delay of the optical fiber and the wireless link specifically includes:
the uplink time delay from ONU to OLT is TONU,OLT=TR+TG+TS+TQ+TPWherein T isRFor the time between the arrival of a packet and the sending of the first Request message, TGFor the time between the transmission of the first Request message and the reception of the Grant message transmitting the data packet, TSWaiting for the time of transmitting data in the authorized time slot T after receiving the Grant information of the data packetQTime, T, required for transmitting data before the data packet in the queue after the authorized time slot arrivesPThe propagation delay of the data packet on the optical fiber link is determined;
queue length of ONU
In which
Obtaining the mean value of authorized bandwidth for the ONU, and the uplink time delay from the ONU to the OLT is
Wherein E [ T
cycle]Is a polling period T
cycleMean value of R
OThe transmission rate of the optical fiber is shown, and RTT is the round trip delay of the ONU;
queue length of ONU
The uplink time delay from ONU to OLT is
Wherein W
MAXIs the maximum authorized bandwidth.
Further, said E [ T ]cycle]The calculation method comprises the following steps:
firstly, the bandwidth applied by any ONU in the next period is solved according to the queuing theory
Wherein V
i(k +1) represents ONU
iAt the application bandwidth of k +1 polling periods,
for ONU
iOf the kth polling period length, λ
iThe arrival rate of the data packets, wherein 1/mu is the average length of the data packets;
then according to the size E [ V ] of the bandwidth applied by ONU in the next period
i(k+1)]The ONUs are divided into 2 groups: high Load ONU (HLONU) and Low Load ONU (LLONU), wherein the ONU in the set HLONU satisfies E [ V ]
i(k+1)]>W
MAXThat is, the requested bandwidth of ONU is greater than the maximum authorized bandwidth, and the ONU in the set LLONU satisfies E [ V ]
i(k+1)]≤W
MAXThat is, the authorized bandwidth of the ONU is less than or equal to the maximum authorized bandwidth; when in use
And is
When it is, all ONU are in low load state and satisfy EV
i(k+1)]≤W
MAXMean value of polling period
When in use
And is
Mean of time, polling period
When in use
And is
When it is time, i.e. all ONUs are in a high load state and satisfy ev
i(k+1)]>W
MAXMean value of the polling period E [ T ]
cycle]=K(W
MAX+T
g) Wherein T is
gAnd K is the number of the ONU in the network.
Further, the
Satisfies the following conditions: when ONU
iWhen the element belongs to LLONU, namely ONU belongs to low-load ONU, mean value of authorized bandwidth
When ONU
iWhen belonging to HLONU, namely ONU belongs to high-load ONU, mean value of authorized bandwidth
Further, the calculating the number N of parallel paths meeting the service requirement specifically includes: for any one parallel path P, include
A hop wireless link and a 1-hop optical fiber link, wherein
The average value of the hop counts from the wireless routing node to different ONU is calculated by formula
Get, | W | is the number of ONU in the network, h
iThe number of the shortest hops from the wireless routing node to the ith ONU is obtained; probability of successful transmission of data packet to destination node in any one parallel path P
Is composed of
Wherein
Is the bit error rate of the wireless link,
the bit error rate of the optical fiber link, L is the data packet length; reliability of the N parallel paths
According to the reliability R of the service requirement, the number N of the parallel paths passes through a formula
Thus obtaining the product.
Further, the calculating of the optimal coding packet traffic distribution scheme specifically includes: when x is1=x2=…=xk=…=xNWhere x is M/NkIndicating the number of coded data packets transmitted in the kth parallel path, xNThe number of the coded data packets transmitted in the Nth parallel path is represented, namely the number of the coded data packets on each parallel path is equal, and the number M of the required coded data packets is minimum on the basis that the destination node successfully decodes and recovers the original data packets after any one parallel path fails; where M is the number of encoded packets and N is the number of parallel paths.
Further, the method for calculating the number M of the optimal number encoded data packets comprises:
when the packet loss of the wireless link is not considered, the total number of the coded data packets transmitted in any N-1 paths is greater than or equal to m, namely
Wherein M is the number of the encoding packets, M is the number of the original data packets, and N is the number of the parallel paths; the target node recovers the original data after any one parallel path failsEncoding the minimum number of data packets M on the packet basis
Meanwhile, according to the flow distribution scheme, the destination node at least receives m/N-1 coded data packets from each parallel path to successfully decode the original data packets;
when considering the packet loss of the wireless link, let E
iIs path P
i={e
1,e
2…, the packet loss rate of the ith link is that for any packet, the probability of successful transmission to the destination node is
X'
iIn order to consider the number of the coded data packets transmitted by the ith path after the packet loss rate, the node at least receives m/N-1 coded data packets from each parallel path
Obtaining the number of the coding data packets at least transmitted on each parallel path
The total number of coded data packets M is
Further, the performing the redundant coding and transmitting to the destination node through the parallel path specifically includes: grouping data packets to be sent by a source node according to M data packets in each group, performing redundant coding on the data packets in each group to generate M coded data packets, and then transmitting the coded data packets to a destination node through N parallel paths according to a flow distribution scheme; the destination node receives m linearly independent coded packets from the N parallel paths, decodes and recovers m original data packets; when any one parallel path fails, according to the coding scheme, the destination node receives at least m linearly independent coded packets from other N-1 parallel paths.
The invention has the beneficial effects that: the survivability guarantee method provided by the invention carries out redundant coding on the original data packet, eliminates the dependence of the service on a single data packet, and when the single data packet is lost, the source node does not need to retransmit, but the target node can still successfully recover the original data packet; the method combines the parallel paths to transmit the coding packets, and considers that the number of the parallel paths and the number of the redundant coding packets are calculated under the condition that a target node can still succeed after any one parallel path fails, so that the method can tolerate the interruption of the whole path caused by the equipment failure on any one path, compared with other methods, the method does not need to retransmit data packets, and can quickly recover the original data packets; the method does not need to add extra standby optical fibers or standby wireless transceiving equipment, and greatly reduces the network deployment cost.
Detailed Description
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The method protects the distribution optical fiber fault, the ONU fault, the wireless node and the link fault in the WOBAN and recovers data quickly and nondestructively by fusing redundant coding parallel path forwarding and using lower time delay and less resources. The network structure of the WOBAN network is shown in fig. 1. The method mainly comprises the following steps, as shown in fig. 2.
1. A link state broadcasting stage: the nodes (ONU and wireless routing node) periodically broadcast Link State information (LSA) into the network, the format of which is shown in table 1. Meanwhile, the ONU needs to send the received LSA of the wireless routing node to the OLT, so that the OLT selects a proper parallel path for transmission during downlink data transmission.
TABLE 1 LSA packet format
Wherein:
1) the node type is Router or ONU;
2) the node identification is the unique identification of the node in the network;
3) the egress link group is all egress links starting from the node. If the node type is Router, the part comprises all exit links taking the wireless routing node as a starting point; if the node type is ONU, the part comprises an optical fiber link from the ONU to the OLT and a wireless link from the ONU as a starting point to a wireless routing node;
4) the data packet density is the density of data packet arrival on a wireless link or an optical fiber link;
5) the packet loss rate is an average packet loss rate of the link, the packet loss rate of the wireless link can be obtained by sending a detection packet, and the packet loss rate of the optical fiber link is set to be 0 because the optical fiber link is stable.
6) The queue length is the length of the ONU internal queue, and the field is NULL when the node type is Router.
7) The timestamp is the time that the LSA was generated, assuming that the time of the entire network remains synchronized.
The LSAs generated by the wireless routing node and the ONU are shown in table 2 and table 3.
TABLE 2 LSA generated by Wireless routing node
TABLE 3 ONU generated LSA
2. A link weight value distribution stage: when a service needs to be transmitted, a source node first needs to update the weight of each link in the network according to the LSA of each node, and the method calculates the time delay of each link according to the parameters in the LSA and sets the time delay as the weight of the link.
1) Radio link delay
Assuming that a wireless routing node of a WOBAN wireless front end shares a channel in a TDMA manner, the time delay of a wireless link of a data packet in a WMN mainly includes four aspects: propagation delay, transmission delay, slot synchronization delay, and queuing delay.
The time delay d for any one of the radio links u-vuvCan be calculated by equation (1).
Wherein 1/μ represents the average packet length, CuvRepresents the effective capacity, λ, of the link u-vuvIs the packet density on link u-v.
2) Optical fiber link delay
According to a Dynamic Bandwidth Allocation algorithm (DBA), uplink transmission of a PON network at the back end of the WOBAN transmits data in a time division multiplexing manner, and downlink transmission transmits data in a broadcasting manner.
① upstream time delay from ONU to OLT
During uplink transmission, all ONUs share an uplink channel in a time division multiplexing mode, and each ONU can only send uplink data and Request information in a time slot authorized by the OLT. The Request information includes the queue length of the ONU, and indicates the bandwidth that the ONU expects to transmit in the next polling cycle. Assuming that the scheduling of the ONU internal queue adopts the FIFO mechanism, according to the DBA algorithm, after a data packet arrives at the ONU, the whole interaction process of the ONU and the OLT is as shown in fig. 3.
The total delay T of the data packet from the ONU to the OLTONU,OLTAs shown in equation (2).
TONU,OLT=TR+TG+TS+TQ+TP(2)
TRFor packet arrival and transmission firstThe time between Request messages. The mean value can be calculated by equation (3), where TcycleIs a polling period.
E[TR]=E[Tcycle]/2 (3)
TGThe time between the sending of the first Request message and the receiving of the Grant message that can send the data packet. As shown in fig. 4, when the load is high, when a packet arrives, there are many packets in the queue, and in one polling period, the ONU cannot transmit all the packets, so T is TGPossibly containing multiple polling periods. If the ONU does not send out all the data packets in the queue, the ONU must be granted the maximum authorized bandwidth W at the momentMAXThen T isGThe mean value of (c) can be calculated by equation (4).
Wherein q is the queue length of the ONU,
and indicating the authorized bandwidth contained in the received Grant information before the first Request information is sent after the data packet arrives at the ONU.
An average of the licensed bandwidth is obtained for the ONU.
TSWaiting for the time of transmitting data in the authorized time slot after receiving the Grant information of the data packet, wherein the DBA algorithm only transmits the Grant information before the authorized time slot of the ONU arrives, so that TSVery small and negligible.
TQAnd after the authorized time slot arrives, sending the data before the data packet in the queue. T isQCan be calculated by the formula (5) wherein ROIs the transmission rate of the optical fiber.
TPIs the propagation delay of the data packet on the optical fiber link. The mean value is shown in equation (6), where RTT is the round trip delay of ONU.
E[TP]=RTT/2 (6)
Therefore, the total upstream delay T of the data packet from the ONU to the OLTONU,OLTCan be expressed as equation (7).
In equation (7), the mean value E [ T ] due to the length of the polling period
cycle]And mean of granted bandwidth
Unknown, so that the uplink time delay can not be obtained temporarily, the invention uses the queuing theory to calculate the ET
cycle]And
suppose that the data packet arrival of the ith ONU obeys Poisson distribution and the arrival rate is lambda
iThe average length of the data packet is 1/mu, W
i(k) For ONU
iGranted Bandwidth in the kth Polling cycle, V
i(k) For ONU
iBandwidth, N, applied to OLT in kth polling period
i(T) indicates ONU
iThe number of packets arriving within time T. As shown in fig. 5, the ONU
iHas a k-th polling period length of
Assuming that the bandwidth size applied to the OLT in the (k +1) th polling period is mainly determined by the amount of data arriving in the previous polling period, as shown in fig. 5, the ONU
1The data packet arriving in the 0 th polling period of (2) applies for bandwidth from the OLT in the 1 st polling period.
For ONUiThe probability that the number of arriving packets in the kth polling period is n is shown in equation (8).
Then the ONUiThe average of the number of arriving packets in the kth polling period is shown as the indicator (9).
In the k +1 polling period, ONUiThe bandwidth size of the application is shown in formula (10).
According to the LSA of all the ONUs, the E [ V (k +1) of any one ONU can be calculated]. All ONUs are divided into two groups: high Load ONU (HLONU) and Low Load ONU (Low Load ONU, LLONU). Wherein an ONU in the set HLONU satisfies EVi(k+1)]>WMAXONU in LLONU satisfies EVi(k+1)]≤WMAX。
a) When in use
And is
When it is, all ONU are in low load state and satisfy EV
i(k+1)]≤W
MAX。
At the moment, the network load is small, and the ONUiThe granted bandwidth obtained in the (k + 2) th polling period should be equal to the bandwidth requested in the (k +1) th polling period, i.e. as shown in equation (11).
E[Wi(k+2)]=E[Vi(k+1)](11)
The length of the (K + 2) th polling period can be expressed as a public indication (12), where K is the number of ONUs and T is the number of ONUsgIndicating a guard time slot.
At steady state, the average of the different polling period lengths should be equal, i.e.
Equation (12) can be simplified to.
Thus, the mean value E [ T ] of the polling period can be obtainedcycle]Is shown in equation (15).
b) When in use
And is
Then (c) is performed.
ONUiGranted Bandwidth E [ W ] obtained at the k +2 polling periodi(k+2)]Equation (16) should be satisfied.
The k +2 th polling period length is shown in equation (17).
Similarly, in steady state, the average of the lengths of different polling periods should be equal, and the above equation can be simplified to equation (18). Wherein | HLONU | is the number of nodes in the set HLONU.
c) When in use
And is
When it is time, i.e. all ONUs are in a high load state and satisfy ev
i(k+1)]>W
MAX。
ONUiThe granted bandwidth obtained at the k +2 polling period is shown in equation (19).
E[Wi(k+2)]=WMAX(19)
The mean value of the polling period E [ T ] can be obtained in the same waycycle]Is as follows.
In summary, the ONUiMean value of polling period length E [ T ]cycle]Is shown in equation (21).
ONU
iMean of granted bandwidths
Is shown in equation (22).
According to the formula (22), the formula (23) and the formula (7), the uplink time delay T from the ONU to the OLT can be obtainedONU,OLT。
② downstream delay from OLT to ONU
The downstream delay from the OLT to the ONU includes transmission delay and propagation delay. When the link capacity between the OLT and each ONU is equal, the transmission delay to each ONU is equal for any one packet, and therefore the transmission delay is not considered herein. The downlink delay TOLT,ONUAs shown in equation (23)Shown in the figure.
Wherein
For OLT to ONU
iOf the optical fiber link length S
opticalIs the propagation speed of an optical signal in an optical fiber.
3. A parallel path calculation stage: the invention repeatedly utilizes Dijkstra shortest path algorithm to find out the parallel path separated by the ONU with the minimum time delay.
1) Calculating the number of parallel paths N
Let the reliability of the service requirement be R, and the error rate of each wireless link be the same as
The error rate of each optical fiber link is the same as
Each packet is the same length and is L. Probability P of error-free transmission of data packets over the radio link
wIs as follows.
Similarly, probability P of error-free transmission of data packets over an optical fiber linkoIs as follows.
Because the hop counts from the wireless routing node to different ONUs are different, in order to simplify the operation, the method is provided
Is the average value of the number of hops from the wireless routing node to different ONUs, as shown in equation (26), where | W | is the number of ONUs in the network, h
iRouting nodes to ith O for wirelessThe shortest hop count of NU.
For any path P, include
Probability of successful transmission of data packet to destination node by hopping radio link and 1-hop optical fiber link
Is composed of
Because the faults of the distribution optical fiber, the ONU, the wireless node, the wireless link and the like all cause the failure of one path, the destination node can still successfully decode the original data packet after considering that any path fails. Therefore, at least N-1 paths are successfully transmitted, and the destination node can successfully decode the original data packet. The reliability R' of the N parallel paths is shown in equation (28).
The reliability of the N parallel paths should satisfy R' being equal to or more than R, so that
The number N of parallel paths satisfying the reliability R can be obtained from the bulletin (29).
2) Finding N parallel paths
First, an auxiliary graph G' is initialized, which contains all the optical fiber links as well as the wireless links. In G ', a Dijkstra shortest path algorithm is used for calculating a 1 st path from a source node to a destination node (from a wireless routing node to an OLT or in the opposite direction), and then G ' is updated, and links (both bidirectional links are deleted) between nodes, which are passed by the 1 st path, are deleted in G '. And (4) continuously using Dijkstra shortest path algorithm to calculate the 2 nd path in the updated G', and circulating for N times, thus calculating the parallel paths separated by the N ONUs.
4. And a redundancy coding transmission stage: the source node encodes M original data packets into M encoded data packets by using redundancy coding, and transmits the data packets to N parallel paths according to a data packet flow distribution scheme. And if the intermediate node is a cross node of a plurality of paths, recoding the K coded data packets received in the same group within a short time tau. And when the target node receives m linear irrelevant coded data packets from the N parallel paths, the original data packets can be successfully decoded and recovered.
1) Optimal data packet traffic allocation scheme
The flow distribution problem of the coded data packets is how to distribute the M coded data packets into N paths. Because the coded data packets on the whole path cannot be transmitted to the OLT after the distribution optical fiber, the ONU or the wireless link, etc. have a fault, the flow distribution in the N paths has differences, and the number of the data packets on each path is different, so the number of the lost coded data packets is also different. In order to ensure that the OLT can receive M linearly independent encoded data packets after a system failure, the number M of the required encoded data packets is different under different traffic allocation schemes. Meanwhile, under the condition of the same number M of encoded data packets, different traffic allocation schemes will also affect whether the OLT can successfully receive M linearly independent encoded data packets.
Therefore, the main objective of the present invention is to find the optimal flow distribution scheme to minimize the number M of encoded data packets on the basis of ensuring that the OLT can successfully decode and recover the original data packets in the case of a failure of the distribution optical fiber, the ONU and the wireless link.
Assuming that M original data packets are provided, M encoded data packets are generated after random linear network encoding, and all the encoded data packets are linearly independent. n iskRepresenting the kth parallel path, xkRepresenting parallel paths nkCoded data packet of upper transmissionAnd (4) counting. Then it is shown in formula (30).
x1+x2+…+xk+…+xN=M,1≤k≤N (30)
It is assumed that after the distribution optical fiber, the ONU or the wireless link in any path fails, all the encoded data packets transmitted on the path will be lost. Meanwhile, the number of data packets in the parallel path is arranged in an ascending order, as shown in formula (31).
0<x1≤x2≤…≤xk≤…≤xN<M,1≤k≤N (31)
According to the formula (30) and the formula (31) have
x1+x2+…+xk+…+xN=M≤N·xN(32)
Can obtain
xmax=xN≥M/N (33)
By the same token can obtain
xmin=x1≤M/N (34)
Under the condition of not considering link packet loss, when any one of the N parallel paths fails, the destination node can still decode and recover the original data, and the total number of the coded data packets transmitted in any N-1 paths is greater than or equal to m.
When the path nNAfter failure, to ensure that the destination node can decode successfully, the total number of the encoded data packets transmitted on the other N-1 links should satisfy the formula (35).
x1+x2+…+xk+…+xN-1=M-xN≥m (35)
Namely, it is
M≥m+xN≥m+M/N (36)
Thus, when x can be obtainedNWhen M/N, the number of encoded data packets M can be minimized.
In the same way, a formula (37) can be obtained, that is, when the number of the encoded data packets on each parallel path is equal, the number M of the encoded data packets is the minimum on the basis that the destination node can successfully decode and recover the original data packet after any one parallel path fails.
x1=x2=…=xk=…=xN=M/N (37)
2) Number of optimal number encoded data packets M
Let P be { P ═ P1,P2,…,PNIs a set of N parallel paths, where Pi={e1,e2… is the link set of the ith parallel path. When the packet loss of the wireless link is not considered, the total number of the coded data packets transmitted in any N-1 paths should be greater than or equal to m, and the formula (38) can be obtained according to the formula (35) and the formula (37).
Namely:
in order to reduce the network load, the minimum value of M, i.e., the minimum value of the number M of encoded data packets, is shown in equation (40).
The number of data packets transmitted on each path is equal to
Because each wireless link has a condition of packet loss (assuming that there is no packet loss in the optical fiber link), when packet loss occurs, the destination node receives fewer than m encoded data packets from N-1 paths, and thus cannot successfully decode, so that in order to enable the destination node to successfully decode after a transmission failure, the destination node should still receive at least m encoded data packets after packet loss.
The destination node should receive at least m/N-1 encoded data packets from each parallel path, and therefore, the number of encoded data packets transmitted on each parallel path must be increased for the packet loss situation on each parallel path, so that the destination node can receive at least m/N-1 encoded data packets on each parallel path.
Let EiIs path Pi={e1,e2…, the packet loss rate of the ith link is shown in formula (42) for any data packet, the probability of successful transmission to the destination node is shown.
X'iIn order to consider the number of encoded data packets transmitted on the ith path after the packet loss rate, the number of data packets successfully reaching the destination node should be greater than or equal to m/N-1, as shown in formula (43).
According to the formula (44), at least the number of the coded data packets to be transmitted on each parallel path can be obtained
The total number M of coded packets is shown in equation (45) in consideration of packet loss.
3) Performing redundant coding
The source node groups the data packets to be sent according to m data packets in each group, and respectively uses X data packets1,X2,…,XmTo represent the m original packets. From a finite field FqWherein M groups of random numbers are randomly selected to form coding coefficients, and each group comprises M random numbers to form a coding vector ai=(ξ1,ξ2,……,ξm). By Y1,Y2,…,YMRepresenting M encoded packets, where M > M.The encoding process can be expressed as shown in equation (46).
After the M coded data packets are generated, the source node transmits the M coded data packets to the destination node through the N paths. After the destination node receives the m linearly independent coded data packets, the original data packet can be recovered according to a formula (47).
Finally, it is noted that the above-mentioned preferred embodiments illustrate rather than limit the invention, and that, although the invention has been described in detail with reference to the above-mentioned preferred embodiments, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the scope of the invention as defined by the appended claims.