WO2014090194A1 - Dialing method of terminal device, and access device - Google Patents

Dialing method of terminal device, and access device Download PDF

Info

Publication number
WO2014090194A1
WO2014090194A1 PCT/CN2013/089424 CN2013089424W WO2014090194A1 WO 2014090194 A1 WO2014090194 A1 WO 2014090194A1 CN 2013089424 W CN2013089424 W CN 2013089424W WO 2014090194 A1 WO2014090194 A1 WO 2014090194A1
Authority
WO
WIPO (PCT)
Prior art keywords
bras
mac address
terminal device
message
session
Prior art date
Application number
PCT/CN2013/089424
Other languages
French (fr)
Chinese (zh)
Inventor
赵胜涛
薛俊杰
张成国
张少毅
李春梅
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014090194A1 publication Critical patent/WO2014090194A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • H04L12/287Remote access server, e.g. BRAS
    • H04L12/2872Termination of subscriber connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2858Access network architectures
    • H04L12/2859Point-to-point connection between the data network and the subscribers

Definitions

  • the present invention relates to communications technologies, and in particular, to a dialing method and an access device for a terminal device. Background technique
  • BRAS Broadband Remote Access Servers
  • PPPoE Point To Point Protocol Over Ethernet
  • the connection is established with the first responding BRAS, that is, the first responding BRAS is selected as the authentication server.
  • LCP Link Control Protocol
  • the present invention provides a dialing method and an access device for a terminal device, which are used to reduce service interruption time caused by offline failure due to BRAS failure or connection failure.
  • a first aspect of the present invention provides a method for dialing a terminal device, including:
  • the access device sends a probe packet to the network, obtains a media access control MAC address of the online broadband access server BRAS, and stores the obtained MAC address of the BRAS in the BRAS list; the access device is in the BRAS list.
  • the BRAS corresponding to the MAC address sends a handshake message to obtain the current state of the corresponding BRAS;
  • the access device acquires the MAC address of the BRAS in an offline state, from the MAC of the BRAS Obtaining, in the correspondence between the address and the MAC address of the terminal device and the session session ID, the MAC address and the Session ID of the terminal device belonging to the BRAS in the offline state;
  • the access device sends an offline notification message to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device, so that the corresponding terminal device performs dialing.
  • the access device sends a probe packet to the network, obtains a media access control MAC address of the online broadband access server BRAS, and saves the acquired MAC address of the BRAS.
  • BRAS list specifically:
  • the access device sends an Ethernet bearer point-to-point protocol PPPoE activation discovery start packet PADI message to the BRAS in the network;
  • the access device receives the PADO packet of the PPPoE activation discovery phase service packet of the BRAS, obtains the MAC address of the BRAS from the PADO message, and stores the acquired MAC address of the BRAS into the BRAS list.
  • the access device sends a probe packet to the network, and obtains a media access control MAC address of the online broadband access server BRAS, which is obtained.
  • the MAC address of the BRAS is saved in the BRAS list, including:
  • the access device sends an address resolution protocol ARP ⁇ message to the BRAS corresponding to the IP address according to the pre-configured BRAS IP address;
  • the access device receives the ARP response packet of the BRAS, obtains the MAC address of the BRAS corresponding to the IP address from the ARP response packet, and stores the obtained MAC address in the BRAS list.
  • the access device sends a probe packet to the network, and obtains a media access control MAC address of the online broadband access server BRAS, which is obtained by After the MAC address of the BRAS is saved in the BRAS list, the method further includes:
  • the access device monitors the dialing process of the terminal device to the BRAS, obtains the MAC address of the terminal device, the MAC address of the BRAS, and the session ID from the dialing process of the terminal device, and obtains the MAC address of the terminal device and the MAC address of the BRAS.
  • the address and the session ID form a correspondence relationship and are saved to the access device.
  • the access device monitors a dialing process of the terminal device to the BRAS, and the dialing process of the slave terminal device Obtain the MAC address of the terminal device, the MAC address of the BRAS, and the Session ID. Specifically include:
  • the access device receives the BRAS Ethernet bearer point-to-point protocol PPPoE activation discovery session acknowledgement packet PADS message;
  • the access device stores, in the PADS packet, a MAC address of the terminal device, a MAC address of the BRAS, and a session ID in a corresponding relationship on the access device.
  • a second aspect of the present invention provides an access device, including: a first transceiver, configured to send a probe packet to a network, obtain a media access control MAC address of an online broadband access server BRAS, and obtain a BRAS.
  • the MAC address is saved in the BRAS list;
  • a second transceiver configured to send a handshake message to the BRAS corresponding to the MAC address in the BRAS list, to obtain a current state of the corresponding BRAS;
  • a processor configured to obtain a MAC address of the BRAS in an offline state, and obtain a MAC address of the terminal device belonging to the offline BRAS from the correspondence between the MAC address of the BRAS and the MAC address of the terminal device and the session session ID Session ID;
  • a third transceiver configured to send a offline notification message to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device, so that the corresponding terminal device performs dialing;
  • a memory for storing the BRAS list.
  • the first transceiver specifically includes: a data transmitter, configured to send an Ethernet bearer point-to-point protocol PPPoE activation discovery start packet PADI to a BRAS in the network ;
  • the data receiver is configured to receive the PADO packet of the PPPoE activation discovery phase service packet of the BRAS, obtain the MAC address of the BRAS from the PADO packet, and store the obtained MAC address of the BRAS into the BRAS list.
  • the first transceiver specifically includes:
  • a data sender configured to send an address resolution protocol ARP ⁇ message to the BRAS corresponding to the IP address according to the pre-configured BRAS IP address;
  • the data receiver is configured to receive the ARP response packet of the BRAS, obtain the MAC address of the BRAS corresponding to the IP address from the ARP response packet, and store the obtained MAC address in the BRAS list.
  • the second transceiver is further configured to forward the packet of the terminal device to the BRAS dialing process; the processor is further configured to obtain the MAC address of the terminal device and the MAC address of the BRAS from the dialing process of the terminal device.
  • the address and the session ID are stored in the memory by the MAC address of the terminal device, the MAC address of the BRAS, and the session ID.
  • the access device is an optical line terminal OLT, and a digital subscriber line access complex A DSLAM or a multi-service access node MSAN.
  • a third aspect of the present invention provides a dialing system, including an access device, a terminal device, and a broadband access server BRAS, wherein the terminal device is connected to the BRAS through the access device, where
  • the access device is configured to send a probe packet to the network, obtain a media access control MAC address of the online BRAS, and save the acquired MAC address of the BRAS in the BRAS list; and the BRAS corresponding to the MAC address in the BRAS list Sending a handshake message to obtain the current state of the corresponding BRAS; obtaining the MAC address of the BRAS in the offline state, obtaining the attribution from the correspondence between the MAC address of the BRAS and the MAC address of the terminal device and the session session ID The MAC address and the session ID of the terminal device of the BRAS; and sending the offline notification message to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device;
  • the terminal device is configured to perform dialing after receiving the offline notification message of the access device.
  • the access device is further configured to monitor a dialing process of the terminal device to the BRAS, and obtain a MAC address of the terminal device and a MAC address of the BRAS from the dialing process of the terminal device. And the session ID, and the MAC address of the terminal device, the MAC address of the BRAS, and the session ID are associated with each other and saved to the access device.
  • the technical effect of the present invention is that the access device sends a probe packet to the network, obtains the MAC address of the online BRAS, and stores the acquired MAC address of the BRAS in the BRAS list, and the BRAS corresponding to the MAC address in the BRAS list. Send a handshake packet to obtain whether the corresponding BRAS is offline. After obtaining the MAC address of the BRAS in the offline state, obtain the attribution from the MAC address of the BRAS and the MAC address of the terminal device and the session ID.
  • the MAC address and the session ID of the terminal device of the offline BRAS are sent to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device, so as to make the corresponding end
  • the terminal device performs dialing.
  • the offline notification message is sent to the terminal device connected to the BRAS, so that the terminal device can automatically perform the dialing process again, thereby effectively reducing the number of times. Service interruption time caused by offline failure due to BRAS failure or connection failure.
  • FIG. 1 is a schematic structural diagram of a network to which a dialing method of a terminal device of the present invention is applied;
  • FIG. 2 is a flowchart of an embodiment of a dialing method of a terminal device according to the present invention
  • FIG. 3 is a flowchart of another embodiment of a dialing method of a terminal device according to the present invention.
  • FIG. 4 is a schematic structural diagram of an embodiment of an access device according to the present invention.
  • FIG. 5 is a schematic structural diagram of another embodiment of an access device according to the present invention.
  • the network includes a BRAS 11, an access node (Access Node; abbreviated as AN) 12, and a terminal device 13.
  • the BRAS 11 may have one or more interfaces, and each interface has a connection relationship with an AN 12.
  • the AN 12 can be connected to the interfaces of multiple BRASs 11, respectively.
  • the user equipment 13 is connected to only one AN 12 during the same online procedure.
  • the AN 12 may include a Digital Subscriber Line Access Multiplexer (DSLAM) or a Multi-Service Access Node (MSAN).
  • the user equipment 13 may include a PPPoE client device such as a home gateway, Modern, STB, or PC.
  • 2 is a flowchart of an embodiment of a dialing method of a terminal device according to the present invention.
  • the execution body of the embodiment is an access node, and the method is Includes:
  • Step 101 The access device sends a probe packet to the network, obtains a Media Access Control (MAC) address of the online BRAS, and saves the obtained MAC address of the BRAS in the BRAS list.
  • MAC Media Access Control
  • Step 102 The access device sends a handshake packet to the BRAS corresponding to the MAC address in the BRAS list, to obtain the current state of the corresponding BRAS.
  • the handshake may be performed to the BRAS corresponding to the MAC address of each BRAS in the BRAS list, that is, the handshake message is sent to the BRAS corresponding to the MAC address of each BRAS, to obtain a corresponding correspondence.
  • the first predetermined time may be configured according to actual conditions. For example, the first predetermined time may be 0.5 seconds, that is, every 0.5 seconds, a handshake "3 ⁇ 4 text" is sent to each BRAS.
  • an Access Node Control Protocol (ANCP), a Packet Internet Groper (PING), and an Address Resolution Protocol (ARP) may be used.
  • ANCP Access Node Control Protocol
  • PING Packet Internet Groper
  • ARP Address Resolution Protocol
  • broadcast PADI or unicast PADI mode respectively, handshake with the BRAS corresponding to the MAC address of each BRAS in the BRAS list.
  • Step 103 The access device acquires the MAC address of the BRAS in the offline state, and obtains the MAC address of the terminal device belonging to the BRAS in the offline state from the correspondence between the MAC address of the BRAS and the MAC address of the terminal device and the session session ID. And the Session ID.
  • the BRAS when the number of consecutive handshake timeouts with the BRAS is equal to a predetermined threshold, that is, the BRAS is offline, from the MAC address of the BRAS and the MAC address of the terminal device and the Session ID. Obtain the MAC address and Session ID of the terminal device belonging to the BRAS in the offline state.
  • the access device when the predetermined threshold is 3, the access device sends a handshake message to each BRAS in the BRAS list every first predetermined time, if not received within the time threshold.
  • the response message returned by a certain BRAS is regarded as a handshake timeout for the BRAS. If the BRAS has 3 consecutive handshake timeouts, the BRAS is considered to be offline (fault or connection failure).
  • Step 104 The access device sends an offline notification message to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device, so that the corresponding terminal device performs dialing.
  • the offline notification message is a PPPOE Active Discovery Terminal (PADT) message, or a PADX message, or a PADT message carrying an immediate redial identification.
  • PADX message generally refers to the PADT message, and uses a new code value to construct a new message with a specific meaning.
  • the terminal device After receiving the PADT packet, the terminal device will delay the dialing process for a few seconds. After receiving the PADX packet, the terminal device will perform the dialing process immediately, so the terminal device receives the PADX packet. After, no need Waiting can re-do the dialing process, and more effectively shorten the mid-business interruption time.
  • the access device sends a probe packet to the network, obtains the MAC address of the online BRAS, and stores the obtained MAC address of the BRAS in the BRAS list, and sends the BRAS to the BRAS corresponding to the MAC address in the BRAS list.
  • the handshake is performed, the current state of the corresponding BRAS is obtained, and after obtaining the MAC address of the BRAS in the offline state, the attribution is obtained from the correspondence between the MAC address of the BRAS and the MAC address of the terminal device and the session ID.
  • the MAC address and the session ID of the terminal device of the BRAS are sent to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device, so that the corresponding terminal device performs dialing, because it is determined whether the BRAS is online or not.
  • the offline notification message is sent to the terminal device connected to the BRAS, so that the terminal device can automatically perform the dialing process again, thereby effectively reducing the offline caused by the BRAS failure or the connection failure. Business interruption time.
  • FIG. 3 is a flowchart of another embodiment of the dialing method of the terminal device according to the present invention.
  • a specific implementation manner in step 101 is as follows:
  • Step 101 The access device sends a PPPOE Active Discovery Initiation (PADIE) to the BRAS in the network to send a PPPOE Active Discovery Initiation (PADI).
  • PADI PPPOE Active Discovery Initiation
  • Step 101b The access device receives a PPPOE Active Discovery Offer (PADO) packet of the BRAS, obtains the MAC address of the BRAS from the PADO packet, and stores the obtained MAC address of the BRAS. Go to the BRAS list.
  • PADO PPPOE Active Discovery Offer
  • the access device may send a PADI message to the BRAS in the network every second predetermined time.
  • the second predetermined time may be configured according to actual conditions, for example, the second predetermined time may be 10 seconds.
  • the receiving device sends a PADI message to the upstream direction (the PADI message is a broadcast message), and all received PADI BRASs respond to a PADO message.
  • the receiving device can The MAC address of the BRAS sent by the PADO message is obtained from the PADO message, thereby detecting which online BRASs are on the network.
  • the MAC address can be used as the unique identifier of the BRAS.
  • the method may further include:
  • Step 101c The access device monitors the dialing process of the terminal device to the BRAS, and the slave terminal sets The MAC address of the terminal device, the MAC address of the BRAS, and the session ID are obtained in the backup dialing process, and the MAC address of the terminal device, the MAC address of the BRAS, and the session ID are stored in the corresponding relationship.
  • step 101c is:
  • the access device receives the PPPoE Active Discovery Session-Confirmation (PADS) of the BRAS;
  • PADS PPPoE Active Discovery Session-Confirmation
  • the access device stores the MAC address of the terminal device in the PADS packet, the MAC address of the BRAS, and the session ID in a corresponding relationship on the access device.
  • the first responding BRAS is selected as an authentication server and connected thereto.
  • the AN can listen to the PPPOE Active Discovery Session-Confirmation (PADS) message returned by the authentication server to the terminal device, thereby recording the basic of the user.
  • PADS Active Discovery Session-Confirmation
  • the information that is, the MAC address of the terminal device and the session ID, establishes a mapping relationship between the MAC address of the terminal device and the session ID and the MAC address of the BRAS.
  • step 101 may also have another specific implementation as follows:
  • the access device sends an Address Resolution Protocol (ARP) packet to the BRAS corresponding to the IP address according to the pre-configured BRAS IP address;
  • ARP Address Resolution Protocol
  • the access device receives the ARP response packet of the BRAS, obtains the MAC address of the BRAS corresponding to the IP address from the ARP response packet, and stores the obtained MAC address in the BRAS list.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
  • the access device of this embodiment includes a first transceiver 21, a second transceiver 22, a processor 23, and a third transceiver. And a memory 25, wherein the first transceiver 21 is configured to send a probe message to the network, obtain a MAC address of the online BRAS, and save the acquired MAC address of the BRAS in the BRAS list; the second transceiver 22 is configured to: Sending a handshake message to the BRAS corresponding to the MAC address in the BRAS list to obtain the current state of the corresponding BRAS; the processor 23 is configured to acquire the BRAS in the offline state.
  • the MAC address, the MAC address of the terminal device belonging to the BRAS in the offline state is obtained from the MAC address of the BRAS and the MAC address of the terminal device and the session session ID, and the offline notification message is sent to the corresponding terminal device. So that the corresponding terminal device dials; the memory 25 is used to store the BRAS list.
  • the access device in this embodiment can perform the technical solution of the method embodiment shown in FIG. 2, and the implementation principle is similar, and details are not described herein again.
  • first transceiver 21, the second transceiver 22, and the third transceiver 24 may be the same transceiver or three independent transceivers.
  • the processor 23 can be a central processing unit (CPU) or the like.
  • the specific form of the memory 25 may be RAM, ROM, flash memory, or the like.
  • the transceiver when the access device is a DSLAM, the transceiver may be a joint transceiver; when the access device is an OLT, the transceiver may be an optical transceiver; when the access device is an MSAN,
  • the transceiver may be an Ethernet Switching Chip (LSW), a Field-Programmable Gate Array (FPGA), or a Network Processor (abbreviation: NP).
  • LSW Ethernet Switching Chip
  • FPGA Field-Programmable Gate Array
  • NP Network Processor
  • the access device sends a probe packet to the network, obtains the MAC address of the online BRAS, and stores the obtained MAC address of the BRAS in the BRAS list, and sends the BRAS to the BRAS corresponding to the MAC address in the BRAS list.
  • the handshake message is used to obtain whether the corresponding BRAS is offline.
  • the MAC address of the BRAS in the offline state is obtained, the MAC address of the BRAS and the MAC address of the terminal device of the BRAS and the session ID are obtained according to the acquired terminal device.
  • the MAC address and the session ID send the offline notification message to the corresponding terminal device, so that the corresponding terminal device performs dialing.
  • the BRAS Since the BRAS is found to be online, the BRAS is actively sent to the terminal device connected to the BRAS when the BRAS is offline.
  • the offline notification message enables the terminal device to automatically perform the dialing process again. Therefore, the service interruption time caused by the offline failure due to the BRAS failure or the connection failure is effectively reduced.
  • FIG. 5 is a schematic structural diagram of another embodiment of an access device according to the present invention.
  • the first transceiver 21 specifically includes: a data transmitter 211 and data. a receiver 212; wherein, the data transmitter 211 is configured to send a PADI message to the BRAS in the network; the data receiver 212 is configured to receive the PADO message of the BRAS, and obtain the PADO message from the PADO message.
  • the MAC address of the BRAS stores the acquired MAC address of the BRAS into the BRAS list.
  • the data transmitter 211 is configured to send an address resolution protocol ARP message to the BRAS corresponding to the IP address according to the IP address of the pre-configured BRAS; the data receiver 212 is configured to receive the BRAS.
  • the ARP response packet obtains the MAC address of the BRAS corresponding to the IP address from the ARP response packet, and stores the obtained MAC address in the BRAS list.
  • the second transceiver 22 is further configured to forward the packet of the terminal device to the BRAS dialing process
  • the processor 23 is further configured to obtain the MAC address of the terminal device, the MAC address of the BRAS, and the session ID from the dialing process of the terminal device, and save the correspondence between the MAC address of the acquiring terminal device, the MAC address of the BRAS, and the Session ID to In the memory 25.
  • the access device is an OLT, a DSLAM or an MSAN.
  • the invention also provides a dialing system, comprising: an access device, a terminal device, and a BRAS.
  • the terminal device is connected to the BRAS through the access device, where the access device is configured to send the probe packet to the network, obtain the media access control MAC address of the online BRAS, and save the obtained MAC address of the BRAS in the BRAS list.
  • the terminal device is configured to perform dialing after receiving the offline notification message of the access device.
  • the access device is further configured to monitor the dialing process of the terminal device to the BRAS, obtain the MAC address of the terminal device, the MAC address of the BRAS, and the session ID from the dialing process of the terminal device, and obtain the terminal device.
  • the MAC address, the MAC address of the BRAS, and the session ID are stored in the corresponding relationship and saved to the access device.

