Download Multi-Protocol Correlation: Data Record Analyses and Correlator
Transcript
CHAPTER 3. PROPOSED SOLUTION Figure 3.19 illustrates a vertical insertion. Here A, B, C and D are correlated xDRs as a group and located under the same vertical list. Algorithm decides that the new xDR E needs to be correlated with that group and is inserted in this vertical list. The list is time ordered, so it is important where the xDR are inserted. During the insertion of a new xDR, the algorithm starts to compare the timestamps of the new xDR and the last xDR in the list. If the new xDRs timestamp is bigger than the other one, new xDR is inserted to the end of the list, otherwise algorithm checks the new xDRs timestamp with the previous one in the list and so on. If the new xDRs timestamp is smaller than all xDRs in the list, then the new xDR is inserted in the top of the list. Thus, the time order is ensured as the xDR that has the smallest time stamp is in the top of the list and the one which has the biggest timestamp is located in the bottom of the list and it is always updated for every new insertion. In the figure above, the new xDR E is inserted between B and C. So the timestamp of E is smaller than timestamp C and bigger than timestamp B. insertXDRHorizontal() The way the main algorithm works, all new xDRs needs to be inserted to the main list. insertXDRHorizontal() is called when a new xDR does not have any match with any of xDRs in the correlation range. Depending on the incoming xDRs, this xDR might be a xDR which could not be correlated, or the first xDR of a group in which the remaining xDRs has not been received or not been processed by the algorithm yet. This function basically creates a new xDR branch/vertical list for the new algorithm and inserts the new xDR into it. It scans the horizontal list within the range and inserts the new list to the main list in where it belongs to in regards to its timestamp. There is no global time in real networks so there is no guarantee to receive xDRs sequentially based on time. Additionally, normal network delay to and from monitoring probes can also cause the ordering to be different. So it is important to make the insertion by the timestamp value and keep the list ordered by time. 67