The content of the invention
A kind of business data transmission management method and device are provided in the embodiment of the present invention, business datum can be improved
Efficiency of transmission.
In a first aspect, the embodiment of the present invention provides a kind of business data transmission management method, including:
The data traffic of at least one business is monitored, wherein, each described business corresponds to holding at least two priority
It carries;
When monitoring the data traffic of the business from scratch, according to the business corresponding described at least two preferentially
The carrying of grade determines bearing link used in the business;
The business datum of the business is transmitted using the bearing link.
It is described according to the business pair with reference to above-mentioned in a first aspect, in first aspect in the first possible realization method
The carrying at least two priority answered determines bearing link used in the business, including:
Following steps are performed according to the order of the priority carried corresponding to the business from high to low, until a certain excellent
Bearing link used in the business is determined in the carrying of first grade:
Judge whether have been set up bearing link in the carrying of current priority;
If so, the bearing link having built up is determined as bearing link used in the business;
If not, establishing bearing link in the carrying of current priority, if being successfully established bearing link, will successfully build
The vertical bearing link is determined as bearing link used in the business;If establishing bearing link not successfully, institute is returned
Judgment step is stated, carrying used in the above-mentioned definite business is performed to the carrying Xun Huan of next priority of current priority
Link step, until determining bearing link used in the business in the carrying in a certain priority.
With reference to the first possible realization method of above-mentioned first aspect, in second of possible realization method of first aspect
In, it further includes:
Monitor the data traffic of the business from have to it is no when, if do not had used in the business on bearing link
The business datum of other kind of business is transmitted, disconnects bearing link used in the business;
If transmission has the business datum of other kind of business on bearing link used in the business, the business is kept
Used bearing link.
With reference to the first possible realization method of above-mentioned first aspect, the third possible realization method in first aspect
In, judge that bearing link whether is had been set up in the carrying of current priority to be included:Judge be in the carrying of current priority
It is no to have been set up the corresponding bearing link of the business, if it is, judging to have been set up in the carrying of current priority
Bearing link, if it is not, then judging not have built up bearing link in the carrying of current priority.
With reference to the first possible realization method of above-mentioned first aspect, in the 4th kind of possible realization method of first aspect
In, it further includes:Monitor the data traffic of the business from have to it is no when, disconnect bearing link used in the business.
With reference to above-mentioned in a first aspect, and/or the first possible realization method of first aspect and/or first aspect second
The possible realization method of kind and/or the third possible realization method of first aspect and/or the 4th kind of first aspect are possible
Realization method, in the 5th kind of possible realization method of first aspect, monitoring the data traffic of the business includes:
When the business datum of the business does not start transmission, the virtual interface of the business-binding is monitored;If it monitors
The data traffic of the virtual interface from scratch, then monitors the data traffic of the business from scratch;
After the business datum of the business starts transmission, actually passed used in the business data transmission that monitors the business
Defeated interface;If the duration for not transmitting the business datum for the mark for carrying the business in the actual transmissions interface is more than
During preset time threshold, then the data traffic of the business is monitored from having nothing.
Second aspect, the embodiment of the present invention provide a kind of business data transmission managing device, including:
Monitoring unit, for monitoring the data traffic of at least one business, wherein, it is excellent that each business corresponds at least two
The carrying of first grade;
Link control unit, during for monitoring the data traffic of the business according to the monitoring unit from scratch,
The bearing link according to used in the carrying of corresponding at least two priority of the business determines the business;
Transmission unit, the bearing link for being determined using the link control unit transmit the business of the business
Data.
With reference to above-mentioned second aspect, in second aspect in the first possible realization method, the link control unit tool
Body is used for:
Following steps are performed according to the order of the priority carried corresponding to the business from high to low, until a certain excellent
Bearing link used in the business is determined in the carrying of first grade:
Judge whether have been set up bearing link in the carrying of current priority;
If so, the bearing link having built up is determined as bearing link used in the business;
If not, establishing bearing link in the carrying of current priority, if being successfully established bearing link, will successfully build
The vertical bearing link is determined as bearing link used in the business;If establishing bearing link not successfully, institute is returned
Judgment step is stated, carrying used in the above-mentioned definite business is performed to the carrying Xun Huan of next priority of current priority
Link step, until determining bearing link used in the business in the carrying in a certain priority.
With reference to the first possible realization method of above-mentioned second aspect, in second of possible realization method of second aspect
In, the link control unit is additionally operable to:
The monitoring unit monitor the data traffic of the business from have to it is no when, if held used in the business
The business datum that other kind of business is not transmitted in chain road is carried, disconnects bearing link used in the business;
If transmission has the business datum of other kind of business on bearing link used in the business, the business is kept
Used bearing link.
With reference to the first possible realization method of above-mentioned second aspect, the third possible realization method in second aspect
In, the link control unit is specifically used for:Judge that the business whether is had been set up in the carrying of current priority to be corresponded to
Bearing link, if it is, judge to have been set up bearing link in the carrying of current priority, if it is not, then judging to work as
Bearing link is not had built up in the carrying of preceding priority.
With reference to the first possible realization method of above-mentioned second aspect, in the 4th kind of possible realization method of second aspect
In, the link control unit is additionally operable to:According to the monitoring unit monitor the data traffic of the business from have to it is no when,
Disconnect bearing link used in the business.
With reference to above-mentioned second aspect and/or the first possible realization method of second aspect and/or second aspect second
The possible realization method of kind and/or the third possible realization method of second aspect and/or the 4th kind of second aspect are possible
Realization method, in the 5th kind of possible realization method of second aspect, the monitoring unit is specifically used for:
When the business datum of the business does not start transmission, the virtual interface of the business-binding is monitored;If it monitors
The data traffic of the virtual interface from scratch, then monitors the data traffic of the business from scratch;
After the business datum of the business starts transmission, actually passed used in the business data transmission that monitors the business
Defeated interface;If the duration for not transmitting the business datum for the mark for carrying the business in the actual transmissions interface is more than
During preset time threshold, then the data traffic of the business is monitored from having nothing.
In the present embodiment, the data traffic of at least one business is monitored, wherein, it is preferential that each business corresponds at least two
The carrying of grade;When monitoring the data traffic of the business from scratch, according to corresponding at least two priority of the business
Carrying determine bearing link used in the business;The business datum of the business is transmitted using the bearing link.From
And in the present embodiment, the bearing link of business is not only limited as one, but can be according to the business corresponding at least two
The carrying of a priority determines bearing link used in the business, carries out the transmission of business datum, so as to every time into industry
During the business data transmission of business, the successful possibility of bearing link link setup used in business improves, so as to improve the business
Business datum efficiency of transmission.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Whole description, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of not making the creative labor
Embodiment belongs to the scope of protection of the invention.
It is business transfer management method first embodiment schematic diagram of the present invention referring to Fig. 1, this method includes:
Step 101:Terminal device monitors the data traffic of at least one business;Each described business corresponds at least two
The carrying of priority;
Step 102:It is corresponding according to the business when terminal device monitors the data traffic of the business from scratch
The carrying of at least two priority determines bearing link used in the business;
Step 103:Terminal device transmits the business datum of the business using the bearing link.
In the present embodiment, the bearing link of business is not only limited as one, but can be corresponding according to the business
The carrying of at least two priority determines bearing link used in the business, until success in the carrying in a certain priority
Determine bearing link used in the business, using the bearing link carry out business datum transmission, so as to every time into
During the business data transmission of industry business, the successful possibility of bearing link link setup used in business improves, so as to improve this
The efficiency of transmission of the business datum of business.
In addition, terminal device is monitored the data traffic of each business, it is achieved thereby that terminal device is simultaneously to more
The data traffic of a business is monitored.
It is business data transmission management method second embodiment schematic diagram of the present invention, with terminal device to a certain referring to Fig. 2
The business data transmission process of kind business illustrates, the process that terminal device is transmitted the business datum of other kind of business
Similar, this method includes:
Step 201:For a certain business, when the business datum of the business does not start transmission, terminal device prison
Control the virtual interface of the business-binding;When terminal device monitors the data traffic of the virtual interface from scratch, table
The data traffic of the bright business from scratch, then performs step 202;Otherwise, terminal device continues to monitor the business-binding
Virtual interface.
In practical applications, terminal device can be one virtual interface of each business-binding.Here a kind of business is
Refer to a kind of business of type of service.
For example, the business can include the n kind types of service such as ordinary data traffic, speech business, online upgrading business
Business, then can pre-set n virtual interface, each virtual interface corresponds to a kind of business of type of service;N is more than 1
Natural number.
The virtual interface refers to:It is the Virtual Ethernet that business is set before business datum does not start transmission, so as to
When the corresponding carrying of business and bearing link do not determine, it can communicate with next data Layer, realize the foundation of bearing link.
Step 202:Terminal device determines the priority of the carrying and carrying corresponding to the business.
In practical applications, can this kind of service class be set for the business of each type of service in terminal device in advance
The carrying and the priority of carrying that the business of type can use, for example, in the manner as shown in table 1, record traffic type is X's
The carrying and the priority of carrying that business can use:
Table 1
In the list shown in table 1, exemplified by carrying that the business by type of service for X can use is 2 kinds, actually should
In, the carrying quantity that the business of each type of service can use can independently be set in practical applications, here not
Limitation.
Assuming that the business that it is X that the business, which is type of service, then terminal device can be determined according to above-mentioned table 1 in this step
The priority of carrying and carrying corresponding to the business.
Hereinafter, the order according to the priority carried corresponding to the business from high to low is performed following step by terminal device
Rapid 203~step 206, until the business number of business described in the bearing link Successful transmissions in the carrying for using a certain priority
According to specific processing procedure is as follows:
Step 203:Terminal device judges whether have been set up bearing link in the carrying of current priority, if so,
Perform step 204;If not, perform step 205.
Wherein, the carrying of the current priority refers to:Priority order from high to low of the terminal device according to carrying,
The carrying for the priority being presently processing.For example, by taking table 1 as an example, when performing step 203 for the first time, step 203 processing is worked as
The carrying of preceding priority is the carrying that priority is 1, if the bearing link not had built up in the carrying that priority is 1
And attempt to establish bearing link failure, during by step 205 return to step 203, then step 203 is handled current priority is held
The carrying for becoming that priority is 2 is carried, and so on.
Step 204:Terminal device determines that the bearing link having built up for bearing link used in the business, uses
The bearing link having built up transmits the business datum of the business, performs step 207.
Wherein, when having been set up multiple bearing links in the carrying of the current priority, terminal device can be from
A bearing link having built up wherein is selected as bearing link used in the business, carries out the biography of business datum
It is defeated, specifically bearing link how to be selected not limit here.
In addition, in the present embodiment, the business datum of multiple business can be transmitted on each bearing link, specific transmission side
Method for example may be referred to the method for transmitting the business datum of multiple business by the bearing link of default bearing in the prior art, this
In do not limit.
Step 205:Terminal device establishes bearing link in the carrying of current priority, if being successfully established carrying chain
Road performs step 206;If establishing bearing link not successfully, return to step 203 described in the carrying execution of next priority to sentencing
Disconnected step.
Wherein, establishing the method for the bearing link can be:Terminal device realizes bearing link by way of dialing
Foundation;Alternatively, terminal device to network side equipment send bearing link establish request, if receive network side equipment for
The link establishment success response of the request then shows that the bearing link is successfully established;If network side equipment is not received
Link establishment success response or receive the link establishment failure response of network side equipment, then show that bearing link is failed
It establishes.
Wherein, if the carrying of the current priority handled in this step has been the carrying of last priority level, if not
Bearing link is successfully established, then shows can not to be that the business establishes bearing link in all carryings, then the business of the business
Data will be unable to transmit.
Step 206:Terminal device determines that the bearing link being successfully established is bearing link used in the business,
The business datum of the business is transmitted using the bearing link being successfully established, performs step 207.
Step 207:Terminal device monitors actual transmissions interface used in the business data transmission of the business;If prison
The duration for controlling the business datum for not transmitting the mark for carrying the business in the actual transmissions interface is more than when presetting
Between threshold value when, then show to monitor the data traffic of the business from having nothing, perform step 208;Otherwise, step is continued to execute
207 monitoring step.
The actual transmissions interface refers to:The Ethernet interface of business data transmission is actually carried out in terminal device.It is described
Actual transmissions interface can transmit the business datum of one or more business.
In this step, the mark of the business can include the corresponding Internet protocol of business(IP)Address and/or port
Number etc..
Step 208:Terminal device judges whether transmit the business of other business used in the business on bearing link
Data, if so, performing step 209;If not, perform step 210.
Step 209:Terminal device keeps bearing link used in the business, and currently processed branch terminates.
Step 210:Terminal device disconnects bearing link used in the business, and currently processed branch terminates.
Based on the embodiment shown in figure 2 above, for a certain business X, if the business datum of business X does not have started
Transmission, when terminal device monitors the data traffic of business X from scratch, shows that business X needs to proceed by this
At this moment the transmission of business datum determines bearing link that business X uses simultaneously by performing step 202~step 206 for business X
Use the business datum of the bearing link transmission services X;If the business datum of business X has begun to transmit, work as terminal
Monitoring of tools to business X data traffic from have to it is no when, show business X this business datum end of transmission, lead to
Execution step 208~210 are crossed to determine to keep or disconnect bearing link used in business X.
In the present embodiment, the bearing link of business is not only limited as one by terminal device, but can be successively multiple
In the carrying of different priorities, the bearing link having built up is determined as bearing link used in business or attempts to build
Vertical new bearing link is as bearing link used in business, until successfully determining business institute in the carrying in a certain priority
The bearing link used carries out the transmission of business datum, thus when carrying out the business data transmission of business every time, business is used
The successful possibility of bearing link link setup improve, so as to improve the efficiency of transmission of the business datum of the business.
The data traffic of each business is monitored in addition, terminal device realizes;Moreover, on same bearing link
The business datum of multiple business can be transmitted, and the data traffic of the multiple business to being transmitted on same bearing link can be distinguished
Realize monitoring;
Further more, when terminal device monitors the data traffic of a certain business from scratch, just transmission is determined for business
Bearing link;Terminal device monitors the data traffic of a certain business from having nothing, and used in business on bearing link
When not transmitting the business datum of other business, bearing link used in the business of the turn-off data flow from having nothing,
So as to save bearing resource.
It is business data transmission management method 3rd embodiment of the present invention referring to Fig. 3, this method includes:
Step 301, step 302, step 304, step 306, step 307 respectively in Fig. 2 step 201, step 202,
Step 204, step 206, step 207 correspond to identical, do not repeat here.
Step 303:Terminal device judges whether to have been set up that the business is corresponding to hold in the carrying of current priority
Link is carried, if so, performing step 304;If not, perform step 305.
Step 305:Terminal device establishes the corresponding bearing link of the business in the carrying of current priority, if into
Work(establishes bearing link, performs step 306;If establishing bearing link not successfully, return to step 303 holds next priority
It carries and performs the judgment step.
Step 308:Terminal device disconnects bearing link used in the business.
In the present embodiment, the bearing link of business is not only limited as one by terminal device, but can be successively multiple
In the carrying of different priorities, the bearing link having built up is determined as bearing link used in business or attempts to build
Vertical new bearing link is as bearing link used in business, until successfully determining business institute in the carrying in a certain priority
The bearing link used carries out the transmission of business datum, thus when carrying out the business data transmission of business every time, business is used
The successful possibility of bearing link link setup improve, so as to improve the efficiency of transmission of the business datum of the business.
In addition, terminal device is monitored by the data traffic to each interface with business-binding, realize to every
The data traffic of a business is monitored;
Further more, when terminal device monitors the data traffic of a certain business from scratch, just transmission is determined for business
Bearing link;Terminal device monitor the data traffic of a certain business from have to it is no when, turn-off data flow is from having nothing
Bearing link used in the business, so as to save bearing resource.
Corresponding with the above method, the embodiment of the present invention also provides a kind of business data transmission managing device, referring to figure
4, which includes:
Monitoring unit 410, for monitoring the data traffic of at least one business, wherein, each business corresponds at least two
The carrying of a priority;
Link control unit 420 monitors the data traffic of the business from scratch for the monitoring unit 410
When, the bearing link according to used in the carrying of corresponding at least two priority of the business determines the business;
Transmission unit 430, the bearing link for using the link control unit 420 definite transmit the business
Business datum.
Preferably, the link control unit 420 specifically can be used for:
Following steps are performed according to the order of the priority carried corresponding to the business from high to low, until a certain excellent
Bearing link used in the business is determined in the carrying of first grade:
Judge whether have been set up bearing link in the carrying of current priority;
If so, the bearing link having built up is determined as bearing link used in the business;
If not, establishing bearing link in the carrying of current priority, if being successfully established bearing link, will successfully build
The vertical bearing link is determined as bearing link used in the business;If establishing bearing link not successfully, institute is returned
Judgment step is stated, carrying used in the above-mentioned definite business is performed to the carrying Xun Huan of next priority of current priority
Link step, until determining bearing link used in the business in the carrying in a certain priority.
Preferably, the link control unit 420 can be also used for:
The monitoring unit 410 monitor the data traffic of the business from have to it is no when, if the business is used
Bearing link on do not transmit the business datum of other kind of business, disconnect bearing link used in the business;
If transmission has the business datum of other kind of business on bearing link used in the business, the business is kept
Used bearing link.
Preferably, the link control unit 420 specifically can be used for:
Judge the corresponding bearing link of the business whether is had been set up in the carrying of current priority;
If so, the bearing link having built up is determined as bearing link used in the business;
If not, establish the corresponding bearing link of the business in current carrying;It, will if being successfully established bearing link
The bearing link being successfully established is determined as bearing link used in the business;If establishing bearing link not successfully,
The judgment step is performed to the carrying of next priority.
Preferably, the link control unit 420 can be also used for:The monitoring unit 410 monitors the business
Data traffic from have to it is no when, disconnect bearing link used in the business.
Preferably, the monitoring unit 410 specifically can be used for:When the business datum of the business does not start transmission, prison
Control the virtual interface of the business-binding;If the data traffic for monitoring the virtual interface is from scratch, institute is monitored
State the data traffic of business from scratch;
After the business datum of the business starts transmission, actually passed used in the business data transmission that monitors the business
Defeated interface;If the duration for not transmitting the business datum for the mark for carrying the business in the actual transmissions interface is more than
During preset time threshold, then the data traffic of the business is monitored from having nothing.
In the present embodiment, the bearing link of business is not only limited as one, but can be successively multiple and different preferential
In the carrying of grade, the bearing link having built up is determined as bearing link used in business or attempts to establish new hold
Link is carried as bearing link used in business, until successfully determining to be held used in business in the carrying in a certain priority
Link is carried, carries out the transmission of business datum, thus when carrying out the business data transmission of business every time, carrying chain used in business
Link setup successful possibility in road improves, so as to improve the efficiency of transmission of the business datum of the business.
In addition, terminal device is monitored by the data traffic to each interface with business-binding, realize to every
The data traffic of a business is monitored, it is achieved thereby that terminal device is simultaneously monitored the data traffic of multiple business.
Referring to Fig. 5, for a kind of hardware architecture diagram of terminal device provided in an embodiment of the present invention, the terminal device
500 include:Processor 510, memory 520, transceiver 530 and bus 540;
Processor 510, memory 520, transceiver 530 are connected with each other by bus 540;Bus 540 can be that ISA is total
Line, pci bus or eisa bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc..For ease of table
Show, only represented in Fig. 5 with a thick line, it is not intended that an only bus or a type of bus.
Memory 520, for storing program.Specifically, program can include program code, and said program code includes meter
Calculation machine operational order.Memory 520 may include high-speed RAM memory, it is also possible to further include nonvolatile memory(non-
volatile memory), a for example, at least magnetic disk storage.
Transceiver 530 communicates for connecting other equipment with other equipment.
The processor 510 performs said program code, for monitoring the data traffic of at least one business, wherein, often
A kind of business corresponds to the carrying of at least two priority;When monitoring the data traffic of the business from scratch, according to
The carrying of corresponding at least two priority of the business determines bearing link used in the business;Use the carrying chain
Transmit the business datum of the business in road.
Wherein, when the processor 510 establishes bearing link and uses bearing link transmission services data, generally require
It is communicated by transceiver 530 with other equipment.
Preferably, processor 510 specifically can be used for being accomplished by the following way described corresponding extremely according to the business
The carrying of few two priority determines bearing link used in the business:
Following steps are performed according to the order of the priority carried corresponding to the business from high to low, until a certain excellent
Bearing link used in the business is determined in the carrying of first grade:
Judge whether have been set up bearing link in the carrying of current priority;
If so, the bearing link having built up is determined as bearing link used in the business;
If not, establishing bearing link in the carrying of current priority, if being successfully established bearing link, will successfully build
The vertical bearing link is determined as bearing link used in the business;If establishing bearing link not successfully, to next
The carrying of priority performs the judgment step.
Preferably, processor 510 can be also used for:Monitor the business from have to it is no when, if business institute
The business datum of other kind of business is not transmitted on the bearing link used, disconnects bearing link used in the business;Such as
Transmission has the business datum of other kind of business on bearing link used in business described in fruit, keeps holding used in the business
Carry link.
Preferably, the processor 510 specifically can be used for being accomplished by the following way described according to business correspondence
The carryings of at least two priority determine bearing link used in the business:Judge in the carrying of current priority whether
The corresponding bearing link of the business is had been set up, if so, the bearing link having built up is determined as the industry
Bearing link used in business;If not, the corresponding bearing link of the business is established in current carrying, if be successfully established
The bearing link being successfully established is determined as bearing link used in the business by bearing link;If it builds not successfully
Vertical bearing link, returns to the judgment step, and above-mentioned definite institute is performed to the carrying Xun Huan of next priority of current priority
Bearing link step used in business is stated, until determining to carry chain used in the business in the carrying in a certain priority
Road.
Preferably, the processor 510 can be also used for:Monitor the data traffic of the business from have to it is no when, break
Open bearing link used in the business.
Preferably, the specific number that can be used for the monitoring business is accomplished by the following way of the processor 510
According to flow:When the business datum of the business does not start transmission, the virtual interface of the business-binding is monitored;If monitor institute
The data traffic for stating virtual interface from scratch, then monitors the data traffic of the business from scratch;The industry of the business
After business data start transmission, actual transmissions interface used in the business data transmission of the business is monitored;If the reality
When not transmitting the duration of the business datum for the mark for carrying the business in coffret more than preset time threshold, then supervise
The data traffic of the business is controlled from having nothing.
In the present embodiment, the bearing link of business is not only limited as one, but can be successively multiple and different preferential
In the carrying of grade, the bearing link having built up is determined as bearing link used in business or attempts to establish new hold
Link is carried as bearing link used in business, until successfully determining to be held used in business in the carrying in a certain priority
Link is carried, carries out the transmission of business datum, thus when carrying out the business data transmission of business every time, carrying chain used in business
Link setup successful possibility in road improves, so as to improve the efficiency of transmission of the business datum of the business.
In addition, terminal device is monitored by the data traffic to each interface with business-binding, realize to every
The data traffic of a business is monitored, it is achieved thereby that terminal device is simultaneously monitored the data traffic of multiple business.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software
The mode of general hardware platform realize.Based on such understanding, the technical solution in the embodiment of the present invention substantially or
It says and the part that the prior art contributes can be embodied in the form of software product, which can deposit
Storage is in storage medium, such as ROM/RAM, magnetic disc, CD, is used including some instructions so that a computer equipment(It can be with
It is personal computer, server or the network equipment etc.)Perform some part institutes of each embodiment of the present invention or embodiment
The method stated.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Point just to refer each other, and the highlights of each of the examples are difference from other examples.It is real especially for system
For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The embodiments of the present invention described above are not intended to limit the scope of the present invention.It is any in the present invention
Spirit and principle within the modifications, equivalent substitutions and improvements made etc., should all be included in the protection scope of the present invention.