The content of the invention
The present invention provides a kind of Dialing Method and access device of terminal unit, for reducing because of BRAS failures or company
Connect failure and the caused service outage duration of offline institute.
A first aspect of the present invention is to provide a kind of Dialing Method of terminal unit, including:
Access device sends probe messages in network, obtains the media interviews control of online BAS Broadband Access Server BRAS
MAC Address processed, the MAC Address of the BRAS of acquisition is stored in BRAS lists;
The access device to the corresponding BRAS of MAC Address in the BRAS lists sends handshake message, right to obtain
The current state of the BRAS for answering;
The access device obtains the MAC Address of the BRAS in off-line state, from the MAC Address and terminal unit of BRAS
MAC Address and session Session ID corresponding relation in, acquisition belongs to the terminal of BRAS in off-line state and sets
Standby MAC Address and Session ID;
The access device is sent out according to the MAC Address and Session ID of the terminal unit for obtaining to corresponding terminal unit
Offline notice message is sent, so that corresponding terminal unit is dialled.
In the first possible implementation of first aspect, the access device sends probe messages in network, obtains
The MAC address of the BAS Broadband Access Server BRAS of line is taken at, the MAC Address of the BRAS of acquisition is stored in
In BRAS lists, specifically include:
The access device sends the activation of Ethernet bearing point-to-point protocol PPPoE and finds to the BRAS in the network
Begin packet PADI messages;
The access device receives the PPPoE activation discovery phase service message PADO messages of BRAS, from PADO reports
The MAC Address of BRAS is obtained in text, the MAC Address of the BRAS for obtaining is stored in the BRAS lists.
With reference in a first aspect, in second possible implementation of first aspect, the access device is in network
Probe messages are sent, the MAC address of online BAS Broadband Access Server BRAS is obtained, by the BRAS's for obtaining
MAC Address is stored in BRAS lists, is specifically included:
The access device sends address resolution according to the IP address of the BRAS being pre-configured with to the corresponding BRAS of IP address
Agreement ARP message;
The access device receives the arp response message of BRAS, and the corresponding BRAS of IP address is obtained from arp response message
MAC Address, by obtain MAC Address store in the BRAS lists.
With reference in a first aspect, in the third possible implementation of first aspect, the access device is in network
Probe messages are sent, the MAC address of online BAS Broadband Access Server BRAS is obtained, by the BRAS's for obtaining
After MAC Address is stored in BRAS lists, methods described also includes:
The access device is monitored to terminal unit to the dialing procedure of BRAS, from the dialing procedure of terminal unit
Obtain the MAC Address of terminal unit, the MAC Address of BRAS and Session ID, by obtain terminal unit MAC Address,
The MAC Address of BRAS and Session ID form corresponding relation and are saved on the access device.
With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect
In, the access device is monitored to terminal unit to the dialing procedure of BRAS, obtains from the dialing procedure of terminal unit
The MAC Address of terminal unit, the MAC Address of BRAS and Session ID, specifically include:
The access device receives the Ethernet bearing point-to-point protocol PPPoE activation of BRAS and finds that session confirms packet
PADS messages;
The access device by the MAC Address of terminal unit in the PADS messages, the MAC Address of BRAS and
Session ID form corresponding relation and are stored on the access device.
A second aspect of the present invention is to provide a kind of access device, including:First transceiver, visits for sending in network
Text is observed and predicted, the MAC address of online BAS Broadband Access Server BRAS is obtained, by the MAC ground of the BRAS for obtaining
Location is stored in BRAS lists;
Second transceiver, for sending handshake message to the corresponding BRAS of MAC Address in the BRAS lists, to obtain
The current state of corresponding BRAS;
Processor, for obtaining the MAC Address of the BRAS in off-line state, from the MAC Address and terminal unit of BRAS
MAC Address and session Session ID corresponding relation in, acquisition belongs to the terminal of BRAS in off-line state and sets
Standby MAC Address and Session ID;
3rd transceiver, sets for the MAC Address and Session ID according to the terminal unit for obtaining to corresponding terminal
Preparation send offline notice message, so that corresponding terminal unit is dialled;
Memorizer, for storing the BRAS lists.
In the first possible implementation of second aspect, first transceiver is specifically included:
Data transmitter, sends out for sending the activation of Ethernet bearing point-to-point protocol PPPoE to the BRAS in the network
Existing start packet PADI message;
Data sink, the PPPoE for receiving BRAS activates discovery phase service message PADO messages, from the PADO
The MAC Address of BRAS is obtained in message, the MAC Address of the BRAS for obtaining is stored in the BRAS lists.
With reference to second aspect, in second possible implementation of second aspect, first transceiver is specifically wrapped
Include:
Data transmitter, for according to the IP address of the BRAS being pre-configured with, to the corresponding BRAS of IP address address being sent
Analysis protocol ARP messages;
Data sink, for receiving the arp response message of BRAS, obtains IP address corresponding from arp response message
The MAC Address of BRAS, the MAC Address for obtaining is stored in the BRAS lists.
With reference to the first possible implementation of second aspect, in the third possible implementation of second aspect,
Second transceiver is additionally operable to forward terminal unit to the message of the dialing procedure of BRAS;
The processor is additionally operable to obtain MAC Address, the MAC of BRAS of terminal unit from the dialing procedure of terminal unit
Address and Session ID, the MAC Address, the MAC Address of BRAS and the Session ID that obtain terminal unit are formed
Corresponding relation is saved in the memorizer.
With reference to second aspect to second aspect the third in any one possible implementation, at the 4th kind of second aspect
In possible implementation, the access device is optical line terminal OLT, Digital Subscriber Line Access Multiplexer DSLAM or many industry
Business access node MSAN.
A third aspect of the present invention is to provide a kind of dial system, including access device, terminal unit and broadband access
Server B RAS, the terminal unit is connected to the BRAS by the access device, wherein,
The access device, for sending probe messages in network, obtains media access control MAC of online BRAS
Address, the MAC Address of the BRAS of acquisition is stored in BRAS lists;Send out to the corresponding BRAS of MAC Address in BRAS lists
Handshake message is sent, to obtain the current state of corresponding BRAS;The MAC Address of the BRAS in off-line state is obtained, from BRAS
MAC Address and the MAC Address of terminal unit and the corresponding relation of session Session ID in obtain and belong in offline
The MAC Address and Session ID of the terminal unit of the BRAS of state;And according to obtain terminal unit MAC Address and
Session ID to corresponding terminal unit sends offline notice message;
Terminal unit, for being dialled after the offline notice message for receiving access device.
In the first possible implementation of the third aspect, the access device is additionally operable to terminal unit to BRAS's
Dialing procedure is monitored, obtain from the dialing procedure of terminal unit the MAC Address of terminal unit, the MAC Address of BRAS, with
And Session ID, the MAC Address, the MAC Address of BRAS and the Session ID that obtain terminal unit are formed into corresponding relation
It is saved on the access device.
The solution have the advantages that:Access device sends probe messages in network, obtains the MAC ground of online BRAS
Location, the MAC Address of the BRAS of acquisition is stored in BRAS lists, is sent out to the corresponding BRAS of MAC Address in the BRAS lists
Handshake message is sent, whether to obtain corresponding BRAS in off-line state, when the MAC Address for obtaining the BRAS in off-line state
Afterwards, from the MAC Address and the MAC Address of terminal unit and the corresponding relation of Session ID of BRAS, acquisition belongs to place
In the MAC Address and Session ID of the terminal unit of the BRAS of off-line state, according to the MAC Address of the terminal unit for obtaining and
Session ID to corresponding terminal unit sends offline notice message, so that corresponding terminal unit is dialled, due to
It is whether online by finding out BRAS, it is actively offline logical to terminal unit transmission on the BRAS is connected to when finding that the BRAS is offline
Know message so that terminal unit can automatically re-start dialing process, therefore, effectively reduce because of BRAS failures or company
Connect failure and the caused service outage duration of offline institute.
Specific embodiment
The configuration diagram of the network that Fig. 1 is applied by the Dialing Method of terminal unit of the present invention, as shown in figure 1, the net
Network includes BRAS 11, access node(Access Node;Referred to as:AN)12 and terminal unit 13.Wherein, BRAS 11 can have
There is annexation in one or more interfaces, each interface and an AN 12.AN 12 can respectively with the interface of multiple BRAS 11
There is annexation.User equipment 13 is only attached with during once reaching the standard grade with an AN 12.
In addition, AN 12 can include digital subscriber line access multiplex(Digital Subscriber
LineAccess Multiplexer;Referred to as:DSLAM)Or integrated service access device(Multi-ServiceAccess
Node;Referred to as:MSAN)Deng.User equipment 13 can include the pppoe client equipment such as home gateway, Modem, STB, PC.
Fig. 2 is the flow chart of one embodiment of the Dialing Method of terminal unit of the present invention, the net with reference to shown in above-mentioned Fig. 1
The structural representation of network, as shown in Fig. 2 the executive agent of the present embodiment is access node, then the method includes:
Step 101, access device send probe messages in network, obtain the media access control of online BRAS
(Media Access Control;Referred to as:MAC)Address, the MAC Address of the BRAS of acquisition is stored in BRAS lists.
Step 102, access device to the corresponding BRAS of MAC Address in the BRAS lists sends handshake message, to obtain
The current state of corresponding BRAS.
Preferably, can be every first scheduled time, respectively the MAC Address to each BRAS in BRAS lists is corresponding
Shaken hands between BRAS, i.e., handshake message is sent to the corresponding BRAS of MAC Address of each BRAS, to obtain corresponding BRAS
Whether be in off-line state.Wherein, first scheduled time can be to be configured according to practical situation, for example:This
One scheduled time can be 0.5 second, i.e., every 0.5 second, just respectively to each BRAS transmission handshake message.
It is further preferable that access point control protocol can be adopted(Access Node Control Protocol;Referred to as:
ANCP), packet internet groper(Packet internet groper;Referred to as:PING), address resolution protocol(Address
Resolution Protocol;Referred to as:ARP), broadcast PADI or unicast PADI modes, respectively with BRAS lists in each
Shaken hands between the corresponding BRAS of MAC Address of BRAS.
Step 103, access device obtain the MAC Address of the BRAS in off-line state, from the MAC Address and terminal of BRAS
In the MAC Address of equipment and the corresponding relation of session Session ID, acquisition belongs to the end of the BRAS in off-line state
The MAC Address and Session ID of end equipment.
In the present embodiment, it should be noted that when continuously shake hands between BRAS expired times equal to predetermined threshold when,
The BRAS is illustrated in off-line state, then from the MAC Address and the MAC Address and Session ID of terminal unit of BRAS
In, acquisition belongs to the MAC Address and Session ID of the terminal unit of the BRAS in off-line state.
In the present embodiment, for example, when predetermined threshold be 3 when, access device every first scheduled time, to BRAS
Each BRAS in list sends respectively handshake message, if not receiving the response report that certain BRAS is returned in time threshold
Text, then be considered as the BRAS and once shake hands time-out, if the BRAS recurs 3 time-out of shaking hands, be considered as the BRAS from
Line(Break down or connecting fault), now, obtain the MAC Address of terminal unit that is connected with the BRAS and distribute
Session ID。
Step 104, access device set according to the MAC Address and Session ID of the terminal unit for obtaining to corresponding terminal
Preparation send offline notice message, so that corresponding terminal unit is dialled.
In the present embodiment, the offline notice message is tried to explore to terminate for PPPOE(PPPOE ActiveDiscovery
Terminal;Referred to as:PADT)Message, or PADX messages, or carry the PADT messages of the mark that dials again immediately.Its
In, PADX messages refer to copies PADT messages, by using new code values, constructs a kind of new message with specific meanings.
Relative to terminal unit, often several seconds of time delay is being re-started for dialing processes after PADT messages are received, terminal unit
Dialing process can be immediately re-started after PADX messages are received, therefore terminal unit is not required to after PADX messages are received
Wait and both can re-start dialing to process, service outage duration in more efficiently shortening.
In the present embodiment, access device sends probe messages in network, obtains the MAC Address of online BRAS, will
The MAC Address of the BRAS of acquisition is stored in BRAS lists, is sent to the corresponding BRAS of MAC Address in the BRAS lists and is shaken hands
Message, to obtain the current state of corresponding BRAS, after obtaining the MAC Address in the BRAS of off-line state, from the MAC of BRAS
In the corresponding relation of the MAC Address and Session ID of address and terminal unit, acquisition is belonged in off-line state
The MAC Address and Session ID of the terminal unit of BRAS, according to obtain terminal unit MAC Address and Session ID to
Corresponding terminal unit sends offline notice message, so that corresponding terminal unit is dialled, due to by finding out BRAS
Whether online, the active when finding that the BRAS is offline sends offline notice message to terminal unit on the BRAS is connected to so that
Terminal unit can automatically re-start dialing process, therefore, effectively reduce because of BRAS failures or connecting fault from
Service outage duration caused by line institute.
Fig. 3 is the flow chart of another embodiment of the Dialing Method of terminal unit of the present invention, is being implemented shown in above-mentioned Fig. 1
On the basis of example, as shown in Fig. 2 a kind of specific implementation in step 101 is:
Step 101a, access device to the BRAS in network sends Ethernet bearing point-to-point protocol(Point-to-
Point Protocol over Ethernet;Referred to as:PPPoE)Activation finds start packet(PPPOE Active
Discovery Initiation;Referred to as:PADI)Message.
Step 101b, access device receive the PPPoE activation discovery phase service messages of BRAS(PPPOEActive
Discovery Offer;Referred to as:PADO)Message, obtains the MAC Address of the BRAS from the PADO messages, the BRAS that will be obtained
MAC Address store in the BRAS lists.
In this embodiment, it is preferred that, access device can send every second scheduled time to the BRAS in network
PADI messages.Wherein, second scheduled time can be to be configured according to practical situation, for example:Second scheduled time
It can be 10 seconds.
In the present embodiment, receiving device sends PADI messages to up direction(The PADI messages are broadcasting packet), institute
The BRAS for having the PADI for receiving can respond a PADO message, when receiving the PADO messages, it is possible to from PADO reports
The MAC Address of the BRAS of its transmission is obtained on text, so as to detect the BRAS which has online on network.Wherein, the MAC Address
Can be used as the unique mark of BRAS.
Preferably, after step 101b, before step 102, the method can also include:
Step 101c, access device are monitored to terminal unit to the dialing procedure of BRAS, from the dialing of terminal unit
During obtain the MAC Address of terminal unit, the MAC Address of BRAS and Session ID, the MAC of terminal unit will be obtained
Address, the MAC Address of BRAS and SessionID form corresponding relation and are saved on the access device.
It is further preferable that a kind of specific implementation of step 101c is:
Access device receives the PPPoE activation of BRAS and finds that session confirms packet(PPPOE ActiveDiscovery
Session-confirmation;Referred to as:PADS)Message;
Access device is by the MAC Address of terminal unit in the PADS messages, the MAC Address of BRAS and Session ID
Form corresponding relation to be stored on the access device.
In the present embodiment, for each terminal unit, when terminal unit is dialled, first sound can be selected
The BRAS for answering is as certificate server and connected.Simultaneously as terminal unit is needed through AN when dialling, therefore, AN
Can listen to certificate server return to terminal unit PPPOE try to explore meeting confirmation(PPPOE Active
Discovery Session-confirmation;Referred to as:PADS)Message, so as to record the essential information of the user, i.e. end
The MAC Address and meeting identification of end equipment(Session ID), set up the MAC Address and Session ID of the terminal unit with
And the mapping relations of the MAC Address of the BRAS.
Also, it should be noted that step 101 can also have following another specific implementation:
Access device sends address resolution protocol according to the IP address of the BRAS being pre-configured with to the corresponding BRAS of IP address
(Address Resolution Protocol;Referred to as:ARP)Message;
Access device receives the arp response message of BRAS, obtains the corresponding BRAS's of IP address from arp response message
MAC Address, the MAC Address for obtaining is stored in BRAS lists.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Fig. 4 is the structural representation of one embodiment of access device of the present invention, as shown in figure 4, the access of the present embodiment
Equipment includes the first transceiver 21, the second transceiver 22, processor 23, the 3rd transceiver 24 and memorizer 25, wherein, first receives
Sending out machine 21 is used to send probe messages in network, obtains the MAC Address of online BRAS, by the MAC Address of the BRAS for obtaining
In being stored in BRAS lists;Second transceiver 22 is used to send report of shaking hands to the corresponding BRAS of MAC Address in the BRAS lists
Text, to obtain the current state of corresponding BRAS;Processor 23 is used to obtain the MAC Address of the BRAS in off-line state, from
In the corresponding relation of the MAC Address of BRAS and the MAC Address of terminal unit and session Session ID, acquisition is belonged to and is in
The MAC Address and Session ID of the terminal unit of the BRAS of off-line state;3rd transceiver 24 is used for according to the terminal for obtaining
The MAC Address and Session ID of equipment to corresponding terminal unit sends offline notice message, so that corresponding terminal sets
It is standby to be dialled;Memorizer 25 is used to store the BRAS lists.
The access device of the present embodiment can perform the technical scheme of embodiment of the method shown in Fig. 2, and it realizes that principle is similar
Seemingly, here is omitted.
In addition, first transceiver 21, the second transceiver 22 and the 3rd transceiver 24 can be same transceiver, it is also possible to
It is three independent transceivers.Processor 23 can be central processing unit(CentralProcessing Unit;Referred to as:CPU)
Deng.The concrete form of memorizer 25 can be RAM, ROM, flash memory Flash etc..Wherein, in addition it is also necessary to explanation, access device is worked as
For DSLAM when, above-mentioned transceiver can be combined transceiving machine;When access device is OLT, above-mentioned transceiver can be received and dispatched for light
Machine;When access device is MSAN, above-mentioned transceiver can be Ethernet switching chip(LSW), FPGA(Field-
Programmable Gate Array;Referred to as:FPGA)Or network processing unit(Network Processor;Referred to as:NP)
Deng.
In the present embodiment, access device sends probe messages in network, obtains the MAC Address of online BRAS, will
The MAC Address of the BRAS of acquisition is stored in BRAS lists, is sent to the corresponding BRAS of MAC Address in the BRAS lists and is shaken hands
Message, whether to obtain corresponding BRAS in off-line state, after the MAC Address in the BRAS of off-line state is obtained, from
In the corresponding relation of the MAC Address of BRAS and the MAC Address of terminal unit and Session ID, acquisition is belonged in offline
The MAC Address and Session ID of the terminal unit of the BRAS of state, according to obtain terminal unit MAC Address and
Session ID to corresponding terminal unit sends offline notice message, so that corresponding terminal unit is dialled, due to
It is whether online by finding out BRAS, it is actively offline logical to terminal unit transmission on the BRAS is connected to when finding that the BRAS is offline
Know message so that terminal unit can automatically re-start dialing process, therefore, effectively reduce because of BRAS failures or company
Connect failure and the caused service outage duration of offline institute.
Fig. 5 is the structural representation of another embodiment of access device of the present invention, in the base of above-mentioned embodiment illustrated in fig. 5
On plinth, as shown in figure 5, first transceiver 21 is specifically included:Data transmitter 211 and data sink 212;Wherein, data
Transmitter 211 is used to send PADI messages to the BRAS in the network;Data sink 212 is used to receive the PADO reports of BRAS
Text, obtains the MAC Address of BRAS from the PADO messages, by the MAC Address storage of the BRAS for obtaining to the BRAS lists
In.
Or, data transmitter 211 is used for the IP address according to the BRAS being pre-configured with, and sends out to the corresponding BRAS of IP address
Send ARP message;Data sink 212 is used to receive the arp response message of BRAS, from arp response message
The MAC Address of the corresponding BRAS of IP address is obtained, the MAC Address for obtaining is stored in the BRAS lists.
Preferably, the second transceiver 22 is additionally operable to forward terminal unit to the message of the dialing procedure of BRAS;
Processor 23 is additionally operable to obtain the MAC ground of the MAC Address of terminal unit, BRAS from the dialing procedure of terminal unit
Location and Session ID, form right by the MAC Address, the MAC Address of BRAS and the Session ID that obtain terminal unit
Should be related to and be saved in the memorizer 25.
It is further preferable that the access device is OLT, DSLAM or MSAN.
Present invention also offers a kind of dial system, including:Access device, terminal unit, BRAS.Terminal unit is by connecing
Enter equipment and be connected to BRAS, wherein, the access device, for sending probe messages in network, obtains the matchmaker of online BRAS
Body access control MAC addresses, the MAC Address of the BRAS of acquisition is stored in BRAS lists;MAC Address in BRAS lists
Corresponding BRAS sends handshake message, whether to obtain corresponding BRAS in off-line state;Obtain in off-line state
The MAC Address of BRAS, from the MAC Address and the MAC Address and the corresponding relation of session Session ID of terminal unit of BRAS
Middle acquisition belongs to the MAC Address and Session ID of the terminal unit of the BRAS in off-line state;And according to acquisition
The MAC Address and SessionID of terminal unit to corresponding terminal unit sends offline notice message;
Terminal unit, for being dialled after the offline notice message for receiving access device.
Furthermore it is preferred that access device is additionally operable to be monitored terminal unit to the dialing procedure of BRAS, set from terminal
MAC Address, the MAC Address of BRAS and the Session ID of terminal unit are obtained in standby dialing procedure, terminal will be obtained and set
Standby MAC Address, the MAC Address of BRAS and Session ID form corresponding relation and are saved on the access device.
Finally it should be noted that:Various embodiments above only to illustrate technical scheme, rather than a limitation;To the greatest extent
Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to
So the technical scheme described in foregoing embodiments can be modified, either which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, do not make the essence disengaging various embodiments of the present invention technology of appropriate technical solution
The scope of scheme.