Abstract

The present invention provides a dialing method of a terminal device, and an access device. The method comprises: an access device sending a detection message to a network, obtaining a media access control (MAC) address of an on-line broadband remote access server (BRAS), and saving the obtained MAC address of the BRAS in a BRAS list; sending a handshake message to a BRAS corresponding to a MAC address in the BRAS list, so as to obtain whether the corresponding BRAS is in an off-line state; obtaining a MAC address of a BRAS in an off-line state, and obtaining, from a correspondence relationship between a MAC address of a BRAS and a MAC address and a Session ID of a terminal device, a MAC address and a Session ID of a terminal device serving the BRAS in an off-line state; and sending an off line notification message to a corresponding terminal device according to the obtained MAC address and Session ID of the terminal device, so that the corresponding terminal device performs dialing.

Description

终端设备的拨号方法和接入设备  Terminal device dialing method and access device
本申请要求于 2012 年 12 月 13 日提交中国专利局、 申请号为 201210538919.7、发明名称为"终端设备的拨号方法和接入设备"的中国专利申请 的优先权, 其全部内容通过引用结合在本申请中。  This application claims priority to Chinese Patent Application No. 201210538919.7, entitled "Dialing Method and Access Device for Terminal Equipment", filed on December 13, 2012, the entire contents of which are incorporated herein by reference. In the application.
技术领域 本发明涉及通信技术, 尤其涉及一种终端设备的拨号方法和接入设备。 背景技术 The present invention relates to communications technologies, and in particular, to a dialing method and an access device for a terminal device. Background technique
目前, 宽带运营商往往使用多个宽带接入服务器( Broadband Remote Access Server; 简称: BRAS )或者一个 BRAS上的多个端口来分担用户和流量。 另夕卜, 在以太网承载 PPP协议( Point To Point Protocol Over Ethernet; 简称: PPPoE ) 用户拨号时,会与第一个响应的 BRAS建立连接, 即选择该第一个响应的 BRAS 作为认证服务器。 在该终端与该 BRAS之间建立连接后, 该终端每隔预定时间, 与该 BRAS之间建立链路控制协议(Link Control Protocol; 简称: LCP )握手, 以判断该 BRAS是否故障。 当该 BRAS发生故障时, 该终端与该 BRAS之间的 LCP握手会连续超时, 从而使得该终端下线重新拨号到其他正常工作的 BRAS 上。  Currently, broadband operators often use multiple Broadband Remote Access Servers (BRAS) or multiple ports on a BRAS to share users and traffic. In addition, when the user dials the PPP (Point To Point Protocol Over Ethernet; PPPoE), the connection is established with the first responding BRAS, that is, the first responding BRAS is selected as the authentication server. After the terminal establishes a connection with the BRAS, the terminal establishes a Link Control Protocol (LCP) handshake with the BRAS every predetermined time to determine whether the BRAS is faulty. When the BRAS fails, the LCP handshake between the terminal and the BRAS will time out continuously, causing the terminal to dial down to other working BRASs.
但是, 通过该终端与该 BRAS之间建立 LCP握手, 判断出该 BRAS故障后 重新拨号到其他正常工作的 BRAS上的过程长达几十秒到几分钟, 因此, 造成 了业务中断时间较长, 用户感知较差的问题。  However, by establishing an LCP handshake between the terminal and the BRAS, it is determined that the process of re-dialing to the BRAS of the normal working BRAS after the failure of the BRAS is several tens of seconds to several minutes, thus causing a long service interruption time. A problem that the user perceives poorly.
发明内容 Summary of the invention
本发明提供一种终端设备的拨号方法和接入设备, 以用于减少因 BRAS故 障或者连接故障而离线所导致的业务中断时间。  The present invention provides a dialing method and an access device for a terminal device, which are used to reduce service interruption time caused by offline failure due to BRAS failure or connection failure.
本发明的第一方面是提供一种终端设备的拨号方法, 包括:  A first aspect of the present invention provides a method for dialing a terminal device, including:
接入设备向网络中发送探测报文, 获取在线的宽带接入服务器 BRAS的媒 体访问控制 MAC地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中; 所述接入设备向所述 BRAS列表中的 MAC地址对应的 BRAS发送握手才艮 文, 以获取对应的 BRAS的当前状态;  The access device sends a probe packet to the network, obtains a media access control MAC address of the online broadband access server BRAS, and stores the obtained MAC address of the BRAS in the BRAS list; the access device is in the BRAS list. The BRAS corresponding to the MAC address sends a handshake message to obtain the current state of the corresponding BRAS;
所述接入设备获取处于离线状态的 BRAS的 MAC地址, 从 BRAS的 MAC 地址和终端设备的 MAC地址以及会话 Session ID的对应关系中,获取归属于处 于离线状态的 BRAS的终端设备的 MAC地址和 Session ID; The access device acquires the MAC address of the BRAS in an offline state, from the MAC of the BRAS Obtaining, in the correspondence between the address and the MAC address of the terminal device and the session session ID, the MAC address and the Session ID of the terminal device belonging to the BRAS in the offline state;
所述接入设备根据获取的终端设备的 MAC地址和 Session ID向对应的终端 设备发送下线通知报文, 以使得对应的终端设备进行拨号。  The access device sends an offline notification message to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device, so that the corresponding terminal device performs dialing.
在第一方面的第一种可能实现方式中, 所述接入设备向网络中发送探测报 文, 获取在线的宽带接入服务器 BRAS的媒体访问控制 MAC地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中, 具体包括:  In a first possible implementation manner of the first aspect, the access device sends a probe packet to the network, obtains a media access control MAC address of the online broadband access server BRAS, and saves the acquired MAC address of the BRAS. In the BRAS list, specifically:
所述接入设备向所述网络中的 BRAS发送以太网承载点对点协议 PPPoE激 活发现起始分组 PADI 艮文;  The access device sends an Ethernet bearer point-to-point protocol PPPoE activation discovery start packet PADI message to the BRAS in the network;
所述接入设备接收 BRAS的 PPPoE激活发现阶段服务报文 PADO报文,从 所述 PADO 4艮文中获取 BRAS的 MAC地址, 将获取的 BRAS的 MAC地址存 储到所述 BRAS列表中。  The access device receives the PADO packet of the PPPoE activation discovery phase service packet of the BRAS, obtains the MAC address of the BRAS from the PADO message, and stores the acquired MAC address of the BRAS into the BRAS list.
结合第一方面, 在第一方面的第二种可能的实现方式中, 所述接入设备向 网络中发送探测报文,获取在线的宽带接入服务器 BRAS的媒体访问控制 MAC 地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中, 具体包括:  With reference to the first aspect, in a second possible implementation manner of the first aspect, the access device sends a probe packet to the network, and obtains a media access control MAC address of the online broadband access server BRAS, which is obtained. The MAC address of the BRAS is saved in the BRAS list, including:
所述接入设备根据预先配置的 BRAS的 IP地址, 向 IP地址对应的 BRAS 发送地址解析协议 ARP ^艮文;  The access device sends an address resolution protocol ARP^ message to the BRAS corresponding to the IP address according to the pre-configured BRAS IP address;
所述接入设备接收 BRAS的 ARP响应报文, 从 ARP响应报文中获取 IP地 址对应的 BRAS的 MAC地址, 将获取的 MAC地址存储到所述 BRAS列表中。  The access device receives the ARP response packet of the BRAS, obtains the MAC address of the BRAS corresponding to the IP address from the ARP response packet, and stores the obtained MAC address in the BRAS list.
结合第一方面, 在第一方面的第三种可能的实现方式中, 所述接入设备向 网络中发送探测报文,获取在线的宽带接入服务器 BRAS的媒体访问控制 MAC 地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中之后, 所述方法还包 括:  With reference to the first aspect, in a third possible implementation manner of the first aspect, the access device sends a probe packet to the network, and obtains a media access control MAC address of the online broadband access server BRAS, which is obtained by After the MAC address of the BRAS is saved in the BRAS list, the method further includes:
所述接入设备对终端设备向 BRAS 的拨号过程进行监控, 从终端设备的拨 号过程中获取终端设备的 MAC地址、 BRAS的 MAC地址、 以及 Session ID, 将获取终端设备的 MAC地址、 BRAS的 MAC地址、 以及 Session ID形成对应 关系保存到所述接入设备上。  The access device monitors the dialing process of the terminal device to the BRAS, obtains the MAC address of the terminal device, the MAC address of the BRAS, and the session ID from the dialing process of the terminal device, and obtains the MAC address of the terminal device and the MAC address of the BRAS. The address and the session ID form a correspondence relationship and are saved to the access device.
结合第一方面的第三种可能的实现方式, 在第一方面的第四种可能的实现 方式中, 所述接入设备对终端设备向 BRAS的拨号过程进行监控, 从终端设备 的拨号过程中获取终端设备的 MAC地址、 BRAS的 MAC地址、以及 Session ID, 具体包括: With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the access device monitors a dialing process of the terminal device to the BRAS, and the dialing process of the slave terminal device Obtain the MAC address of the terminal device, the MAC address of the BRAS, and the Session ID. Specifically include:
所述接入设备接收 BRAS的以太网承载点对点协议 PPPoE激活发现会话确 认分组 PADS报文;  The access device receives the BRAS Ethernet bearer point-to-point protocol PPPoE activation discovery session acknowledgement packet PADS message;
所述接入设备将所述 PADS报文中的终端设备的 MAC地址、 BRAS的 MAC 地址以及 Session ID形成对应关系保存在所述接入设备上。  The access device stores, in the PADS packet, a MAC address of the terminal device, a MAC address of the BRAS, and a session ID in a corresponding relationship on the access device.
本发明的第二方面是提供一种接入设备, 包括: 第一收发机, 用于向网络 中发送探测报文,获取在线的宽带接入服务器 BRAS的媒体访问控制 MAC地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中;  A second aspect of the present invention provides an access device, including: a first transceiver, configured to send a probe packet to a network, obtain a media access control MAC address of an online broadband access server BRAS, and obtain a BRAS. The MAC address is saved in the BRAS list;
第二收发机, 用于向所述 BRAS列表中的 MAC地址对应的 BRAS发送握 手报文, 以获取对应的 BRAS的当前状态;  a second transceiver, configured to send a handshake message to the BRAS corresponding to the MAC address in the BRAS list, to obtain a current state of the corresponding BRAS;
处理器, 用于获取处于离线状态的 BRAS的 MAC地址, 从 BRAS的 MAC 地址和终端设备的 MAC地址以及会话 Session ID的对应关系中,获取归属于处 于离线状态的 BRAS的终端设备的 MAC地址和 Session ID;  a processor, configured to obtain a MAC address of the BRAS in an offline state, and obtain a MAC address of the terminal device belonging to the offline BRAS from the correspondence between the MAC address of the BRAS and the MAC address of the terminal device and the session session ID Session ID;
第三收发机,用于根据获取的终端设备的 MAC地址和 Session ID向对应的 终端设备发送下线通知报文, 以使得对应的终端设备进行拨号;  a third transceiver, configured to send a offline notification message to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device, so that the corresponding terminal device performs dialing;
存储器, 用于存储所述 BRAS列表。  a memory for storing the BRAS list.
在第二方面的第一种可能实现方式中, 所述第一收发机具体包括: 数据发送器,用于向所述网络中的 BRAS发送以太网承载点对点协议 PPPoE 激活发现起始分组 PADI 艮文;  In a first possible implementation manner of the second aspect, the first transceiver specifically includes: a data transmitter, configured to send an Ethernet bearer point-to-point protocol PPPoE activation discovery start packet PADI to a BRAS in the network ;
数据接收器,用于接收 BRAS的 PPPoE激活发现阶段服务报文 PADO报文, 从所述 PADO报文中获取 BRAS的 MAC地址, 将获取的 BRAS的 MAC地址 存储到所述 BRAS列表中。  The data receiver is configured to receive the PADO packet of the PPPoE activation discovery phase service packet of the BRAS, obtain the MAC address of the BRAS from the PADO packet, and store the obtained MAC address of the BRAS into the BRAS list.
结合第二方面, 在第二方面的第二种可能的实现方式中, 所述第一收发机 具体包括:  With reference to the second aspect, in a second possible implementation manner of the second aspect, the first transceiver specifically includes:
数据发送器,用于根据预先配置的 BRAS的 IP地址,向 IP地址对应的 BRAS 发送地址解析协议 ARP ^艮文;  a data sender, configured to send an address resolution protocol ARP^ message to the BRAS corresponding to the IP address according to the pre-configured BRAS IP address;
数据接收器, 用于接收 BRAS的 ARP响应报文, 从 ARP响应报文中获取 IP地址对应的 BRAS的 MAC地址,将获取的 MAC地址存储到所述 BRAS列表 中。  The data receiver is configured to receive the ARP response packet of the BRAS, obtain the MAC address of the BRAS corresponding to the IP address from the ARP response packet, and store the obtained MAC address in the BRAS list.
结合第二方面的第一种可能的实现方式, 在第二方面的第三种可能实现方 式中, 所述第二收发机还用于对终端设备向 BRAS的拨号过程的报文进行转发; 所述处理器还用于从终端设备的拨号过程中获取终端设备的 MAC 地址、 BRAS的 MAC地址、 以及 Session ID, 将获取终端设备的 MAC地址、 BRAS 的 MAC地址、 以及 Session ID形成对应关系保存到所述存储器中。 In conjunction with the first possible implementation of the second aspect, a third possible implementation in the second aspect The second transceiver is further configured to forward the packet of the terminal device to the BRAS dialing process; the processor is further configured to obtain the MAC address of the terminal device and the MAC address of the BRAS from the dialing process of the terminal device. The address and the session ID are stored in the memory by the MAC address of the terminal device, the MAC address of the BRAS, and the session ID.
结合第二方面至第二方面的第三种中任一种可能实现方式, 在第二方面的 第四种可能实现方式中, 所述接入设备为光线路终端 OLT、 数字用户线接入复 用器 DSLAM或者多业务接入节点 MSAN。  With reference to the second aspect, the third possible implementation manner of the third aspect, in the fourth possible implementation manner of the second aspect, the access device is an optical line terminal OLT, and a digital subscriber line access complex A DSLAM or a multi-service access node MSAN.
本发明的第三方面是提供一种拨号系统, 包括接入设备、 终端设备、 以及 宽带接入服务器 BRAS, 所述终端设备通过所述接入设备连接到所述 BRAS, 其 中,  A third aspect of the present invention provides a dialing system, including an access device, a terminal device, and a broadband access server BRAS, wherein the terminal device is connected to the BRAS through the access device, where
所述接入设备, 用于向网络中发送探测报文, 获取在线的 BRAS的媒体访 问控制 MAC地址,将获取的 BRAS的 MAC地址保存在 BRAS列表中;向 BRAS 列表中的 MAC地址对应的 BRAS发送握手 4艮文, 以获取对应的 BRAS的当前 状态; 获取处于离线状态的 BRAS的 MAC地址,从 BRAS的 MAC地址和终端 设备的 MAC地址以及会话 Session ID的对应关系中获取归属于处于离线状态的 BRAS的终端设备的 MAC地址和 Session ID;以及根据获取的终端设备的 MAC 地址和 Session ID向对应的终端设备发送下线通知报文;  The access device is configured to send a probe packet to the network, obtain a media access control MAC address of the online BRAS, and save the acquired MAC address of the BRAS in the BRAS list; and the BRAS corresponding to the MAC address in the BRAS list Sending a handshake message to obtain the current state of the corresponding BRAS; obtaining the MAC address of the BRAS in the offline state, obtaining the attribution from the correspondence between the MAC address of the BRAS and the MAC address of the terminal device and the session session ID The MAC address and the session ID of the terminal device of the BRAS; and sending the offline notification message to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device;
终端设备, 用于在收到接入设备的下线通知报文后进行拨号。  The terminal device is configured to perform dialing after receiving the offline notification message of the access device.
在第三方面的第一种可能实现方式中, 所述接入设备还用于对终端设备向 BRAS的拨号过程进行监控,从终端设备的拨号过程中获取终端设备的 MAC地 址、 BRAS的 MAC地址、以及 Session ID,将获取终端设备的 MAC地址、 BRAS 的 MAC地址、 以及 Session ID形成对应关系保存到所述接入设备上。  In a first possible implementation manner of the third aspect, the access device is further configured to monitor a dialing process of the terminal device to the BRAS, and obtain a MAC address of the terminal device and a MAC address of the BRAS from the dialing process of the terminal device. And the session ID, and the MAC address of the terminal device, the MAC address of the BRAS, and the session ID are associated with each other and saved to the access device.
本发明的技术效果是:接入设备向网络中发送探测报文,获取在线的 BRAS 的 MAC地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中, 向该 BRAS 列表中的 MAC地址对应的 BRAS发送握手报文, 以获取对应的 BRAS是否处 于离线状态, 当获取处于离线状态的 BRAS的 MAC地址后, 从 BRAS的 MAC 地址和终端设备的 MAC地址以及 Session ID的对应关系中,获取归属于处于离 线状态的 BRAS的终端设备的 MAC地址和 Session ID, 根据获取的终端设备的 MAC地址和 Session ID向对应的终端设备发送下线通知 4艮文, 以使得对应的终 端设备进行拨号, 由于通过探知 BRAS是否在线, 在发现该 BRAS离线时主动 向连接在该 BRAS上终端设备发送下线通知报文, 使得终端设备可以自动重新 进行拨号处理, 因此, 有效地减少了因 BRAS故障或者连接故障而离线所导致 的业务中断时间。 The technical effect of the present invention is that the access device sends a probe packet to the network, obtains the MAC address of the online BRAS, and stores the acquired MAC address of the BRAS in the BRAS list, and the BRAS corresponding to the MAC address in the BRAS list. Send a handshake packet to obtain whether the corresponding BRAS is offline. After obtaining the MAC address of the BRAS in the offline state, obtain the attribution from the MAC address of the BRAS and the MAC address of the terminal device and the session ID. The MAC address and the session ID of the terminal device of the offline BRAS are sent to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device, so as to make the corresponding end The terminal device performs dialing. By detecting whether the BRAS is online, when the BRAS is offline, the offline notification message is sent to the terminal device connected to the BRAS, so that the terminal device can automatically perform the dialing process again, thereby effectively reducing the number of times. Service interruption time caused by offline failure due to BRAS failure or connection failure.
附图说明 图 1为本发明终端设备的拨号方法所应用的网络的架构示意图; BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a schematic structural diagram of a network to which a dialing method of a terminal device of the present invention is applied;
图 2为本发明终端设备的拨号方法的一个实施例的流程图;  2 is a flowchart of an embodiment of a dialing method of a terminal device according to the present invention;
图 3为本发明终端设备的拨号方法的另一个实施例的流程图;  3 is a flowchart of another embodiment of a dialing method of a terminal device according to the present invention;
图 4为本发明接入设备的一个实施例的结构示意图;  4 is a schematic structural diagram of an embodiment of an access device according to the present invention;
图 5为本发明接入设备的另一个实施例的结构示意图。  FIG. 5 is a schematic structural diagram of another embodiment of an access device according to the present invention.
具体实施例 Specific embodiment
图 1为本发明终端设备的拨号方法所应用的网络的架构示意图, 如图 1所 示, 该网络包括 BRAS 11、 接入节点 (Access Node; 简称: AN ) 12和终端设 备 13。 其中, BRAS 11可具有一个或多个接口, 每个接口与一个 AN 12存在连 接关系。 AN 12可分别与多个 BRAS 11的接口存在连接关系。 用户设备 13在同 一次上线过程中, 只与一个 AN 12进行连接。  1 is a schematic structural diagram of a network to which a dialing method of a terminal device of the present invention is applied. As shown in FIG. 1, the network includes a BRAS 11, an access node (Access Node; abbreviated as AN) 12, and a terminal device 13. The BRAS 11 may have one or more interfaces, and each interface has a connection relationship with an AN 12. The AN 12 can be connected to the interfaces of multiple BRASs 11, respectively. The user equipment 13 is connected to only one AN 12 during the same online procedure.
另外, AN 12 可以包括数字用户线路接入复用器 (Digital Subscriber Line Access Multiplexer;简称: DSLAM )或者综合业务接入设备( Multi-Service Access Node; 简称: MSAN )等。 用户设备 13可以包括家庭网关、 Modern, STB、 PC 等 PPPoE客户端设备。 图 2 为本发明终端设备的拨号方法的一个实施例的流程图, 结合上述图 1 所示的网络的结构示意图, 如图 2 所示, 本实施例的执行主体为接入节点, 则 该方法包括:  In addition, the AN 12 may include a Digital Subscriber Line Access Multiplexer (DSLAM) or a Multi-Service Access Node (MSAN). The user equipment 13 may include a PPPoE client device such as a home gateway, Modern, STB, or PC. 2 is a flowchart of an embodiment of a dialing method of a terminal device according to the present invention. In combination with the structure of the network shown in FIG. 1 , as shown in FIG. 2 , the execution body of the embodiment is an access node, and the method is Includes:
步骤 101、接入设备向网络中发送探测报文,获取在线的 BRAS的媒体访问 控制 ( Media Access Control; 简称: MAC )地址, 将获取的 BRAS的 MAC地 址保存在 BRAS列表中。  Step 101: The access device sends a probe packet to the network, obtains a Media Access Control (MAC) address of the online BRAS, and saves the obtained MAC address of the BRAS in the BRAS list.
步骤 102、接入设备向该 BRAS列表中的 MAC地址对应的 BRAS发送握手 报文, 以获取对应的 BRAS的当前状态。 优选地,可以每隔第一预定时间,分别向 BRAS列表中的每个 BRAS的 MAC 地址对应的 BRAS之间进行握手, 即向每个 BRAS的 MAC地址对应的 BRAS 发送握手报文, 以获取对应的 BRAS的是否处于离线状态。 其中, 该第一预定 时间是可以根据实际情况进行配置的, 例如: 该第一预定时间可以是 0.5秒, 即 每隔 0.5秒, 就分别向每个 BRAS发送握手"¾文。 Step 102: The access device sends a handshake packet to the BRAS corresponding to the MAC address in the BRAS list, to obtain the current state of the corresponding BRAS. Preferably, the handshake may be performed to the BRAS corresponding to the MAC address of each BRAS in the BRAS list, that is, the handshake message is sent to the BRAS corresponding to the MAC address of each BRAS, to obtain a corresponding correspondence. Whether the BRAS is offline. The first predetermined time may be configured according to actual conditions. For example, the first predetermined time may be 0.5 seconds, that is, every 0.5 seconds, a handshake "3⁄4 text" is sent to each BRAS.
更为优选地, 可以釆用接入点控制协议( Access Node Control Protocol; 简 称: ANCP ) 、 网际包探测器( Packet internet groper; 简称: PING ) 、 地址解析 协议(Address Resolution Protocol; 简称: ARP ) 、 广播 PADI或者单播 PADI 方式, 分别与 BRAS列表中每个 BRAS的 MAC地址对应的 BRAS之间进行握 手。  More preferably, an Access Node Control Protocol (ANCP), a Packet Internet Groper (PING), and an Address Resolution Protocol (ARP) may be used. , broadcast PADI or unicast PADI mode, respectively, handshake with the BRAS corresponding to the MAC address of each BRAS in the BRAS list.
步骤 103、接入设备获取处于离线状态的 BRAS的 MAC地址,从 BRAS的 MAC地址和终端设备的 MAC地址以及会话 Session ID的对应关系中, 获取归 属于处于离线状态的 BRAS的终端设备的 MAC地址和 Session ID。  Step 103: The access device acquires the MAC address of the BRAS in the offline state, and obtains the MAC address of the terminal device belonging to the BRAS in the offline state from the correspondence between the MAC address of the BRAS and the MAC address of the terminal device and the session session ID. And the Session ID.
在本实施例中, 需要说明的是, 当与 BRAS之间连续握手超时次数等于预 定阔值时, 即说明该 BRAS处于离线状态, 则从 BRAS的 MAC地址和终端设 备的 MAC地址以及 Session ID中,获取归属于处于离线状态的 BRAS的终端设 备的 MAC地址和 Session ID。  In this embodiment, it should be noted that when the number of consecutive handshake timeouts with the BRAS is equal to a predetermined threshold, that is, the BRAS is offline, from the MAC address of the BRAS and the MAC address of the terminal device and the Session ID. Obtain the MAC address and Session ID of the terminal device belonging to the BRAS in the offline state.
在本实施例中, 举例来说, 当预定阔值为 3 时, 接入设备每隔第一预定时 间, 向 BRAS列表中的每个 BRAS分别发送握手报文, 如果在时间阔值内没有 收到某个 BRAS返回的回应报文, 则针对该 BRAS视为一次握手超时, 如果该 BRAS连续发生 3次握手超时,则视为该 BRAS离线(出现故障或者连接故障), 此时, 获取与该 BRAS连接的终端设备的 MAC地址和分配的 Session ID。  In this embodiment, for example, when the predetermined threshold is 3, the access device sends a handshake message to each BRAS in the BRAS list every first predetermined time, if not received within the time threshold. The response message returned by a certain BRAS is regarded as a handshake timeout for the BRAS. If the BRAS has 3 consecutive handshake timeouts, the BRAS is considered to be offline (fault or connection failure). The MAC address of the terminal device connected to the BRAS and the assigned session ID.
步骤 104、 接入设备根据获取的终端设备的 MAC地址和 Session ID向对应 的终端设备发送下线通知报文, 以使得对应的终端设备进行拨号。  Step 104: The access device sends an offline notification message to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device, so that the corresponding terminal device performs dialing.
在本实施例中, 该下线通知报文为 PPPOE积极探索终止(PPPOE Active Discovery Terminal; 简称: PADT )报文, 或者 PADX报文, 或者携带有立即重 新拨号标识的 PADT报文。 其中, PADX报文泛指仿照 PADT报文, 通过使用 新的 code值,构造一种具有特定含义的新报文。相对于终端设备在接收到 PADT 报文后往往会延时几秒在重新进行拨号处理而言, 终端设备在接收到 PADX报 文后会立即重新进行拨号处理, 因此终端设备在接收到 PADX报文后, 不需要 等待既可以重新进行拨号处理, 更加有效地缩短中业务中断时间。 In this embodiment, the offline notification message is a PPPOE Active Discovery Terminal (PADT) message, or a PADX message, or a PADT message carrying an immediate redial identification. Among them, the PADX message generally refers to the PADT message, and uses a new code value to construct a new message with a specific meaning. Compared with the terminal device, after receiving the PADT packet, the terminal device will delay the dialing process for a few seconds. After receiving the PADX packet, the terminal device will perform the dialing process immediately, so the terminal device receives the PADX packet. After, no need Waiting can re-do the dialing process, and more effectively shorten the mid-business interruption time.
在本实施例中,接入设备向网络中发送探测报文,获取在线的 BRAS的 MAC 地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中, 向该 BRAS列表中 的 MAC地址对应的 BRAS发送握手^艮文, 以获取对应的 BRAS的当前状态, 获取处于离线状态的 BRAS的 MAC地址后,从 BRAS的 MAC地址和终端设备 的 MAC地址以及 Session ID的对应关系中, 获取归属于处于离线状态的 BRAS 的终端设备的 MAC地址和 Session ID, 根据获取的终端设备的 MAC地址和 Session ID向对应的终端设备发送下线通知报文, 以使得对应的终端设备进行拨 号, 由于通过探知 BRAS 是否在线, 在发现该 BRAS 离线时主动向连接在该 BRAS 上终端设备发送下线通知报文, 使得终端设备可以自动重新进行拨号处 理, 因此, 有效地减少了因 BRAS故障或者连接故障而离线所导致的业务中断 时间。  In this embodiment, the access device sends a probe packet to the network, obtains the MAC address of the online BRAS, and stores the obtained MAC address of the BRAS in the BRAS list, and sends the BRAS to the BRAS corresponding to the MAC address in the BRAS list. After the handshake is performed, the current state of the corresponding BRAS is obtained, and after obtaining the MAC address of the BRAS in the offline state, the attribution is obtained from the correspondence between the MAC address of the BRAS and the MAC address of the terminal device and the session ID. The MAC address and the session ID of the terminal device of the BRAS are sent to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device, so that the corresponding terminal device performs dialing, because it is determined whether the BRAS is online or not. When the BRAS is found to be offline, the offline notification message is sent to the terminal device connected to the BRAS, so that the terminal device can automatically perform the dialing process again, thereby effectively reducing the offline caused by the BRAS failure or the connection failure. Business interruption time.
图 3 为本发明终端设备的拨号方法的另一个实施例的流程图, 在上述图 1 所示实施例的基础上, 如图 2所示, 在步骤 101的一种具体实现方式为:  FIG. 3 is a flowchart of another embodiment of the dialing method of the terminal device according to the present invention. On the basis of the embodiment shown in FIG. 1 , as shown in FIG. 2 , a specific implementation manner in step 101 is as follows:
步骤 101a、 接入设备向网络中的 BRAS 发送以太网承载点对点协议 ( Point-to-Point Protocol over Ethernet; 简称: PPPoE )激活发现起始分组( PPPOE Active Discovery Initiation; 简称: PADI )才艮文。  Step 101: The access device sends a PPPOE Active Discovery Initiation (PADIE) to the BRAS in the network to send a PPPOE Active Discovery Initiation (PADI).
步骤 101b、 接入设备接收 BRAS的 PPPoE激活发现阶段服务报文( PPPOE Active Discovery Offer; 简称: PADO )报文, 从该 PADO报文中获取该 BRAS 的 MAC地址, 将获取的 BRAS的 MAC地址存储到该 BRAS列表中。  Step 101b: The access device receives a PPPOE Active Discovery Offer (PADO) packet of the BRAS, obtains the MAC address of the BRAS from the PADO packet, and stores the obtained MAC address of the BRAS. Go to the BRAS list.
在本实施例中,优选地,接入设备可以每隔第二预定时间向网络中的 BRAS 发送 PADI报文。其中,该第二预定时间是可以根据实际情况进行配置的,例如: 该第二预定时间可以是 10秒。  In this embodiment, preferably, the access device may send a PADI message to the BRAS in the network every second predetermined time. The second predetermined time may be configured according to actual conditions, for example, the second predetermined time may be 10 seconds.
在本实施例中, 接收设备向上行方向发送 PADI报文(该 PADI报文为广播 报文) , 所有接收到的 PADI的 BRAS都会响应一个 PADO报文, 当接收到该 PADO报文, 就可以从该 PADO报文上获取其发送的 BRAS的 MAC地址, 从 而探测到网络上有哪些在线的 BRAS。 其中, 该 MAC地址可以作为 BRAS的唯 一标识。  In this embodiment, the receiving device sends a PADI message to the upstream direction (the PADI message is a broadcast message), and all received PADI BRASs respond to a PADO message. When the PADO message is received, the receiving device can The MAC address of the BRAS sent by the PADO message is obtained from the PADO message, thereby detecting which online BRASs are on the network. The MAC address can be used as the unique identifier of the BRAS.
优选地, 步骤 101b之后, 步骤 102之前, 该方法还可以包括:  Preferably, after step 101b, before step 102, the method may further include:
步骤 101c、 接入设备对终端设备向 BRAS的拨号过程进行监控, 从终端设 备的拨号过程中获取终端设备的 MAC地址、 BRAS的 MAC地址、 以及 Session ID, 将获取终端设备的 MAC地址、 BRAS的 MAC地址、 以及 Session ID形成 对应关系保存到所述接入设备上。 Step 101c: The access device monitors the dialing process of the terminal device to the BRAS, and the slave terminal sets The MAC address of the terminal device, the MAC address of the BRAS, and the session ID are obtained in the backup dialing process, and the MAC address of the terminal device, the MAC address of the BRAS, and the session ID are stored in the corresponding relationship.
更为优选地, 步骤 101c的一种具体实现方式为:  More preferably, a specific implementation of step 101c is:
接入设备接收 BRAS 的 PPPoE 激活发现会话确认分组 (PPPOE Active Discovery Session-confirmation; 简称: PADS )才艮文;  The access device receives the PPPoE Active Discovery Session-Confirmation (PADS) of the BRAS;
接入设备将该 PADS报文中的终端设备的 MAC地址、 BRAS的 MAC地址 以及 Session ID形成对应关系保存在该接入设备上。  The access device stores the MAC address of the terminal device in the PADS packet, the MAC address of the BRAS, and the session ID in a corresponding relationship on the access device.
在本实施例中, 对于每个终端设备而言, 在终端设备进行拨号时, 会选择 第一个响应的 BRAS作为认证服务器, 并与之相连接。 同时, 由于终端设备拨 号时需要经过 AN, 因此, AN可以监听到认证服务器返回给终端设备的 PPPOE 积极探索会议确认 ( PPPOE Active Discovery Session-confirmation; 简称: PADS ) 报文, 从而记录该用户的基本信息, 即该终端设备的 MAC 地址和会议标识 ( Session ID ) , 建立该该终端设备的 MAC地址和 Session ID以及该 BRAS的 MAC地址的映射关系。  In this embodiment, for each terminal device, when the terminal device performs dialing, the first responding BRAS is selected as an authentication server and connected thereto. At the same time, since the terminal device needs to pass the AN when dialing, the AN can listen to the PPPOE Active Discovery Session-Confirmation (PADS) message returned by the authentication server to the terminal device, thereby recording the basic of the user. The information, that is, the MAC address of the terminal device and the session ID, establishes a mapping relationship between the MAC address of the terminal device and the session ID and the MAC address of the BRAS.
还需要说明的是, 步骤 101还可以有如下另一个具体实现方式:  It should also be noted that step 101 may also have another specific implementation as follows:
接入设备根据预先配置的 BRAS的 IP地址, 向 IP地址对应的 BRAS发送 地址解析协议 ( Address Resolution Protocol; 简称: ARP )报文;  The access device sends an Address Resolution Protocol (ARP) packet to the BRAS corresponding to the IP address according to the pre-configured BRAS IP address;
接入设备接收 BRAS的 ARP响应报文, 从 ARP响应报文中获取 IP地址对 应的 BRAS的 MAC地址, 将获取的 MAC地址存储到 BRAS列表中。  The access device receives the ARP response packet of the BRAS, obtains the MAC address of the BRAS corresponding to the IP address from the ARP response packet, and stores the obtained MAC address in the BRAS list.
本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算机可读取 存储介质中。 该程序在执行时, 执行包括上述各方法实施例的步骤; 而前述的 存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。  It will be understood by those skilled in the art that all or part of the steps of implementing the above method embodiments may be performed by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
图 4为本发明接入设备的一个实施例的结构示意图, 如图 4所示, 本实施 例的接入设备包括第一收发机 21、 第二收发机 22、 处理器 23、 第三收发机 24 和存储器 25 , 其中, 第一收发机 21 用于向网络中发送探测报文, 获取在线的 BRAS的 MAC地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中; 第二 收发机 22用于向该 BRAS列表中的 MAC地址对应的 BRAS发送握手报文, 以 获取对应的 BRAS的当前状态; 处理器 23用于获取处于离线状态的 BRAS的 MAC地址,从 BRAS的 MAC地址和终端设备的 MAC地址以及会话 Session ID 的对应关系中, 获取归属于处于离线状态的 BRAS的终端设备的 MAC地址和 向对应的终端设备发送下线通知报文, 以使得对应的终端设备进行拨号; 存储 器 25用于存储所述 BRAS列表。 4 is a schematic structural diagram of an embodiment of an access device according to the present invention. As shown in FIG. 4, the access device of this embodiment includes a first transceiver 21, a second transceiver 22, a processor 23, and a third transceiver. And a memory 25, wherein the first transceiver 21 is configured to send a probe message to the network, obtain a MAC address of the online BRAS, and save the acquired MAC address of the BRAS in the BRAS list; the second transceiver 22 is configured to: Sending a handshake message to the BRAS corresponding to the MAC address in the BRAS list to obtain the current state of the corresponding BRAS; the processor 23 is configured to acquire the BRAS in the offline state. The MAC address, the MAC address of the terminal device belonging to the BRAS in the offline state is obtained from the MAC address of the BRAS and the MAC address of the terminal device and the session session ID, and the offline notification message is sent to the corresponding terminal device. So that the corresponding terminal device dials; the memory 25 is used to store the BRAS list.
本实施例的接入设备可以执行图 2 所示方法实施例的技术方案, 其实现原 理相类似, 此处不再赘述。  The access device in this embodiment can perform the technical solution of the method embodiment shown in FIG. 2, and the implementation principle is similar, and details are not described herein again.
另外, 该第一收发机 21、 第二收发机 22和第三收发机 24可以为同一收发 机,也可以是三个独立的收发机。处理器 23可以为中央处理器( Central Processing Unit; 简称: CPU )等。 存储器 25的具体形态可以为 RAM、 ROM, 闪存 Flash 等。 其中, 还需要说明的是, 当接入设备为 DSLAM时, 上述收发机可以为联 合收发机; 当接入设备为 OLT时, 上述收发机可以为光收发机; 当接入设备为 MSAN 时, 上述收发机可以为以太网交换芯片 (LSW )、 可编程逻辑(Field - Programmable Gate Array ; 简称: FPGA )或者网络处理器(Network Processor ; 简称: NP )等。  In addition, the first transceiver 21, the second transceiver 22, and the third transceiver 24 may be the same transceiver or three independent transceivers. The processor 23 can be a central processing unit (CPU) or the like. The specific form of the memory 25 may be RAM, ROM, flash memory, or the like. It should be noted that, when the access device is a DSLAM, the transceiver may be a joint transceiver; when the access device is an OLT, the transceiver may be an optical transceiver; when the access device is an MSAN, The transceiver may be an Ethernet Switching Chip (LSW), a Field-Programmable Gate Array (FPGA), or a Network Processor (abbreviation: NP).
在本实施例中,接入设备向网络中发送探测报文,获取在线的 BRAS的 MAC 地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中, 向该 BRAS列表中 的 MAC地址对应的 BRAS发送握手^艮文, 以获取对应的 BRAS是否处于离线 状态, 当获取处于离线状态的 BRAS的 MAC地址后,从 BRAS的 MAC地址和 的 BRAS的终端设备的 MAC地址和 Session ID, 根据获取的终端设备的 MAC 地址和 Session ID向对应的终端设备发送下线通知报文,以使得对应的终端设备 进行拨号, 由于通过探知 BRAS是否在线, 在发现该 BRAS离线时主动向连接 在该 BRAS上终端设备发送下线通知报文, 使得终端设备可以自动重新进行拨 号处理, 因此, 有效地减少了因 BRAS故障或者连接故障而离线所导致的业务 中断时间。  In this embodiment, the access device sends a probe packet to the network, obtains the MAC address of the online BRAS, and stores the obtained MAC address of the BRAS in the BRAS list, and sends the BRAS to the BRAS corresponding to the MAC address in the BRAS list. The handshake message is used to obtain whether the corresponding BRAS is offline. When the MAC address of the BRAS in the offline state is obtained, the MAC address of the BRAS and the MAC address of the terminal device of the BRAS and the session ID are obtained according to the acquired terminal device. The MAC address and the session ID send the offline notification message to the corresponding terminal device, so that the corresponding terminal device performs dialing. Since the BRAS is found to be online, the BRAS is actively sent to the terminal device connected to the BRAS when the BRAS is offline. The offline notification message enables the terminal device to automatically perform the dialing process again. Therefore, the service interruption time caused by the offline failure due to the BRAS failure or the connection failure is effectively reduced.
图 5为本发明接入设备的另一个实施例的结构示意图, 在上述图 5所示实 施例的基础上, 如图 5所示, 该第一收发机 21具体包括: 数据发送器 211和数 据接收器 212; 其中, 数据发送器 211用于向所述网络中的 BRAS发送 PADI报 文; 数据接收器 212用于接收 BRAS的 PADO报文, 从所述 PADO报文中获取 BRAS的 MAC地址, 将获取的 BRAS的 MAC地址存储到所述 BRAS列表中。 或者,数据发送器 211用于根据预先配置的 BRAS的 IP地址,向 IP地址对 应的 BRAS发送地址解析协议 ARP报文; 数据接收器 212用于接收 BRAS的FIG. 5 is a schematic structural diagram of another embodiment of an access device according to the present invention. On the basis of the foregoing embodiment shown in FIG. 5, as shown in FIG. 5, the first transceiver 21 specifically includes: a data transmitter 211 and data. a receiver 212; wherein, the data transmitter 211 is configured to send a PADI message to the BRAS in the network; the data receiver 212 is configured to receive the PADO message of the BRAS, and obtain the PADO message from the PADO message. The MAC address of the BRAS stores the acquired MAC address of the BRAS into the BRAS list. Alternatively, the data transmitter 211 is configured to send an address resolution protocol ARP message to the BRAS corresponding to the IP address according to the IP address of the pre-configured BRAS; the data receiver 212 is configured to receive the BRAS.
ARP响应报文,从 ARP响应报文中获取 IP地址对应的 BRAS的 MAC地址,将 获取的 MAC地址存储到所述 BRAS列表中。 The ARP response packet obtains the MAC address of the BRAS corresponding to the IP address from the ARP response packet, and stores the obtained MAC address in the BRAS list.
优选地, 第二收发机 22还用于对终端设备向 BRAS的拨号过程的报文进行 转发;  Preferably, the second transceiver 22 is further configured to forward the packet of the terminal device to the BRAS dialing process;
处理器 23 还用于从终端设备的拨号过程中获取终端设备的 MAC 地址、 BRAS的 MAC地址、 以及 Session ID, 将获取终端设备的 MAC地址、 BRAS 的 MAC地址、 以及 Session ID形成对应关系保存到所述存储器 25中。  The processor 23 is further configured to obtain the MAC address of the terminal device, the MAC address of the BRAS, and the session ID from the dialing process of the terminal device, and save the correspondence between the MAC address of the acquiring terminal device, the MAC address of the BRAS, and the Session ID to In the memory 25.
更为优选地, 该接入设备为 OLT、 DSLAM或者 MSAN。  More preferably, the access device is an OLT, a DSLAM or an MSAN.
本发明还提供了一种拨号系统, 包括: 接入设备、 终端设备、 BRAS。 终端 设备通过接入设备连接到 BRAS, 其中, 该接入设备, 用于向网络中发送探测报 文, 获取在线的 BRAS的媒体访问控制 MAC地址, 将获取的 BRAS的 MAC地 址保存在 BRAS列表中; 向 BRAS列表中的 MAC地址对应的 BRAS发送握手 报文, 以获取对应的 BRAS是否处于离线状态; 获取处于离线状态的 BRAS的 MAC地址,从 BRAS的 MAC地址和终端设备的 MAC地址以及会话 Session ID 的对应关系中获取归属于处于离线状态的 BRAS 的终端设备的 MAC 地址和 Session ID; 以及根据获取的终端设备的 MAC地址和 Session ID向对应的终端 设备发送下线通知报文;  The invention also provides a dialing system, comprising: an access device, a terminal device, and a BRAS. The terminal device is connected to the BRAS through the access device, where the access device is configured to send the probe packet to the network, obtain the media access control MAC address of the online BRAS, and save the obtained MAC address of the BRAS in the BRAS list. Sending a handshake message to the BRAS corresponding to the MAC address in the BRAS list to obtain whether the corresponding BRAS is offline; obtaining the MAC address of the BRAS in the offline state, the MAC address of the BRAS, the MAC address of the terminal device, and the session session. Obtaining a MAC address and a session ID of the terminal device belonging to the offline BRAS; and sending the offline notification message to the corresponding terminal device according to the obtained MAC address and the session ID of the terminal device;
终端设备, 用于在收到接入设备的下线通知报文后进行拨号。  The terminal device is configured to perform dialing after receiving the offline notification message of the access device.
另外, 优选地, 接入设备还用于对终端设备向 BRAS的拨号过程进行监控, 从终端设备的拨号过程中获取终端设备的 MAC地址、 BRAS的 MAC地址、 以 及 Session ID,将获取终端设备的 MAC地址、 BRAS的 MAC地址、以及 Session ID形成对应关系保存到该接入设备上。  In addition, the access device is further configured to monitor the dialing process of the terminal device to the BRAS, obtain the MAC address of the terminal device, the MAC address of the BRAS, and the session ID from the dialing process of the terminal device, and obtain the terminal device. The MAC address, the MAC address of the BRAS, and the session ID are stored in the corresponding relationship and saved to the access device.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者 对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并不使相 应技术方案的本质脱离本发明各实施例技术方案的范围。  It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权利要求书 claims
1、 一种终端设备的拨号方法, 其特征在于, 包括: 1. A dialing method for terminal equipment, characterized in that it includes:
接入设备向网络中发送探测报文,获取在线的宽带接入服务器 BRAS的媒体 访问控制 MAC地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中; The access device sends a detection message to the network to obtain the media access control MAC address of the online broadband access server BRAS, and saves the obtained BRAS MAC address in the BRAS list;
所述接入设备向所述 BRAS列表中的 MAC地址对应的 BRAS发送握手才艮 文, 以获取对应的 BRAS的当前状态; The access device sends a handshake message to the BRAS corresponding to the MAC address in the BRAS list to obtain the current status of the corresponding BRAS;
所述接入设备获取处于离线状态的 BRAS的 MAC地址, 从 BRAS的 MAC 地址和终端设备的 MAC地址以及会话 Session ID的对应关系中,获取归属于处 于离线状态的 BRAS的终端设备的 MAC地址和 Session ID; The access device obtains the MAC address of the BRAS in the offline state, and obtains the MAC address of the terminal device belonging to the offline BRAS from the corresponding relationship between the MAC address of the BRAS, the MAC address of the terminal device, and the session ID. Session ID;
所述接入设备根据获取的终端设备的 MAC地址和 Session ID向对应的终端 设备发送下线通知报文, 以使得对应的终端设备进行拨号。 The access device sends an offline notification message to the corresponding terminal device according to the obtained MAC address and Session ID of the terminal device, so that the corresponding terminal device dials.
2、 根据权利要求 1所述的方法, 其特征在于, 所述接入设备向网络中发送 探测报文,获取在线的宽带接入服务器 BRAS的媒体访问控制 MAC地址,将获 取的 BRAS的 MAC地址保存在 BRAS列表中具体包括: 2. The method according to claim 1, characterized in that, the access device sends a detection message to the network, obtains the media access control MAC address of the online broadband access server BRAS, and uses the obtained MAC address of the BRAS Specific items saved in the BRAS list include:
所述接入设备向所述网络中的 BRAS发送以太网承载点对点协议 PPPoE激 活发现起始分组 PADI 艮文; The access device sends an Ethernet Bearer Point-to-Point Protocol PPPoE activation discovery initiation packet PADI message to the BRAS in the network;
所述接入设备接收 BRAS的 PPPoE激活发现阶段服务报文 PADO报文,从 所述 PADO 4艮文中获取 BRAS的 MAC地址, 将获取的 BRAS的 MAC地址存 储到所述 BRAS列表中。 The access device receives the PPPoE activation discovery phase service message PADO message of the BRAS, obtains the MAC address of the BRAS from the PADO message, and stores the obtained MAC address of the BRAS into the BRAS list.
3、 根据权利要求 1所述的方法, 其特征在于, 所述接入设备向网络中发送 探测报文,获取在线的宽带接入服务器 BRAS的媒体访问控制 MAC地址,将获 取的 BRAS的 MAC地址保存在 BRAS列表中, 具体包括: 3. The method according to claim 1, characterized in that: the access device sends a detection message to the network, obtains the media access control MAC address of the online broadband access server BRAS, and uses the obtained MAC address of the BRAS Saved in the BRAS list, specifically including:
所述接入设备根据预先配置的 BRAS的 IP地址, 向 IP地址对应的 BRAS 发送地址解析协议 ARP ^艮文; The access device sends an Address Resolution Protocol ARP message to the BRAS corresponding to the IP address according to the preconfigured IP address of the BRAS;
所述接入设备接收 BRAS的 ARP响应报文, 从 ARP响应报文中获取 IP地址 对应的 BRAS的 MAC地址, 将获取的 MAC地址存储到所述 BRAS列表中。 The access device receives the ARP response message of the BRAS, obtains the MAC address of the BRAS corresponding to the IP address from the ARP response message, and stores the obtained MAC address in the BRAS list.
4、 根据权利要求 1所述的方法, 其特征在于, 所述接入设备向网络中发送 探测报文,获取在线的宽带接入服务器 BRAS的媒体访问控制 MAC地址,将获 取的 BRAS的 MAC地址保存在 BRAS列表中之后, 所述方法还包括: 所述接入设备对终端设备向 BRAS 的拨号过程进行监控, 从终端设备的拨 号过程中获取终端设备的 MAC地址、 BRAS的 MAC地址、 以及 Session ID, 将获取终端设备的 MAC地址、 BRAS的 MAC地址、 以及 Session ID形成对应 关系保存到所述接入设备上。 4. The method according to claim 1, characterized in that: the access device sends a detection message to the network, obtains the media access control MAC address of the online broadband access server BRAS, and uses the obtained MAC address of the BRAS After saving in the BRAS list, the method also includes: The access device monitors the dialing process of the terminal device to the BRAS, obtains the MAC address of the terminal device, the MAC address of the BRAS, and the Session ID from the dialing process of the terminal device, and obtains the MAC address of the terminal device and the MAC of the BRAS. The address, and Session ID form a corresponding relationship and are saved on the access device.
5、 根据权利要求 4所述的方法, 其特征在于, 所述接入设备对终端设备向 BRAS的拨号过程进行监控,从终端设备的拨号过程中获取终端设备的 MAC地 址、 BRAS的 MAC地址、 以及 Session ID, 具体包括: 5. The method according to claim 4, characterized in that, the access device monitors the dialing process of the terminal device to the BRAS, and obtains the MAC address of the terminal device, the MAC address of the BRAS, and the MAC address of the terminal device from the dialing process of the terminal device. And Session ID, including:
所述接入设备接收 BRAS的以太网承载点对点协议 PPPoE激活发现会话确 认分组 PADS报文; The access device receives the Ethernet Bearer Point-to-Point Protocol PPPoE activation discovery session confirmation packet PADS message of the BRAS;
所述接入设备将所述 PADS报文中的终端设备的 MAC地址、 BRAS的 MAC 地址以及 Session ID形成对应关系保存在所述接入设备上。 The access device forms a corresponding relationship between the MAC address of the terminal device, the MAC address of the BRAS and the Session ID in the PADS message and stores them on the access device.
6、 一种接入设备, 其特征在于, 包括: 6. An access device, characterized by including:
第一收发机, 用于向网络中发送探测报文, 获取在线的宽带接入服务器 BRAS的媒体访问控制 MAC地址, 将获取的 BRAS的 MAC地址保存在 BRAS 列表中; The first transceiver is used to send detection messages to the network, obtain the media access control MAC address of the online broadband access server BRAS, and save the obtained MAC address of the BRAS in the BRAS list;
第二收发机, 用于向所述 BRAS列表中的 MAC地址对应的 BRAS发送握 手报文, 以获取对应的 BRAS的当前状态; The second transceiver is configured to send a handshake message to the BRAS corresponding to the MAC address in the BRAS list to obtain the current status of the corresponding BRAS;
处理器, 用于获取处于离线状态的 BRAS的 MAC地址, 从 BRAS的 MAC 地址和终端设备的 MAC地址以及会话 Session ID的对应关系中,获取归属于处 于离线状态的 BRAS的终端设备的 MAC地址和 Session ID; The processor is configured to obtain the MAC address of the BRAS in the offline state, and obtain the MAC address of the terminal device belonging to the offline BRAS from the corresponding relationship between the MAC address of the BRAS and the MAC address of the terminal device and the Session ID. Session ID;
第三收发机,用于根据获取的终端设备的 MAC地址和 Session ID向对应的 终端设备发送下线通知报文, 以使得对应的终端设备进行拨号; The third transceiver is used to send an offline notification message to the corresponding terminal device based on the obtained MAC address and Session ID of the terminal device, so that the corresponding terminal device can dial;
存储器, 用于存储所述 BRAS列表。 Memory, used to store the BRAS list.
7、 根据权利要求 6所述的接入设备, 其特征在于, 所述第一收发机具体包 括: 7. The access device according to claim 6, characterized in that the first transceiver specifically includes:
数据发送器,用于向所述网络中的 BRAS发送以太网承载点对点协议 PPPoE 激活发现起始分组 PADI 艮文; A data sender, configured to send an Ethernet bearer point-to-point protocol PPPoE activation discovery initiation packet PADI message to the BRAS in the network;
数据接收器,用于接收 BRAS的 PPPoE激活发现阶段服务报文 PADO报文, 从所述 PADO报文中获取 BRAS的 MAC地址, 将获取的 BRAS的 MAC地址 存储到所述 BRAS列表中。 The data receiver is configured to receive the PPPoE activation discovery phase service message PADO message of the BRAS, obtain the MAC address of the BRAS from the PADO message, and store the obtained MAC address of the BRAS in the BRAS list.
8、 根据权利要求 7所述的接入设备, 其特征在于, 所述第一收发机具体包 括: 8. The access device according to claim 7, wherein the first transceiver specifically includes:
数据发送器,用于根据预先配置的 BRAS的 IP地址,向 IP地址对应的 BRAS 发送地址解析协议 ARP ^艮文; The data sender is used to send an Address Resolution Protocol ARP message to the BRAS corresponding to the IP address according to the pre-configured IP address of the BRAS;
数据接收器, 用于接收 BRAS的 ARP响应报文, 从 ARP响应报文中获取 IP地址对应的 BRAS的 MAC地址,将获取的 MAC地址存储到所述 BRAS列表 中。 The data receiver is configured to receive the ARP response message of the BRAS, obtain the MAC address of the BRAS corresponding to the IP address from the ARP response message, and store the obtained MAC address in the BRAS list.
9、 根据权利要求 7所述的接入设备, 其特征在于, 9. The access device according to claim 7, characterized in that,
所述第二收发机还用于对终端设备向 BRAS的拨号过程的报文进行转发; 所述处理器还用于从终端设备的拨号过程中获取终端设备的 MAC 地址、 BRAS的 MAC地址、 以及 Session ID, 将获取终端设备的 MAC地址、 BRAS 的 MAC地址、 以及 Session ID形成对应关系保存到所述存储器中。 The second transceiver is also used to forward the message of the dialing process of the terminal device to the BRAS; the processor is also used to obtain the MAC address of the terminal device, the MAC address of the BRAS from the dialing process of the terminal device, and Session ID: obtain the MAC address of the terminal device, the MAC address of the BRAS, and the Session ID to form a corresponding relationship and save them in the memory.
10、根据权利要求 6-9任意一项所述的接入设备, 其特征在于, 所述接入设 备为光线路终端 OLT、 数字用户线接入复用器 DSLAM或者多业务接入节点 MSAN。 10. The access device according to any one of claims 6 to 9, characterized in that the access device is an optical line terminal OLT, a digital subscriber line access multiplexer DSLAM or a multi-service access node MSAN.
11、 一种拨号系统, 包括接入设备、终端设备、以及宽带接入服务器 BRAS, 所述终端设备通过所述接入设备连接到所述 BRAS , 其特征在于, 11. A dial-up system, including an access device, a terminal device, and a broadband access server BRAS. The terminal device is connected to the BRAS through the access device, characterized in that,
所述接入设备, 用于向网络中发送探测报文, 获取在线的 BRAS的媒体访问 控制 MAC地址, 将获取的 BRAS的 MAC地址保存在 BRAS列表中; 向 BRAS 列表中的 MAC地址对应的 BRAS发送握手报文, 以获取对应的 BRAS的当前状 态; 获取处于离线状态的 BRAS的 MAC地址, 从 BRAS的 MAC地址和终端设 备的 MAC地址以及会话 Session ID 的对应关系中获取归属于处于离线状态的 BRAS的终端设备的 MAC地址和 Session ID; 以及根据获取的终端设备的 MAC 地址和 Session ID向对应的终端设备发送下线通知报文; The access device is used to send detection messages to the network, obtain the media access control MAC address of the online BRAS, and save the obtained MAC address of the BRAS in the BRAS list; to the BRAS corresponding to the MAC address in the BRAS list. Send a handshake message to obtain the current status of the corresponding BRAS; obtain the MAC address of the offline BRAS, and obtain the offline BRAS from the corresponding relationship between the BRAS MAC address, the MAC address of the terminal device, and the session ID. The MAC address and Session ID of the terminal device of the BRAS; and sends an offline notification message to the corresponding terminal device based on the obtained MAC address and Session ID of the terminal device;
终端设备, 用于在收到接入设备的下线通知报文后进行拨号。 The terminal device is used to dial after receiving the offline notification message from the access device.
12、 根据权利要求 10所述的拨号系统, 其特征在于, 所述接入设备还用于 对终端设备向 BRAS 的拨号过程进行监控, 从终端设备的拨号过程中获取终端 设备的 MAC地址、 BRAS的 MAC地址、 以及 Session ID, 将获取终端设备的 MAC地址、 BRAS的 MAC地址、 以及 Session ID形成对应关系保存到所述接 入设备上。 12. The dialing system according to claim 10, characterized in that the access device is also used to monitor the dialing process of the terminal device to the BRAS, and obtain the MAC address and BRAS of the terminal device from the dialing process of the terminal device. The MAC address and Session ID of the terminal device are obtained, and a corresponding relationship between the MAC address of the terminal device, the MAC address of the BRAS and the Session ID is obtained and stored on the access device.
PCT/CN2013/089424 2012-12-13 2013-12-13 Dialing method of terminal device, and access device WO2014090194A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210538919.7 2012-12-13
CN201210538919.7A CN103873335B (en) 2012-12-13 2012-12-13 Dialing method of terminal equipment, and access equipment

