Summary of the invention
The present invention provides the activating method and device of a kind of private line service, solves the time-consuming when opening private line service and consumes
Power, and the problem of waste fiber bandwidth resource.
In order to achieve the above objectives, the present invention adopts the following technical scheme:
In a first aspect, the present invention provides a kind of activating method of private line service, this method may include: obtain both ends the
The classification of one access layer equipment and the second access layer equipment and both ends private line service to be opened;Determine that the first core layer is set
Standby and the second core layer equipment, the first core layer equipment is corresponding with the first access layer equipment, and the second core layer equipment connects with second
It is corresponding to enter layer equipment;According to the hop count of each path, bandwidth benefit between the first core layer equipment and the second core layer equipment
With rate and overhead value, corresponding path quality is determined;Determine the failure rate of each path;According to the path quality and failure in path
The classification of rate and private line service, determines destination path;Respectively to the first core layer equipment, the second core layer equipment and target
Path via equipment send routing iinformation, routing iinformation be used for private line service transmission.
With reference to first aspect, in one possible implementation, determine that the first core layer equipment and the second core layer are set
It is standby, it specifically may include: the mark that the first access layer equipment is sent to the first platform of the first access layer equipment of management, so as to
First platform selects the first core layer equipment according to the mark of the first access layer equipment, and the first platform also manages the first core layer and sets
It is standby;The mark of the second access layer equipment is sent, to the second platform of the second access layer equipment of management so that the second platform is according to the
The mark of two access layer equipments selects the second core layer equipment, and the second platform also manages the second core layer equipment;It is flat to receive first
The mark for the first core layer equipment that platform is sent;Receive the mark of the second core layer equipment of the second platform transmission.
With reference to first aspect with above-mentioned possible implementation, in alternatively possible implementation, according to the first core
The hop count, bandwidth availability ratio and overhead value of each path between central layer equipment and the second core layer equipment determine corresponding
Path quality, specifically may include: the hop count of determining first path, and first path is the first core layer equipment and second
Any one between core layer equipment in all paths;The corresponding bandwidth availability ratio of each equipment that first path is passed through
In, maximum bandwidth availability ratio is determined as the bandwidth availability ratio of first path;Using formula:Really
Determine the path quality scoring q of first path;Wherein, r is the hop count of first path, and R is the first core layer equipment and second
In the hop count of each path between core layer equipment, maximum hop count, b is the bandwidth availability ratio of first path, c
Overhead value for the first path prestored, each path of the C between the first core layer equipment and the second core layer equipment are opened
In pin value, maximum overhead value.
Every road is determined in alternatively possible implementation with above-mentioned possible implementation with reference to first aspect
The failure rate of diameter specifically may include: determining first path via equipment in, the failure rate of each equipment, and determine the
One path via equipment between link in, the failure rate of each of the links;According to the failure rate and each of the links of each equipment
Failure rate, determine the failure rate of first path.
With reference to first aspect with above-mentioned possible implementation, in alternatively possible implementation, according to path
The classification of path quality and failure rate and private line service, determines destination path, specifically may include: according to private line service
Classification determines the grade of private line service;By in all paths between the first core layer equipment and the second core layer equipment, failure
The path that rate is less than or equal to preset failure rate is determined as path candidate;Preset failure rate is corresponding with the grade of private line service;It will
In path candidate, the smallest path of path quality scoring is determined as destination path.
Second aspect, what the present invention provided a kind of private line service opens device, and the device of opening of the private line service can wrap
It includes: acquiring unit, determination unit and transmission unit.Wherein, acquiring unit, for obtaining first access layer equipment and at both ends
The classification of two access layer equipments and both ends private line service to be opened.Determination unit, for determine the first core layer equipment and
Second core layer equipment, the first core layer equipment is corresponding with the first access layer equipment, the second core layer equipment and the second access layer
Equipment is corresponding;According to the hop count, bandwidth availability ratio of each path between the first core layer equipment and the second core layer equipment
And overhead value, determine corresponding path quality;Determine the failure rate of each path;According to the path quality in path and failure rate with
And the classification of private line service, determine destination path.Transmission unit, for being set respectively to the first core layer equipment, the second core layer
Standby and destination path via equipment send routing iinformation, routing iinformation be used for private line service transmission.
In conjunction with second aspect, in one possible implementation, determination unit is specifically used for: accessing to management first
First platform of layer equipment sends the mark of the first access layer equipment, so that the first platform is according to the mark of the first access layer equipment
The first core layer equipment is selected, the first platform also manages the first core layer equipment;Second to the second access layer equipment of management is flat
Platform sends the mark of the second access layer equipment, so that the second platform selects the second core layer according to the mark of the second access layer equipment
Equipment, the second platform also manage the second core layer equipment;Receive the mark of the first core layer equipment of the first platform transmission;It receives
The mark for the second core layer equipment that second platform is sent.
In conjunction with second aspect and above-mentioned possible implementation, in alternatively possible implementation, determination unit, tool
Body is used for: determining the hop count of first path, first path institute between the first core layer equipment and the second core layer equipment
There is any one in path;In the corresponding bandwidth availability ratio of each equipment that first path is passed through, maximum bandwidth usage
Rate is determined as the bandwidth availability ratio of first path;Using formula:Determine the path matter of first path
Amount scoring q;Wherein, r is the hop count of first path, and R is every between the first core layer equipment and the second core layer equipment
In the hop count of paths, maximum hop count, b is the bandwidth availability ratio of first path, and c is the first path prestored
Overhead value, in the overhead value of each path of the C between the first core layer equipment and the second core layer equipment, maximum expense
Value.
In conjunction with second aspect and above-mentioned possible implementation, in alternatively possible implementation, determination unit, tool
Body is used for: determine first path via equipment in, the failure rate of each equipment, and determine first path via equipment between
Link in, the failure rate of each of the links;According to the failure rate of the failure rate of each equipment and each of the links, first path is determined
Failure rate.
In conjunction with second aspect and above-mentioned possible implementation, in alternatively possible implementation, determination unit, tool
Body is used for: the grade of private line service is determined according to the classification of private line service;By the first core layer equipment and the second core layer equipment
Between all paths in, failure rate be less than or equal to preset failure rate path be determined as path candidate;Preset failure rate with
The grade of private line service is corresponding;By in path candidate, the smallest path of path quality scoring is determined as destination path.
The special line industry that concrete implementation mode can be provided with reference to the possible implementation of first aspect or first aspect
The behavioral function for opening device of private line service in the activating method of business.
The third aspect, provide a kind of private line service opens device, and the device of opening of the private line service includes: at least one
Processor, memory, communication interface and communication bus.Processor is connect with memory, communication interface by communication bus, storage
Device is for storing computer executed instructions, and when private line service is when opening device operation, processor executes the meter of memory storage
Calculation machine executes instruction, so that the device of opening of private line service is executed as in the possible implementation of first aspect or first aspect
The activating method of the private line service of any one.
Fourth aspect provides a kind of computer storage medium, is stored thereon with computer executed instructions, when computer executes
Instruct private line service open run on device when so that the device of opening of private line service is executed such as first aspect or first party
The activating method of the private line service of any one of the possible implementation in face.
The activating method of private line service provided by the invention determines corresponding after getting the access layer equipment at both ends
Core layer equipment, and according to the path quality and failure rate in path, determine destination path optimal between two core layer equipments,
And routing iinformation is issued, to realize the open-minded of the private line service at both ends, time-consuming consumes when solving direct-connected optical fiber in the prior art
The problem of power, waste fiber bandwidth resource.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is that one kind provided in an embodiment of the present invention can simplify signal using the system architecture of the embodiment of the present invention
Figure, as shown in Figure 1, open device 11, the first platform 12, the second platform 13, first that the framework may include: private line service pass
Defeated net 14, the second transmission network 15 and backbone network 16.Wherein, the first transmission network 14 may include: the first access layer equipment 141,
One convergence layer equipment 142 and the first core layer equipment 143.Second transmission network 15 may include: the second access layer equipment 151,
Two convergence layer equipment 152 and the second core layer equipment 153.
Wherein, the device 11 of opening of private line service is accessed in the terminal device for getting private line service to be opened, i.e., first
After layer equipment 141 and the second access layer equipment 151, the mark of the first access layer equipment 141 can be sent to the first platform 12, the
One platform 12 can select first convergence layer equipment 142 corresponding with the first access layer equipment 141, to obtain corresponding
One core layer equipment 143, and to private line service open device 11 send the first core layer equipment 143 mark.Private line service
Device 11 of opening just obtain the first core layer equipment 143, similarly, can also obtain the second core layer equipment from the second platform 13
153.In this way, private line service open device 11 can select the first core layer equipment 143 and the second core layer equipment 153 it
Between destination path, and to the first core layer equipment 143, the second core layer equipment 153 and destination path via equipment send out
Routing iinformation is sent, to prepare for the transmission of private line service.
Private line service opens device 11, can be network arrangements device in concrete implementation.
First platform 12, for managing network element device and business in the first transmission network 14.First transmission network 14 uses
Layered structure is divided into: core layer, convergence layer and access layer, and every layer includes multiple equipment, for carrying the first access layer equipment
The 141 locating in one's duty private line services of province.
Second platform 13, for managing network element device and business in the second transmission network 15.Second transmission network 15, is also wrapped
Core layer, convergence layer and access layer are included, for carrying the locating in one's duty private line service of province of the second access layer equipment 151.
Backbone network 16 is whole nation interconnection, the carrying of private line service transprovincially may be implemented.
Fig. 2 is a kind of composition schematic diagram for opening device of private line service provided in an embodiment of the present invention, as shown in Fig. 2,
The device of opening of the private line service may include: at least one processor 21, memory 22, communication interface 23 and communication bus
24。
It is specifically introduced below with reference to each component parts of opening device of the Fig. 2 to private line service:
Wherein, processor 21 is the control centre for opening device of private line service, can be a processor, is also possible to
The general designation of multiple processing elements.For example, processor 21 be a central processing unit (Central Processing Unit,
CPU), it is also possible to specific integrated circuit (Application Specific Integrated Circuit, ASIC), or
It is arranged to implement one or more integrated circuits of the embodiment of the present invention, such as: one or more digital signal processors
(Digital Signal Processor, DSP), or, one or more field programmable gate array (Field
Programmable Gate Array, FPGA).
In concrete implementation, as one embodiment, processor 21 may include one or more CPU, such as in Fig. 2
Shown in CPU0 and CPU1.And as one embodiment, the device of opening of private line service may include multiple processors, such as
Processor 21 and processor 25 shown in Fig. 2.Each of these processors can be a single core processor
(Single-CPU), it is also possible to a multi-core processor (Multi-CPU).Here processor can refer to that one or more is set
Standby, circuit, and/or processing core for handling data (such as computer program instructions).
Memory 22 can be read-only memory (Read-Only Memory, ROM) or can store static information and instruction
Other kinds of static storage device, random access memory (Random Access Memory, RAM) or letter can be stored
The other kinds of dynamic memory of breath and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically
Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-
Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal
Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to
Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this.
Memory 22, which can be, to be individually present, and is connected by communication bus 24 with processor 21.Memory 22 can also and processor
21 integrate.
In concrete implementation, memory 22, for storing the data in the present invention and executing software program of the invention.
Processor 21 can be by running or execute the software program being stored in memory 22, and calls and be stored in memory 22
Data, execute the various functions of opening device of private line service.
Communication interface 23, using the device of any transceiver one kind, for other equipment or communication, such as nothing
Line access (Radio Access Network, RAN), WLAN (Wireless Local Area Networks,
WLAN), the first platform, second platform etc..Communication interface 23 may include that receiving unit realizes receive capabilities and transmission unit
Realize sending function.
Communication bus 24 can be industry standard architecture (Industry Standard Architecture, ISA)
Bus, external equipment interconnection (Peripheral Component Interconnect, PCI) bus or extension industrial standard body
Architecture (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address
Bus, data/address bus, control bus etc..Only to be indicated with a thick line in Fig. 2, it is not intended that only one convenient for indicating
Bus or a type of bus.
In order to which fiber bandwidth resource is solved the problem of to take time and effort and wasted when opening private line service, the present invention is implemented
Example provides a kind of activating method of private line service, as shown in figure 3, this method may include:
301, the first access layer equipment and the second access layer equipment and two opening device and obtain both ends of private line service
Hold the classification of private line service to be opened.
Wherein, when opening private line service between two cities needed transprovincially, user can opening in private line service
The access layer equipment in two cities, i.e. the first access layer equipment and the second access layer equipment are inputted on exchange device, and are inputted wait open
The information of logical private line service, in this way, private line service open device can obtain the first access layer equipment and second access
The classification of layer equipment and both ends private line service to be opened.
302, the mark of private line service opened device and send the first access layer equipment to the first platform.
Wherein, private line service opens device after obtaining the first access layer equipment, can be to managing first access
First platform of layer equipment sends the mark of the first access layer equipment, and the configuration information of private line service to be opened.
303, the first platform receives the mark of the first access layer equipment for opening device transmission of private line service.
304, the mark opening device send first core layer equipment of first platform to private line service.
Wherein, the first platform, can be according to the nearest routing prestored after the mark for receiving the first access layer equipment
Principle, selection and convergence layer equipment similar in the first access layer equipment in the transmission network of the first platform management, and then select
Corresponding first core layer equipment, to determine private line service in the in one's duty transmission route of the corresponding province of the first platform, and to special line
The mark of business opened device and send the first core layer equipment selected.And first platform receiving matching for private line service
After confidence breath, the configuration information of the private line service can be sent, to the first access layer equipment so as to the first access layer equipment root
It is configured according to the configuration information of the private line service, is prepared for the transmission of private line service.
305, the mark of private line service opened device and receive the first core layer equipment that the first platform is sent.
306, the mark of private line service opened device and send the second access layer equipment to the second platform.
307, the second platform receives the mark of the second access layer equipment for opening device transmission of private line service.
308, the mark opening device send second core layer equipment of second platform to private line service.
309, the mark of private line service opened device and receive the second core layer equipment that the second platform is sent.
Wherein, private line service opens device after determining the first core layer equipment and the second core layer equipment, can
To select the satisfactory path between the first core layer equipment and the second core layer equipment, following step can be specifically executed
Rapid 310- step 312:
310, private line service opens device according to each path between the first core layer equipment and the second core layer equipment
Hop count, bandwidth availability ratio and overhead value, determine corresponding path quality.
Wherein, if having N paths from the first core layer equipment to the second core layer equipment, then private line service is open-minded
Device can determine the path quality of each path in N paths, in embodiments of the present invention, any one in N item to determine
Paths, as first path path quality for be illustrated.
Specifically, private line service opens device and can first determine that the hop count of first path, the hop count are equal to
First path via number of devices.Then according to real-time resource data, determine first path via each equipment it is corresponding
Bandwidth availability ratio, and by these bandwidth availability ratios, maximum bandwidth availability ratio is determined as the bandwidth availability ratio of first path.
Finally, private line service opens device and can use following formula:Determine the road of first path
Path quality scoring q.Wherein, r is the hop count of first path;R is maximum in the hop count of each path of N paths
Hop count;B is the bandwidth availability ratio of first path;C is the overhead value of the first path prestored, and C is every of N paths
In the overhead value in path, maximum overhead value.
It, the case where path quality scoring q may indicate that path quality, should it should be noted that in embodiments of the present invention
The q that scores is smaller, shows that path quality is better.
311, the failure rate of private line service opened device and determine each path.
Wherein, private line service opens device and can determine N item from the first core layer equipment to the second core layer equipment
The failure rate of each path in path, is illustrated by taking the failure rate for determining first path as an example.
Specifically, private line service open device can according to previous fault data, determine first path via set
In standby, the failure rate of each equipment, and determine first path via equipment between link in, the failure rate of each of the links.
And the failure rate of first path can be determined according to the failure rate of each equipment and the failure rate of each of the links.
It should be noted that in embodiments of the present invention, the case where failure rate may indicate that the service quality in path, failure
Rate is smaller, shows that the service quality in path is better.
Illustratively, it is assumed that the first core layer equipment is M1, the second core layer equipment is M2, from M1 to M2
First path via three equipment, respectively equipment D, E, F, there are both links, respectively link 1 between equipment D, E, F
With link 2, in this way, private line service opens device and can determine failure rate d1, d2, d3 of equipment D, E, F respectively, and true respectively
Determine failure rate t1, t2 of both links, and use formula: p=1- (1-d1) (1-d2) (1-d3) (1-t1) (1-t2), determines the
The failure rate p in one path.
312, private line service opens device according to the path quality and failure rate in path and the classification of private line service, really
Set the goal path.
Wherein, the device of opening of private line service is determining the N item from the first core layer equipment to the second core layer equipment
In path after the path quality scoring and failure rate of each path, private line service first can be determined according to the classification of private line service
Grade, the requirement of the private line service of each grade to the service quality in path is different, and each grade can correspond to one it is default
Failure rate, the preset failure rate are failure rate maximum allowable under respective level.Then the device of opening of private line service can be by N
In paths, the path that failure rate is less than or equal to the corresponding preset failure rate of grade of private line service is determined as path candidate,
And by path candidate, the smallest path of path quality scoring is determined as destination path.
It should be noted that in embodiments of the present invention, the corresponding pass of the grade of the classification and private line service of private line service
System can be pre-stored in the opening in device of private line service.And the corresponding preset failure rate of grade of different private line services can lead to
It crosses and previous business is analyzed to obtain, and be stored in the opening in device of private line service.
313, private line service opens device respectively to the first core layer equipment, the second core layer equipment and destination path
Via equipment send routing iinformation.
Wherein, routing iinformation is used for the transmission of private line service.
The activating method of private line service provided by the invention determines corresponding after getting the access layer equipment at both ends
Core layer equipment, and according to the path quality and failure rate in path, determine destination path optimal between two core layer equipments,
And routing iinformation is issued, to realize the open-minded of the private line service at both ends, time-consuming consumes when solving direct-connected optical fiber in the prior art
The problem of power, waste fiber bandwidth resource.
It is above-mentioned that mainly scheme provided in an embodiment of the present invention is described from the angle of each equipment interaction.It can manage
Solution, each equipment open device in order to realize the above functions such as private line service, and it comprises executing, each function is corresponding
Hardware configuration and/or software module.Those skilled in the art should be readily appreciated that, in conjunction with implementation disclosed herein
Each exemplary algorithm steps of example description, the present invention can be realized with the combining form of hardware or hardware and computer software.
Some function is executed in a manner of hardware or computer software driving hardware actually, specific application depending on technical solution
And design constraint.Professional technician can realize described function using distinct methods to each specific application
Can, but such implementation should not be considered as beyond the scope of the present invention.
The embodiment of the present invention can carry out drawing for functional module according to open device of the above method example to private line service
Point, for example, each functional module of each function division can be corresponded to, two or more functions can also be integrated in one
In a processing module.Above-mentioned integrated module both can take the form of hardware realization, can also be using software function module
Form is realized.It should be noted that being schematical, only a kind of logic function to the division of module in the embodiment of the present invention
It divides, there may be another division manner in actual implementation.
In the case where each function division of use correspondence each functional module, Fig. 5 is shown involved in above-described embodiment
Private line service the alternatively possible composition schematic diagram for opening device, as shown in figure 5, the device of opening of the private line service can
To include: acquiring unit 41, determination unit 42 and transmission unit 43.
Wherein, acquiring unit 41, for supporting the device of opening of private line service to execute the open-minded of private line service shown in Fig. 3
Step 301 in method.
Determination unit 42, for supporting the activating method of private line service opened device and execute private line service shown in Fig. 3
In step 310, step 311, step 312.
Transmission unit 43, for supporting the activating method of private line service opened device and execute private line service shown in Fig. 3
In step 302, step 306, step 313.
It should be noted that all related contents for each step that above method embodiment is related to can quote correspondence
The function of functional module describes, and details are not described herein.
Private line service provided in an embodiment of the present invention opens device, for executing the activating method of above-mentioned private line service,
Therefore it can achieve effect identical with the activating method of above-mentioned private line service.
Using integrated unit, Fig. 6 shows the open-minded of private line service involved in above-described embodiment
The alternatively possible composition schematic diagram of device.As shown in fig. 6, the device of opening of the private line service includes: processing module 51, leads to
Believe module 52 and memory module 53.
Processing module 51 is for carrying out control management to the movement for opening device of private line service, for example, processing module 51
For supporting the device of opening of private line service to execute step 301, step 310, step 311, step 312 in Fig. 3, and/or use
In other processes of techniques described herein.Communication module 52 be used to support private line service to open device and other networks real
Body, such as communication of the first platform, the second platform.For example, communication module 52, device execution figure is opened for support private line service
Step 302, step 306, step 313 in 3.Memory module 53, for storing the program code for opening device of private line service
And data.
Wherein, processing module 51 can be the processor in Fig. 2.It, which may be implemented or executes, combines the disclosure of invention
Described various illustrative logic blocks, module and circuit.Processor is also possible to realize the combination of computing function, such as
It is combined comprising one or more microprocessors, digital signal processor (Digital Signal Processor, DSP) and micro- place
Manage the combination etc. of device.Communication module 52 can be the communication interface in Fig. 2.Memory module 53 can be the memory in Fig. 2.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description
It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can according to need and will be upper
It states function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete
All or part of function described above.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the module or unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It may be combined or can be integrated into another device, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown can be a physical unit or multiple physical units, it can and it is in one place, or may be distributed over
Multiple and different places.Some or all of unit therein can be selected to realize this embodiment scheme according to the actual needs
Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a read/write memory medium.Based on this understanding, the technical solution of the embodiment of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that an equipment (can be list
Piece machine, chip etc.) or processor (processor) perform all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Change or replacement in the technical scope disclosed by the present invention, should be covered by the protection scope of the present invention.Therefore, this hair
Bright protection scope should be based on the protection scope of the described claims.