A kind of method and system detecting physical topology and connect
Technical field
The present invention relates to moving communicating field, particularly relate to a kind of method and system detecting physical topology and connect.
Background technology
At present, in mobile communication system, the main networking mode of remote radio pattern has 2 kinds, and one is star-like networking, and one is ring-shaped network.Along with the progress of technology, current Base Band Unit (BBU, Baseband Unit)+remote radio unit (RRU) (RRU, Remote Radio-Frequency Unit) under distributed base station, the RRU quantity connected under a BBU gets more and more, the network construction form of remote radio pattern also becomes increasingly complex, propose higher technology recognition capability thus to tester and outfield engineering construction personnel, correctly could connect equipment, also improve the job costs of test and engineering construction simultaneously.
For current day by day complicated networking application, under BBU+RRU distributed base station applied environment, the RRU and the backstage that there will be actual physics Topology connection configure inconsistent situation, and the wrong physical topology that mainly there will be following two kinds of situations connects scene:
The first, backstage is configured to star-like networking, the actual connection in foreground is ring-shaped network, as shown in Figure 1, BBU light mouth is connected to N level RRU 0 time, star-like networking should be configured to, but due to a variety of causes, by the second line of a couplet light mouth tieback of last RRUn on other light mouths of BBU, what reality was formed is ring-shaped network.
The second, backstage are configured to ring-shaped network, as shown in Fig. 2 (a) He Fig. 2 (b), the number of the RRU of backstage configuration is inconsistent with the number of the actual RRU be connected, in Fig. 2 (a), the number of the RRU of backstage configuration is greater than the number of the RRU of actual connection, and in Fig. 2 (b), the number of the RRU of backstage configuration is less than the number of the RRU of actual connection.
Some are only had to reduce the scheme of physical topology connection error probability of happening at present, not after there is physical topology connection error, detect the scheme of physical topology connection error, therefore after the RRU connected makes a mistake, the equipment of connection error can not be known in time.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and system detecting physical topology and connect, the pre-configured different abnormal conditions of the actual RRU that connects and backstage under can detecting BBU.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method detecting physical topology and connect, comprising:
Detect current networking types;
The networking types detected and pre-configured networking types inconsistent time, carry out the alarm of networking types mistake.
In said method, the current networking types of described detection is:
Under each light mouth of BBU, light outlets networking types information sequence gives the RRU connected, and transmits light mouth networking types information sequence between RRU at different levels successively, and every grade of RRU obtains self light mouth networking types information;
Every grade of RRU, according to the light mouth networking types information obtained, reports new light mouth networking types information sequence to self upper level RRU, to the new light mouth networking types information sequence that the light mouth reception RRU of light outlets networking types information sequence under RRU reports in BBU.
In said method, institute's light mouth networking types information sequence comprises: physics light message breath, physics machine frame information and physics slot information.
In said method, transmit light mouth networking types information sequence between described RRU at different levels successively, the light mouth networking types information that every grade of RRU obtains self is:
Described light mouth networking types information sequence transmits successively between multistage RRU, after every grade of RRU receives the light mouth networking types information sequence that upper level RRU issues, described light mouth networking types information sequence is resolved, from described light mouth networking types information sequence, obtain the light mouth networking types information of self, and the light mouth networking types information sequence received is handed down to the next stage RRU of self.
In said method, described every grade of RRU, according to the light mouth networking types information obtained, reports new light mouth networking types information sequence to be to self upper level RRU:
Every grade of RRU by the light mouth networking types information reporting of self that obtains to the upper level RRU of self;
The light mouth networking types information of the next stage RRU received and the light mouth networking types information of self combine by every grade of RRU, form new light mouth networking types information sequence, and report the upper level RRU of self.
In said method, described in the networking types that detects and pre-configured networking types inconsistent time, the alarm carrying out networking types mistake is:
After the light mouth of BBU receives new light mouth networking types information sequence from the RRU connected, the light mouth networking types information in newer light mouth networking types information sequence and the information in the light mouth networking types information sequence issued;
When comparative result is inconsistent, then the RRU mounted under detecting described light mouth forms ring-shaped network;
When described pre-configured networking types is not ring-shaped network, then the networking types detected and pre-configured networking types inconsistent, carried out the alarm of networking types mistake by graphical interfaces.
In said method, the method also comprises:
When the networking types detected is ring-shaped network, detect the number of the RRU that BBU connects;
The number of the RRU detected and the number of pre-configured RRU inconsistent time, carry out the alarm of RRU number exception.
In said method, the number of the RRU that described detection BBU connects is:
RRU index information RRU-Index is transmitted between multistage RRU; On down direction, the RRU-Index parsed is added the RRU passing to self next stage after 1 by every grade of RRU, and on up direction, the RRU-Index parsed is subtracted the RRU passing to self upper level after 1 by every grade of RRU;
Wherein, on down direction, the value of RRU-Index is from 0, and on up direction, the value of RRU-Index is from N, and the sum that N equals the RRU that BBU connects in ring-shaped network subtracts 1.
In said method, described in the number of the number of RRU that detects and pre-configured RRU inconsistent time, the alarm carrying out RRU number exception is:
When the value of the RRU-Index that the main light port of BBU receives is greater than 0, under representing main light port, the number of the actual RRU connected is less than the number of pre-configured RRU, then the number of the RRU detected and the number of pre-configured RRU inconsistent; When the value of RRU-Index received from light mouth of BBU is less than 0, represent that the number of the actual RRU connected from light mouth is greater than the number of pre-configured RRU, then the number of the RRU detected and the number of pre-configured RRU inconsistent;
The number of the RRU detected and the number of pre-configured RRU inconsistent time, carried out the alarm of RRU number exception by graphical interfaces.
In said method, the method also comprises:
BBU, according to the value of RRU-Index received and the value of pre-configured RRU-Index, calculates the number of the RRU connect or connect less more.
The present invention also provides a kind of system detecting physical topology and connect, and comprising: detecting unit, Alarm Unit; Wherein,
Detecting unit, for detecting current networking types;
Alarm Unit, the networking types detected for detecting unit and pre-configured networking types inconsistent time, carry out the alarm of networking types mistake.
In said system,
Described detecting unit, when the networking types also for detecting is ring-shaped network, detects the number of the RRU that BBU connects;
Described Alarm Unit, the number of the RRU also detected for detecting unit and the number of pre-configured RRU inconsistent time, carry out the alarm of RRU number exception.
The method and system that detection physical topology provided by the invention connects, detect current networking types; The networking types detected and pre-configured networking types inconsistent time, carry out the alarm of networking types mistake, the different abnormal conditions that the actual RRU that connects and backstage are pre-configured under BBU can be detected, thus after there are abnormal conditions, make tester or engineering construction personnel can locate abnormal conditions rapidly, increase work efficiency and human cost.
Accompanying drawing explanation
Fig. 1 is that in prior art, networking model is the schematic diagram of ring-shaped network;
Fig. 2 is the schematic diagram of the number of the RRU of backstage configuration in the prior art ring-shaped network inconsistent with the number of the actual RRU be connected;
Fig. 3 is the schematic flow sheet that the present invention realizes detecting the method that physical topology connects;
Fig. 4 is the schematic diagram transmitting RRU index information in the present invention between multistage RRU;
Fig. 5 is the networking schematic diagram that the present invention realizes the embodiment one detecting the method that physical topology connects;
Fig. 6 is the networking schematic diagram that the present invention realizes the embodiment two detecting the method that physical topology connects;
Fig. 7 is the networking schematic diagram that the present invention realizes the embodiment three detecting the method that physical topology connects;
Fig. 8 is the structural representation that the present invention realizes detecting the system that physical topology connects.
Embodiment
Basic thought of the present invention is: detect current networking types; The networking types detected and pre-configured networking types inconsistent time, carry out the alarm of networking types mistake.
Below by drawings and the specific embodiments, the present invention is described in further detail again.
The invention provides a kind of method detecting physical topology and connect, Fig. 3 is the schematic flow sheet that the present invention realizes detecting the method that physical topology connects, and as shown in Fig. 3 (a), the method comprises the following steps:
Step 301, detects current networking types;
Concrete, first, under each light mouth of BBU, light outlets networking types information sequence gives the RRU connected, light mouth networking types information sequence is transmitted successively between RRU at different levels, every grade of RRU obtains self light mouth networking types information, be specially: each light mouth of BBU passes through the control field of Lower level logical link, light outlets networking types information sequence under the one-level RRU be connected with self; Wherein, inclusion Ricoh message breath, physics machine frame information and physics slot information in light mouth networking types information sequence; A BBU has multiple light mouth, a BBU is positioned at a machine frame, a BBU comprises multiple veneer, physics light message breath refers to the light slogan of the light mouth sending light mouth networking types information sequence, physics machine frame information refers to the information of the machine frame at this BBU place, and physics slot information refers to the slot numbering of the Guang Kou place veneer of BBU; In the present invention, the light mouth networking types information sequence that a light mouth of a BBU issues is unique; After the one-level RRU be connected with the light mouth of BBU receives the light mouth networking types information sequence issued, this light mouth networking types information sequence is resolved, from light mouth networking types information sequence, obtain the light mouth networking types information of self, then the light mouth networking types information sequence received is handed down to the next stage RRU of self; In like manner, after next stage RRU receives light mouth networking types information sequence from the upper level RRU of self, the light mouth networking types information of self is obtained from this light mouth networking types information sequence, then the light mouth networking types information sequence received is handed down to the next stage RRU of self, by that analogy, finally this light mouth networking types information sequence can arrive the light mouth be connected with afterbody RRU in BBU;
Then, every grade of RRU is according to the light mouth networking types information obtained, new light mouth networking types information sequence is reported to self upper level RRU, to the light mouth of light outlets networking types information sequence under RRU in BBU, receive the new light mouth networking types information sequence that RRU reports, be specially: afterbody RRU by the light mouth networking types information reporting of self that obtains to self upper level RRU, the light mouth networking types information of the next stage RRU received and the light mouth networking types information of self combine by this RRU, form new light mouth networking types information sequence, this new light mouth networking types information sequence is reported the upper level RRU of self, the light mouth networking types information that self gets by this RRU, add in the new light mouth networking types information sequence received, new light mouth networking types information sequence after interpolation is reported the upper level RRU of self, by that analogy, to the light mouth of light outlets networking types information sequence under RRU in last BBU, receive the new light mouth networking types information sequence that the one-level RRU that is connected with self reports.
Step 302, the networking types detected and pre-configured networking types inconsistent time, carry out the alarm of networking types mistake;
Concrete, after the light mouth of BBU receives new light mouth networking types information sequence from the RRU connected, BBU resolves new light mouth networking types information sequence, obtain the light mouth networking types information of multiple RRU, by the light mouth networking types information of multiple RRU obtained, the information be handed down in the light mouth networking types information sequence of RRU with this light mouth compares;
If comparative result is inconsistent, then the RRU that mounts under detecting this light mouth forms ring-shaped network, then judges whether the pre-configured networking types of this light mouth is ring-shaped network; If pre-configured networking types is ring-shaped network, then the networking types detected is consistent with pre-configured networking types, and networking types is normal, does not need to carry out alarm; If pre-configured networking types is not ring-shaped network, the networking types then detected and pre-configured networking types inconsistent, the RRU of illegal connection is there is in the RRU connected under representing this light mouth, cause networking types mistake, need the alarm being carried out networking types mistake by graphical interfaces, prompting tester and outfield engineering construction personnel networking types mistake, facilitate tester and outfield engineering construction personnel to repair in time;
If comparative result is consistent, then the RRU connected under detecting this light mouth both may form ring-shaped network, also may form star-like networking, then think that networking types is normal, do not need to carry out alarm.
Further, as shown in Fig. 3 (b), after step 302, the method can also comprise:
Step 303, when the networking types detected is ring-shaped network, detects the number of the RRU that BBU connects;
Concrete, networking types current under detecting remote radio pattern is after ring-shaped network, the number of the RRU of the actual connection of BBU can also be detected further, as shown in Figure 4, RRU index information (RRU-Index) is transmitted between multistage RRU, this RRU-Index refers to the call number of RRU, the RRU be connected with the main light port of BBU sends RRU-Index to next stage RRU, next stage RRU parses RRU-Index from link, using the RRU-Index of this RRU-Index as self, on down direction, the RRU-Index parsed is added the RRU passing to self next stage after 1 by this RRU, on up direction, the RRU-Index parsed is subtracted the RRU passing to self upper level after 1 by this RRU, wherein, down direction refers to the direction from light mouth of the main light port-multistage RRU-BBU of BBU, up direction refers to the direction of the main light port from Guang Kou-multistage RRU-BBU of BBU, on down direction, the value of RRU-Index is from 0, on up direction, the value of RRU-Index is from N, the sum that N equals the RRU that BBU connects in ring-shaped network subtracts 1, according to above-mentioned rule, can guarantee that on ring-shaped network, same RRU RRU-Index is in the two directions unique.
Step 304, the number of the RRU detected and the number of pre-configured RRU inconsistent time, carry out the alarm of RRU number exception;
Concrete, the number of the RRU that BBU connects under judging this light mouth according to the RRU-Index that light mouth receives, for the main light port of BBU, when the value of the RRU-Index received is greater than 0, represent that the number of the actual RRU connected under main light port is less than the number of the pre-configured RRU in backstage, then the number of the RRU detected and the number of pre-configured RRU inconsistent; For BBU from Guang Kou, when the value of RRU-Index received is less than 0, represent that the number of the actual RRU connected from light mouth is greater than the number of the pre-configured RRU in backstage, then the number of the RRU detected and the number of pre-configured RRU inconsistent; Only have when the main light port of BBU or the value of RRU-Index that receives from Guang Kou equal 0, under just representing light mouth, the number of the RRU that the number of the actual RRU connected is pre-configured with backstage conforms to;
The number of the RRU detected and the number of pre-configured RRU inconsistent time, namely exist and connect abnormal RRU, need the alarm being carried out RRU number exception by graphical interfaces, prompting tester is abnormal with the number of the RRU be connected under the engineering construction personnel BBU of outfield, facilitates tester and outfield engineering construction personnel to repair in time;
In addition, BBU according to the value of the value of RRU-Index received and the pre-configured RRU-Index in backstage, can also calculate the number of the RRU connect or connect less more, the number calculated is supplied to tester and outfield engineering construction personnel by graphical interfaces.
Embodiment one
Fig. 5 is the networking schematic diagram that the present invention realizes the embodiment one detecting the method that physical topology connects, in the present embodiment, the networking types of backstage configuration is star-like networking, as shown in Figure 5, in the present embodiment, RRU under the light mouth of BBU is connected to form ring-shaped network, the main light port of BBU and physics light message breath can be parsed from the light mouth networking types information sequence received from light mouth, but not the physics light message breath of light mouth self, therefore, can detect that the RRU that the light mouth of BBU connects circularizes connection, form ring-shaped network, the networking types configured with backstage is inconsistent.
Embodiment two
Fig. 6 is the networking schematic diagram that the present invention realizes the embodiment two detecting the method that physical topology connects, in the present embodiment, the networking types of backstage configuration is ring-shaped network, and BBU mounts 6 RRU, as shown in Figure 6, the value that the main light port of BBU is handed down to the RRU-Index of RRU0 is 0, the value being handed down to the RRU-Index of RRU5 from Guang Kou is 5, according to the delivery rules of RRU to RRU-Index, being delivered to from main light port makes a slip of the tongue journey from light, the value of RRU-Index increases progressively, therefore at the afterbody RRU5 that main light port connects, the RRU-Index received from light mouth from RRU5 is 6, in like manner, be delivered to the process of main light port from light oral instructions, the value of RRU-Index is successively decreased, main light port is-1 from the RRU-Index that RRU0 receives, therefore, for main light port with from light mouth, the value of the RRU-Index issued and the RRU-Index of reception is inconsistent, the number abnormal data of the RRU connected can be obtained further, namely can show that the number of the RRU of actual connection is greater than the number of the RRU of backstage configuration, multi-link RRU number is 6-5=1.
Embodiment three
Fig. 7 is the networking schematic diagram that the present invention realizes the embodiment three detecting the method that physical topology connects, in the present embodiment, the networking types of backstage configuration is ring-shaped network, and BBU mounts 6 RRU, as shown in Figure 7, the value that the main light port of BBU is handed down to the RRU-Index of RRU0 is 0, the value being handed down to the RRU-Index of RRU5 from Guang Kou is 5, according to the delivery rules of RRU to RRU-Index, being delivered to from main light port makes a slip of the tongue journey from light, the value of RRU-Index increases progressively, therefore at the afterbody RRU5 that main light port connects, the RRU-Index received from light mouth from RRU5 is 4, in like manner, be delivered to the process of main light port from light oral instructions, the value of RRU-Index is successively decreased, main light port is 1 from the RRU-Index that RRU0 receives, therefore, for main light port with from light mouth, the value of the RRU-Index issued and the RRU-Index of reception is inconsistent, the number abnormal data of the RRU connected can be obtained further, namely can show that the number of the RRU of actual connection is less than the number of the RRU of backstage configuration, few RRU number connected is 5-4=1.
For realizing said method, the present invention also provides a kind of system detecting physical topology and connect, and this system is arranged in BBU, and Fig. 8 is the structural representation that the present invention realizes detecting the system that physical topology connects, as shown in Figure 8, this system comprises: detecting unit 80, Alarm Unit 81; Wherein,
Detecting unit 80, for detecting current networking types;
Alarm Unit 81, the networking types detected for detecting unit 80 and pre-configured networking types inconsistent time, carry out the alarm of networking types mistake.
Described detecting unit 80, when the networking types also for detecting is ring-shaped network, detects the number of the RRU that BBU connects;
Described Alarm Unit 81, the number of the RRU also detected for detecting unit 80 and the number of pre-configured RRU inconsistent time, carry out the alarm of RRU number exception.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention, and all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.