Publications (1)

Publication Number Publication Date
WO2014090194A1 true WO2014090194A1 (en) 2014-06-19

Family

ID=50911478

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/089424 WO2014090194A1 (en) 2012-12-13 2013-12-13 Dialing method of terminal device, and access device

Country Status (2)

Country Link
CN (1) CN103873335B (en)
WO (1) WO2014090194A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107154982B (en) * 2017-06-15 2020-05-29 郑州云海信息技术有限公司 Method and system for auditing log records
CN112492089B (en) * 2020-11-09 2022-05-24 普联技术有限公司 Dialing method and system of communication equipment and communication equipment
CN116032888A (en) * 2022-12-06 2023-04-28 中国联合网络通信集团有限公司 Broadband access method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174997A (en) * 2007-11-21 2008-05-07 中兴通讯股份有限公司 Device and method for detecting RADIUS server usability on BRAS equipment
WO2008074369A1 (en) * 2006-12-21 2008-06-26 Telefonaktiebolaget Lm Ericsson (Publ) Network apparatus and method for translating media access control addresses
CN101360021A (en) * 2008-10-14 2009-02-04 中国电信股份有限公司 Monitoring method and system for wireless wideband user status
CN101980496A (en) * 2010-10-13 2011-02-23 华为数字技术有限公司 Message processing method and system, exchange board and access server equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7409451B1 (en) * 2003-05-30 2008-08-05 Aol Llc, A Delaware Limited Liability Company Switching between connectivity types to maintain connectivity
CN100373799C (en) * 2003-07-01 2008-03-05 中兴通讯股份有限公司 A method for warm back-up of broad band switch-in server
CN1564522A (en) * 2004-03-31 2005-01-12 港湾网络有限公司 Fast re-dialling method when abnormal off-line of dialling user
CN1822574A (en) * 2006-03-17 2006-08-23 港湾网络有限公司 Method for connecting broad band user

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008074369A1 (en) * 2006-12-21 2008-06-26 Telefonaktiebolaget Lm Ericsson (Publ) Network apparatus and method for translating media access control addresses
CN101174997A (en) * 2007-11-21 2008-05-07 中兴通讯股份有限公司 Device and method for detecting RADIUS server usability on BRAS equipment
CN101360021A (en) * 2008-10-14 2009-02-04 中国电信股份有限公司 Monitoring method and system for wireless wideband user status
CN101980496A (en) * 2010-10-13 2011-02-23 华为数字技术有限公司 Message processing method and system, exchange board and access server equipment

