Summary of the invention
The purpose of the embodiment of the invention provides a kind of method, system and routing device of allocation schedule resource, transparent transmission service and non-transparent transmission service for same user terminal, the scheduling resource that dynamic assignment is unified, realize the unified scheduling of transparent transmission service and non-transparent transmission service, and improve network resource utilization.
The purpose of the embodiment of the invention is achieved through the following technical solutions:
A kind of method of allocation schedule resource,
The monitor function of enables users side PE equipment;
The business authentication that listens to user terminal when described user side PE equipment is by back message using, and to judge described business be on first of user terminal during line service, is described user terminal allocation schedule resource;
The business that listens to described user terminal when the described user side PE equipment message that rolls off the production line, and to judge described business be last of described user terminal down during line service, discharges the scheduling resource of described user terminal.
A kind of routing device, described routing device comprises:
The business monitoring module, be used for the supervisory user terminal traffic on roll off the production line;
Professional judge module, be used for when the business monitoring module monitors when described business is reached the standard grade, judge that whether described business is line service on first of described user terminal; When the business monitoring module monitors when described business rolls off the production line, judge that whether described business is last line service down of described user terminal;
The scheduling of resource module, being used for judging described business when professional judge module is on first of described user terminal during line service, is described user terminal allocation schedule resource; Judging described business when professional judge module is last of described user terminal down during line service, discharges the scheduling resource of described user terminal.
A kind of system of allocation schedule resource, described system comprises BAS Broadband Access Server, user terminal and a kind of routing device, wherein, described routing device is used to described user terminal allocation schedule resource, and being used for the access authentication of user and the user management of the non-transparent transmission service of described user terminal, described BAS Broadband Access Server is used for the access authentication of user and the user management of the transparent transmission service of described user terminal.
Adopt the technical scheme of the embodiment of the invention, monitor function by enables users side PE equipment, the business authentication that makes described user side PE equipment listen to user terminal passes through back message using, and when judging described business and be on first of user terminal line service, be described user terminal allocation schedule resource; When the described user side PE equipment business of the listening to message that rolls off the production line, and to judge described business be last of described user terminal down during line service, discharges the scheduling resource of described user terminal.Utilize method disclosed by the invention, be the transparent transmission service and the non-transparent transmission service of same user terminal, dynamic assignment unified scheduling resource, realized the unified scheduling of transparent transmission service and non-transparent transmission service, and improved network resource utilization.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
For ease of explanation, introduce a specific embodiment of the present invention below.As shown in Figure 1, be the networking schematic diagram of the embodiment of the invention, this network comprises BAS Broadband Access Server 110, user side PE equipment 120, user terminal 131 and user terminal 132.
Wherein, BAS Broadband Access Server 110 is used for the access authentication of user and the user management of transparent transmission service, and user side PE equipment 120 is used for the access authentication and the user management of non-transparent transmission service.
User side PE equipment 120 can be any network equipment that possesses the routing function module, for example: router and three-tier switch etc.
Be that user terminal 131 allocation schedule resources are example with user side PE equipment 120 below, the method for allocation schedule resource is specifically introduced.
As shown in Figure 2, the method flow diagram for a kind of allocation schedule resource of the embodiment of the invention comprises:
201, enable monitor function.202, judge whether to listen to business authentication by back message using, be specially: when the business authentication that listens to user terminal 131 passes through back message using, jump to 204; When the business authentication that does not hear user terminal 131 passed through back message using, the business authentication that continues monitoring users terminal 131 passed through back message using.
203, judge whether the business of the listening to message that rolls off the production line, be specially: when the business that listens to user terminal 131 rolls off the production line message, jump to 205; When the business that does not hear user terminal 131 rolls off the production line message, the business that continues monitoring users terminal 131 message that rolls off the production line.204, judge whether to be line service on first, be specially: whether the business of judging user terminal 131 is line service on first of this user, when this business for first on during line service, jump to 206; When this business is not on first during line service, this flow operations finishes.
205, judge whether to be last following line service, be specially: whether the business of judging user terminal 131 is last following line service of this user, when this business is descended line service for last, jumps to 207; When this business was not last time line service, this flow operations finished.
206, allocation schedule resource is specially: give user terminal 131 allocation schedule resources.
Wherein, the mode of allocation schedule resource is for to carry out the allocation schedule resource based on the user, when there is on first line service in user terminal 131, judge that promptly user terminal 131 reaches the standard grade, be user terminal 131 allocation schedule resources, when other business of subsequent user terminal 131 are reached the standard grade, the new scheduling resource of not reallocating, each user terminal only distributes a scheduling resource, and the business of user terminal 131 is carried out service dispatching according to this scheduling resource.
207, discharge scheduling resource, be specially: discharge the scheduling resource that user terminal 131 takies.
Wherein, the mode that discharges scheduling resource when last business of user terminal 131 rolls off the production line, judges promptly that user terminal 131 rolls off the production line for to discharge scheduling resource based on the user, the scheduling resource that release user terminal 131 is shared.
In the foregoing description, 201 specifically can comprise:
At the user terminal access interface place of user side PE equipment 120, increase snooping (monitoring) configuration, enable the snooping function.
Enable monitor function at different user, outside VLAN or Option82 when inner VLAN the when user can be by VLAN or QinQ or QinQ identify.First of a certain user terminal reached the standard grade and authenticated the business passed through and be line service on first of this user.
In the foregoing description, 202 specifically can comprise:
When the business authentication that listens to user terminal 131 passes through back message using, judge the business of user terminal 131 and reach the standard grade, and jump to 204; When the business authentication that does not hear user terminal 131 passes through back message using, to judge the business of user terminal 131 and do not reach the standard grade, the business authentication that continues monitoring users terminal 131 passes through back message using.
Wherein, the business authentication of monitoring users terminal 131 can be monitored every the regular hour by back message using.
Wherein, business authentication comprises by back message using: the transparent transmission service authentication is by back message using and non-transparent transmission service authentication passing through back message using, transparent transmission service authentication by back message using be BAS Broadband Access Server 110 send to user terminal 131 business authentication by back message using, non-transparent transmission service authentication is that the business authentication that user side PE equipment 120 sends to user terminal 131 passes through back message using by back message using.
Wherein, non-transparent transmission service and transparent transmission service can be business that inserts in the IPoX mode or the business that inserts in the PPoX mode, IPoX specifically comprises: IPoE, IPoEoVLAN, IPoEoQ and IPoEoA etc., PPPoX specifically comprises: PPPoE, PPPoEoVLAN, PPPoEoQ, PPPoA and PPPoEoA etc.
Wherein, transparent transmission service and the non-transparent transmission service for different access waies all has the corresponding service authentication to pass through back message using.For example, networking schematic diagram with Fig. 1 is that example describes: when non-transparent transmission service for insert with PPP over Ethernet professional the time, business authentication is Authenticate Ack (authentication response) message that user side PE equipment 120 sends to user terminal 131 by back message using; When non-transparent transmission service for the IPoE mode insert professional the time, business authentication is DHCP offer (DHCP provides) message that user side PE equipment 120 sends to user terminal 131 by back message using; When transparent transmission service be with PPP over Ethernet insert professional the time, business authentication is the Authenticate Ack message that BAS Broadband Access Server 110 sends to user terminal 131 by back message using; When non-transparent transmission service for the IPoE mode insert professional the time, business authentication is the DHCP offer message that BAS Broadband Access Server 110 sends to user terminal 131 by back message using.
User side PE equipment 120 business authentication by monitoring users terminal 131 is by back message using, and whether business that can perception user terminal 131 reaches the standard grade.
In the foregoing description, 202 specifically can also comprise:
When the business authentication that listens to user terminal 131 when the back message using, judge the business of user terminal 131 and reach the standard grade, monitor timer for this business setting, be used for regularly monitoring the response detected message, to judge whether abnormal off-line of user terminal 131.Wherein, the response detected message comprises: transparent transmission service response detected message and non-transparent transmission service response detected message, transparent transmission service response detected message is the response detected message that user terminal 131 sends to BAS Broadband Access Server 110, and non-transparent transmission service response detected message is the response detected message that user terminal 131 sends to user side PE equipment 120.
Wherein, the response detected message is corresponding with probe messages, wherein, for the transparent transmission service of different access waies and non-transparent transmission service corresponding response detected message is arranged all.For example: when non-transparent transmission service be with PPP over Ethernet insert professional the time, the response detected message is Echo (echo) response message that user terminal 131 sends to user side PE equipment 120; When non-transparent transmission service for the IPoE mode insert professional the time, the response detected message is ARP (address resolution protocol) response message that user terminal 131 sends to user side PE equipment 120; When transparent transmission service be with PPP over Ethernet insert professional the time, the response detected message is the Echo response message that user terminal 131 sends to BAS Broadband Access Server 110; When transparent transmission service for the IPoE mode insert professional the time, the response detected message is the arp reply message that user terminal 131 sends to BAS Broadband Access Server 110.
In the foregoing description, 203 specifically can comprise:
When the business that listens to user terminal 131 rolled off the production line message, the business of judging user terminal 131 rolled off the production line, and jumped to 205; When the business that does not hear user terminal 131 rolled off the production line message, the business of judging user terminal 131 did not roll off the production line, the business that continues monitoring users terminal 131 message that rolls off the production line.
Wherein, the business of monitoring users terminal 131 message that rolls off the production line can be monitored every the regular hour.
Wherein, the business message that rolls off the production line comprises: first message that rolls off the production line, and first the professional of message indicating user terminal 131 that roll off the production line initiatively rolls off the production line; Or second message that rolls off the production line, second business that rolls off the production line message indication force users terminal 131 rolls off the production line.
Wherein, first message that rolls off the production line, specifically comprise: transparent transmission service first message and non-transparent transmission service first message that rolls off the production line that rolls off the production line, transparent transmission service first message that rolls off the production line is that user terminal 131 sends to first of BAS Broadband Access Server 110 message that rolls off the production line, and non-transparent transmission service first message that rolls off the production line is that user terminal 131 sends to first of user side PE equipment 120 message that rolls off the production line.
Wherein, for the transparent transmission service of different access waies and non-transparent transmission service corresponding first message that rolls off the production line is arranged all.For example: when non-transparent transmission service be with PPP over Ethernet insert professional the time, first message that rolls off the production line is Terminate Request (end session request) message that user terminal 131 sends to user side PE equipment 120; When non-transparent transmission service for insert in the IPoE mode professional the time, first message that rolls off the production line is the DHCP release message that user terminal 131 sends to user side PE equipment 120; When transparent transmission service be with PPP over Ethernet insert professional the time, first message that rolls off the production line is the Terminate Request message that user terminal 131 sends to BAS Broadband Access Server 110; When transparent transmission service for insert in the IPoE mode professional the time, first message that rolls off the production line is DHCP release (DHCP release) message that user terminal 131 sends to BAS Broadband Access Server 110.
Wherein, second message that rolls off the production line, specifically comprise: transparent transmission service second message and non-transparent transmission service second message that rolls off the production line that rolls off the production line, transparent transmission service second message that rolls off the production line is that BAS Broadband Access Server 110 sends to second of user terminal 131 message that rolls off the production line, and non-transparent transmission service second message that rolls off the production line is that user side PE equipment 120 sends to second of user terminal 131 message that rolls off the production line.
Wherein, for the transparent transmission service of different access waies and non-transparent transmission service corresponding second message that rolls off the production line is arranged all.For example: when non-transparent transmission service be with PPP over Ethernet insert professional the time, second message that rolls off the production line is PADT (PPPoE Active DiscoveryTermiantion, PPPoE effectively the find to stop) message that user side PE equipment 120 sends to user terminal 131; When transparent transmission service be with PPP over Ethernet insert professional the time, second message that rolls off the production line is the PADT message that BAS Broadband Access Server 110 sends to user terminal 131.
User side PE equipment 120 is by the message that rolls off the production line of the business of monitoring users terminal 131, and whether business that can perception user terminal 131 rolls off the production line.
In the foregoing description, 203 specifically can also comprise:
When user side PE equipment 120 did not listen to the response detected message of user terminal 131 transmissions in the listening period of monitoring timer, the service exception of judging user terminal 131 rolled off the production line, and jumps to 205.
Wherein, the service exception of judging user terminal 131 rolls off the production line, and also comprises: the situation that does not listen to the response detected message of user terminal 131 transmissions when user side PE equipment 120 in a plurality of listening periods of monitoring timer.
In the foregoing description, 204 specifically can comprise:
Whether the last line service of judging user terminal 131 is line service on first of this user, when this business for first on during line service, jump to 206; When this business is not on first during line service, this flow operations finishes.
In the foregoing description, 205 specifically can comprise:
Whether the following line service of judging user terminal 131 is last following line service of this user, when this business is descended line service for last, jumps to 207; When this business was not last time line service, this flow operations finished.
In the foregoing description, there is not the restriction of execution sequence between 202 and 203.
In the foregoing description, monitor function by enables users side PE equipment 120, the business authentication that listens to user terminal 131 when user side PE equipment 120 is by back message using, and when judging on professional for user terminal 131 first line service, is user terminal 131 allocation schedule resources; When user side PE equipment 120 business of the listening to message that rolls off the production line, and when the business of judging is last time line service of user terminal 131, discharge the scheduling resource of user terminal 131, reached the business realizing unified resource scheduling of user terminal 131 and the technique effect of raising network resource utilization.
Present embodiment provides a kind of routing device, as shown in Figure 3, comprising:
Business monitoring module 310, be used for supervisory user terminal 131 business on roll off the production line;
Professional judge module 320 is used for when business monitoring module 310 business of monitoring are reached the standard grade, judges that whether business is line service on first of user terminal 131; When business monitoring module 310 business of monitoring roll off the production line, judge whether professional be last following line service of user terminal 131;
Scheduling of resource module 330 is used for being user terminal 131 allocation schedule resources when professional judge module 320 is judged on professional for user terminal 131 first line service; Judge professional last for user terminal 131 down during line service when professional judge module 320, discharge the scheduling resource of user terminal 131.
Wherein, business monitoring module 310 comprises specifically as shown in Figure 4:
The business monitoring unit 410 of reaching the standard grade is used for the monitoring service authentication by back message using, and when listening to business authentication by back message using, the business of judging is reached the standard grade;
The business monitoring unit 420 that rolls off the production line is used for the monitoring service message that rolls off the production line, and when the business of listening to rolled off the production line message, the business of judging rolled off the production line;
Wherein, the business monitoring unit 420 that rolls off the production line also can be used for reaching the standard grade monitoring unit 410 when judging business and reaching the standard grade when business, be provided with and monitor timer regularly to monitor the response detected message with the business of judging user terminal 131 abnormal off-line whether, when not listening to the response detected message in the listening period of monitoring timer, the service exception of judging user terminal 131 rolls off the production line.
Present embodiment also provides a kind of system of allocation schedule resource, this system comprises a kind of routing device that BAS Broadband Access Server 110, user terminal 131 and the foregoing description provide, wherein, routing device is used to user terminal 131 allocation schedule resources, and being used for the access authentication of user and the user management of the non-transparent transmission service of user terminal 131, BAS Broadband Access Server 110 is used for the access authentication of user and the user management of the transparent transmission service of user terminal 131.
Through the above description of the embodiments, those of ordinary skill in the art can be well understood to the embodiment of the invention and can realize by the mode that software adds essential general hardware platform, can certainly realize by hardware.Based on such understanding, the technical scheme of the embodiment of the invention can embody with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that computer equipment or server or other network equipments are carried out the described method of some part of each embodiment of the present invention or embodiment.
Being preferred embodiment of the present invention only below, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.