Also Published As

Publication number Publication date
CN103873335B (en) 2017-04-12
CN103873335A (en) 2014-06-18

Similar Documents

Publication Publication Date Title
US8782256B2 (en) Deterministic session load-balancing and redundancy of access servers in a computer network
US7733859B2 (en) Apparatus and method for packet forwarding in layer 2 network
US8255543B2 (en) Systems and methods for IP session keepalive using BFD protocols
EP2055046B1 (en) Method and device for identifying and selecting an interface to access a network
US8886834B2 (en) Hot standby neighbor discovery protocol for internet protocol version 6
WO2008138196A1 (en) Method and device for reporting information
CN104683188A (en) Method for quickly detecting communication of IP channel of household router
KR20070020398A (en) DIRECTED PPPoE SESSION INITIATION OVER A SWITCHED ETHERNET
WO2017088101A1 (en) Network access information acquiring method, and router
WO2012130142A1 (en) Method, system, and access device for user service access
WO2015018069A1 (en) Method, device and system for acquiring service by network terminal
EP2532122A2 (en) Method and apparatus for detecting devices on a local area network
WO2010000158A1 (en) Route state detection method, device and system
WO2017080335A1 (en) Pppoe network-based dialing method, dialing system, and router
WO2008141572A1 (en) Method and system for performing keepalive monitoring on client sessions
WO2014090194A1 (en) Dialing method of terminal device, and access device
WO2013113201A1 (en) Sip server address acquisition method and device
WO2013029507A1 (en) Management session establishment method, customer premises equipment and auto configuration server
WO2012028011A1 (en) Method and service node device for monitoring session
WO2007107076A1 (en) A broadband user access method and device
WO2013026308A1 (en) Service node and inter-service node user protocol message synchronization method
WO2012119386A1 (en) Authentication method, device and system in access network
WO2009024064A1 (en) Method of client accessing to third-party server, device and its system using the same
CN103856571B (en) A kind of adaptive networking connection method and system
WO2009067944A1 (en) Device management method, system and means

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13863085

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13863085

Country of ref document: EP

Kind code of ref document: A1