WO2017080335A1 - Pppoe network-based dialing method, dialing system, and router - Google Patents

Pppoe network-based dialing method, dialing system, and router Download PDF

Info

Publication number
WO2017080335A1
WO2017080335A1 PCT/CN2016/101393 CN2016101393W WO2017080335A1 WO 2017080335 A1 WO2017080335 A1 WO 2017080335A1 CN 2016101393 W CN2016101393 W CN 2016101393W WO 2017080335 A1 WO2017080335 A1 WO 2017080335A1
Authority
WO
WIPO (PCT)
Prior art keywords
session
access server
terminal
packet
module
Prior art date
Application number
PCT/CN2016/101393
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 WO2017080335A1 publication Critical patent/WO2017080335A1/en

Links

Images

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/2858Access network architectures
    • H04L12/2859Point-to-point connection between the data network and the subscribers
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present invention relates to the field of network technologies, and in particular, to a dialing method, a dialing system, and a router based on a PPPOE network.
  • Passive Optical Network PON Uplink Home Gateways are commonly used in three ways: dynamic host configuration protocol DHCP router Internet access, Ethernet-based peer-to-peer protocol PPPOE router dial-up Internet access and bridged dial-up Internet access.
  • Ethernet-based point-to-point protocol PPPOE router dial-up access Create an upstream router Internet interface in the passive optical network PON uplink home gateway, obtain the network address through the Ethernet-based point-to-point protocol PPPOE dialing mode, and pass the passive optical network PON uplink home gateway The interface processes uplink and downlink network data and provides network services for the Internet access device connected to the home gateway.
  • PPPOE point-to-point protocol over ethernet
  • ADSL Asymmetric Digital Subscriber Line
  • the digital subscriber line uses the PPPOE protocol.
  • the existing routers support the PPPOE dial-up function.
  • the link is abnormal (for example, the link is broken), that is, during the PPPOE interaction, one of the parties does not exit normally, causing the session to be abnormal, making the PPPOE client unable to be fast.
  • the address is normally dialed, and the link cannot be re-connected normally.
  • the object of the present invention is to provide a dialing method, a dialing system and a router based on a PPPOE network, which are used to solve the problem that the PPPOE link in the prior art cannot be normally linked again after an abnormality occurs.
  • the present invention provides a dialing method and a dialing system based on a PPPOE network. And a router; a dialing method based on a PPPOE network, the method comprising the following steps: S1, the terminal receives a dialing instruction issued by a user; S2, determines whether there is a previous session, and when it is determined to be a rotating step S3, otherwise Go to step S4, the session is a session between the terminal and the access server; S3, sending a termination packet message to the access server, so that the access server terminates the session with the terminal; S4, the The terminal enters a session initiation phase; S5, the terminal enters a session phase.
  • the step S2 is specifically: determining whether there is a session variable in the memory, and if it is determined to be, the last session connection is considered to exist, and if it is determined that the session is not present, the session variable includes the previous session.
  • the session ID recorded at the time and the MAC address of the corresponding access server.
  • the step S4 is specifically: S41, the terminal broadcasts a packet message; and S42, receiving, by the one or more access servers, the grouping message according to the packet message feedback; S43, The terminal selects an access server based on the received packet request message, and sends a unicast session request packet message to the selected access server. S44. Receive an acknowledgement packet message fed back by the selected access server.
  • the step S43 is specifically: S431, analyzing the received time of giving the packet message, and sorting the receiving time; S432, obtaining the packet receiving message corresponding to the earliest receiving time, selecting and The access server corresponding to the packet message is sent; S433, sending a unicast session request packet message to the selected access server.
  • the step S5 specifically includes: S51, the terminal performs a session with the selected access server; S52, starts a recording mechanism, records session process data, and the session process data includes a session variable. .
  • the method further includes: S6.
  • the terminal sends a termination packet message to the selected access server, and deletes the recorded session variable.
  • the invention also provides a dialing system based on a PPPOE network, the dialing system comprising a terminal, the terminal comprising: an instruction receiving module, configured to receive a dialing instruction issued by a user; and a determining module connected to the instruction receiving module, For determining whether there is a last session connection, the session is a session between the terminal and the access server; and the terminating session module connected to the determining module is configured to send to the access server when the last session exists Sending a termination packet message, causing the access server to terminate a session with the terminal; a session initiation module connected to the determination module and the termination session module, configured to initiate a session request; and the session initiation module A session module for conducting a session with an access server.
  • the determining module is specifically configured to: determine whether a session variable exists in the memory, and if it is determined to be, the last session connection is considered to exist, and if it is determined that the session is not present, the session variable includes the last time.
  • the session initiation module specifically includes: a packet message initiation module, configured to broadcast And a packet message receiving module is configured to receive a packet message that is received by the one or more access servers based on the packet message feedback; and a selecting module, configured to select an access based on the received packet message a server, and sending a unicast session request packet message to the selected access server; and selecting a sending module, configured to select an access server based on the received given packet message, and send a unicast to the selected access server
  • the session request packet message is sent by the acknowledgment packet receiving module, and is configured to receive the acknowledgment packet message fed back by the selected access server.
  • the present invention also provides a router, including a dialing system based on a PPPOE network, the dialing system including a terminal, the terminal comprising: an instruction receiving module, configured to receive a dialing instruction issued by a user; and a determining module connected to the instruction receiving module For determining whether there is a last session connection, the session is a session between the terminal and the access server; and the terminating session module connected to the determining module is configured to access the access in the last session
  • the server sends a terminating packet message, so that the access server terminates the session with the terminal; the session initiating module connected to the determining module and the terminating session module is configured to initiate a session request; and the session initiating module Session module for talking to the access server.
  • the management method, the management system and the mobile phone of the mobile terminal application of the present invention have at least the following beneficial effects:
  • the terminal When the terminal needs to dial up to the Internet and connect to the access server, it is first determined whether the terminal currently has the previous session. When the previous session still exists, the terminal needs to send the termination packet to the access server to ensure the terminal and the access server. Normal disconnection, so that the current connection session can proceed smoothly, which can improve the connection speed and efficiency.
  • FIG. 1 is a schematic flow chart of an embodiment of a dialing method based on a PPPOE network according to the present invention
  • FIG. 2 is a schematic diagram of a specific process of step S3 of a PPPOE network-based dialing method according to the present invention
  • step S33 of a PPPOE network-based dialing method is a schematic diagram of a specific process of step S33 of a PPPOE network-based dialing method according to the present invention
  • FIG. 4 is a schematic structural diagram of an embodiment of a PPPOE network-based dialing system according to the present invention.
  • FIG. 5 is a schematic diagram of a specific structure of a session initiation module 3 of a PPPOE network-based dialing system according to the present invention.
  • FIG. 6 is a schematic diagram of a specific structure of a selection sending module 33 of a PPPOE network-based dialing system according to the present invention.
  • FIG. 1 is a schematic flowchart of a PPPOE network-based dialing method according to the present invention.
  • the dialing method includes the following steps:
  • Step S1 The terminal receives a dialing instruction, where the dialing instruction is an online dialing instruction issued by the user;
  • the terminal may be a set-top box, a computer, an ADSL terminal device with a dialing function, etc.
  • the terminal may be a router.
  • the router starts. PPPOE client process.
  • the Internet dialing command is sent, and the terminal receives the command.
  • Step S2 determining whether there is a previous session, when it is determined to be the rotating step S3, otherwise going to step S4, the session is a session between the terminal and the access server.
  • the process When receiving the online dialing instruction, it indicates that the dialing is required to perform the session connection between the terminal and the access server, but before the session connection, it is necessary to determine whether the terminal has the last session, that is, whether the terminal and the access service are determined. There is a session before the session, and the session is abnormally disconnected. Specifically, it can be judged whether there is a session variable in the memory of the terminal, and if it exists, it indicates that there is a previous session connection, and the connection is abnormally disconnected.
  • the memory is an NVRAM memory (Non-Volatile Random Access Memory). Therefore, when it is determined that there is a session variable, the process goes to step S3. If the determination is no, the process goes to step S4. Further, the The session variable includes the session ID recorded in the previous session and the MAC address of the corresponding access server.
  • Step S3 Send a termination packet to the access server, so that the access server terminates the session with the terminal.
  • the terminal finds the address of the corresponding access server based on the information of the session variable, and sends a termination packet to the corresponding access server, and the access server ends the corresponding session according to the session ID.
  • the terminal before the session needs to be initiated, it is determined whether the terminal has a previous session.
  • the termination packet is sent first, and the last session between the terminal and the access server is disconnected to ensure that the terminal is connected.
  • the normal disconnection state between the incoming servers ensures that the terminal and the access server can connect normally and quickly.
  • Step S4 The terminal enters a session initiation phase
  • the terminal may perform a session initiation phase.
  • step S4 of the PPPOE network-based dialing method according to the present invention.
  • the step S4 specifically includes:
  • Step S41 The terminal broadcasts a packet message.
  • the access server is mainly selected, so the terminal needs to broadcast a packet initiation message (PADI), and each access server can receive the packet packet.
  • the packet message includes at least one tag of a service name type (the tag type field value is 0 ⁇ 0101), and provides information such as a service type and a service scope to the access server. There is no limit to this.
  • the access server After receiving the packet message, the access server provides a packet message (PADO) according to the service range feedback in the packet message, in response to the request, where the packet request message includes one access.
  • the label of the server name type (the label type field value is 0x0102), and one or more service name type labels indicating information such as the type of service that can be provided to the terminal. Further, when the terminal does not receive the given packet message within a specified time, the terminal resends the packet message and doubles the waiting time to receive the packetized message fed back by the access server.
  • the access server analyzes the packet based on the received packet, and finds that the packet is abnormal. Then, an empty packet giving message is fed back. At this time, the terminal analyzes the packet according to the packet, and when it is determined that the packet is empty, the user is fed back with the connection abnormality and the connection failure information.
  • the terminal selects an access server based on the received given packet message, and sends a unicast session request packet message to the selected access server.
  • the terminal receives the given packet message fed back by the multiple access servers, and selects an appropriate given packet message in the received packet request message, which may be based on the name type tag, the service name type tag content, or the service scope content. Alternatively, it may be selected according to other types.
  • an appropriate packet-sending message is selected according to the received chronological order of the packet-sending message, for example, selecting the earliest received packet-receiving message is appropriate. That is, the access server corresponding to the packet received by the earliest received packet is selected as the session object, and the unicast session request packet message (PADR) is sent to the selected access server.
  • PADR unicast session request packet message
  • the selected access server After receiving the unicast session request packet message, the selected access server feeds back a acknowledgment packet message (PADS) to the terminal, where the unicast session request packet message includes a session ID (SESSION-ID).
  • the device also includes a name tag of the access server, a MAC address of the access server, and a service for confirming the service provided to the terminal.
  • the access server feeds back the acknowledgement packet message, and the terminal configures the username and password.
  • the related configuration information is fed back to the access server, and the access server performs authentication. After the authentication succeeds, the terminal allocates information such as an address to the terminal.
  • step S43 of the PPPOE network-based dialing method according to the present invention.
  • the specific process of the step S43 is as follows:
  • Step S431 analyzing the received time of giving the packet message, and sorting the receiving time
  • the time point of receiving and receiving the packet message is recorded, and the receiving time is sorted, and may be sorted from first to last, or may be sorted from back to first, which is not limited herein.
  • Step S432 obtaining a given packet message corresponding to the earliest receiving time, and selecting an access server corresponding to the given packet packet;
  • the first receiving packet message is obtained, and the access server corresponding to the group packet is selected as the session object.
  • Step S433 sending a unicast session request packet message to the selected access server.
  • the unicast session request packet message After selecting the access server, sending a unicast session request packet message (PADR) to the selected access server, the unicast session request packet message must include a service name type tag, and determine to the access server (or Switch) The type of service requested.
  • PADR unicast session request packet message
  • the PPPOE dial-up connection is successful (the terminal and the access server can be in a normal session), and the normal session can be performed. At this time, the terminal and the selected access server both carry the MAC of the access server. Address and dialog ID, then go to step S5;
  • step S5 the terminal enters a session phase
  • the terminal and the access server After the connection is successful, the terminal and the access server perform a PPPOE session, and the PPP data may be encapsulated in any PPP encapsulation format.
  • step S5 specifically includes:
  • Step S51 The terminal performs a session with the selected access server.
  • Step S52 starting a recording mechanism, recording session process data, where the session process data includes a session variable;
  • a recording mechanism is started to record process data during the session, including session variables, that is, information such as the MAC address and session ID of the selected access server.
  • steps S51 and S52 have no time limit and can be performed at the same time, which is not limited herein.
  • the method may further include:
  • the terminal sends a termination packet message to the selected access server, and deletes the recorded session process data.
  • the action of sending the abort packet message to the selected access server in step 6 may be at any stage of the session process, and is not limited to the end of the session, which is not limited herein.
  • the abort packet packet is not limited to be sent by the terminal to the access server, and may also be sent by the access server to the terminal, which is not limited herein.
  • a termination packet message may occur, indicating that the two are normally disconnected, and the session is terminated.
  • the session process data needs to be deleted, or only the session data may be deleted.
  • the session variable indicates that the two are normally disconnected. It does not affect the problem that the terminal needs to dial the access server again when the terminal needs to disconnect from the access server again.
  • the terminal when the terminal needs dial-up Internet access and performs a connection session with the access server, it is first determined whether the terminal currently has a previous session. When the previous session still exists, the terminal needs to send a termination packet to the access server to ensure the terminal. It is normally disconnected from the access server and prepares for the current connection session, which can improve the connection speed and efficiency.
  • the present invention provides a schematic diagram of a PPPOE network-based dialing system, where the system includes a terminal, and the terminal specifically includes:
  • the instruction receiving module 1 is configured to receive a dialing instruction issued by a user
  • the terminal may be a set top box, a computer, an ADSL terminal device with a dialing function, etc.
  • the terminal may be a router, and if the user configures the PPPOE through the WEB webpage during normal startup, The router starts the PPPOE client process.
  • the Internet dialing command is sent, and the terminal receives the command.
  • a judging module 2 connected to the instruction receiving module 1 for determining whether there is a last session connection, where the session is a session between the terminal and the access server;
  • the Internet access dialing command When the Internet access dialing command is received, it indicates that the session connection between the terminal and the access server needs to be dialed, but before the session connection, it is necessary to determine whether the terminal has the last session, that is, whether the terminal is connected to the server before. There is also a session that is not normally disconnected, that is, the session is abnormally disconnected. Specifically, it can be judged whether there is a session variable in the memory of the terminal, and if it exists, the last session connection exists, and the connection is abnormally disconnected. of.
  • the memory is an NVRAM memory (Non-Volatile Random Access Memory). Therefore, when it is determined that there is a session variable, it is necessary to send a stop packet message to terminate the session. If it is determined otherwise, the session request is started. Further, the session variable includes the session ID recorded in the previous session and the MAC address of the corresponding access server, and may further include other information, which is not limited herein.
  • the terminating session module 3 connected to the judging module 2 is configured to send a terminating packet message to the access server when it is determined that the last session exists, so that the access server terminates the session with the terminal;
  • the terminal finds the address of the corresponding access server based on the information of the session variable, and sends a termination packet to the corresponding access server, and the access server ends the corresponding session according to the session ID.
  • the terminal before the session needs to be initiated, it is determined whether the terminal has a previous session.
  • the termination packet is sent first, and the last session between the terminal and the access server is disconnected to ensure that the terminal is connected.
  • the normal disconnection state between the incoming servers ensures that the terminal and the access server can connect normally and quickly.
  • a session initiating module 4 connected to the judging module 2 and the terminating session module 3, for initiating a session request;
  • the terminal may perform a session initiation phase after ensuring that the terminal and the access server are in a normally disconnected state.
  • the session module 5 of the session initiation module 4 is configured to perform a session with the access server.
  • the terminal and the access server After the connection is successful, the terminal and the access server perform a PPPOE session, and the PPP data may be encapsulated in any PPP encapsulation format.
  • the terminating session module 3 is further configured to send a terminating packet message to the selected access server and delete the recorded session process data at the end of the session.
  • the action of the termination session module 3 to send a suspension packet message to the selected access server may be at any stage of the session process, and is not limited to the end of the session, which is not limited herein.
  • the abort packet packet is not limited to be sent by the terminal to the access server, and may also be sent by the access server to the terminal, which is not limited herein.
  • a termination packet message may occur, indicating that the two are normally disconnected, and the session is terminated.
  • the session process data needs to be deleted, or only the session data may be deleted.
  • the session variable indicates that the two are normally disconnected. Will not affect the subsequent process, the terminal needs to meet with the access server again. In the case of a call, the problem of normal dialing cannot be performed because the connection is not normally disconnected.
  • FIG. 5 it is a specific structural diagram of a session initiation module 4 of a PPPOE network-based dialing system according to the present invention.
  • the session initiation module 4 specifically includes:
  • a packet message initiating module 41 configured to broadcast a packet message
  • the access server is mainly selected, so the terminal needs to broadcast a packet initiation message (PADI), and each access server can receive the packet packet.
  • the packet message includes at least one tag of a service name type (the tag type field value is 0 ⁇ 0101), and provides information such as a service type and a service scope to the access server. There is no limit to this.
  • the grouping message receiving module 42 is configured to receive, by the one or more access servers, the grouping message according to the packet message feedback; the selecting module is configured to select an access server based on the received given packet message, and The selected access server sends a unicast session request packet message;
  • the access server After receiving the packet message, the access server provides a packet message (PADO) according to the service range feedback in the packet message, in response to the request, where the packet request message includes one The tag of the access server name type (the tag type field value is 0x0102), and one or more service name type tags indicating information such as the type of service that can be provided to the terminal. Further, when the terminal does not receive the PADO within the specified time, the terminal resends the packet message and doubles the waiting time to receive the packetized message fed back by the access server to ensure the session initiation phase.
  • PADO packet message
  • the selecting sending module 43 is configured to select an access server based on the received given packet message, and send a unicast session request packet message to the selected access server;
  • the terminal receives the given packet message fed back by the multiple access servers, and selects an appropriate given packet message in the received packet request message, which may be selected according to the service type or service range, and may also be based on other types.
  • an appropriate packet-sending message is selected according to the received chronological order of the packet-sending message, for example, selecting the earliest received packet-receiving message is appropriate, that is, selecting the earliest received packet.
  • the access server corresponding to the packet message is a session object.
  • the acknowledgment packet receiving module 44 is configured to receive the acknowledgment packet message fed back by the selected access server.
  • the selected access server After receiving the unicast session request packet message, the selected access server feeds back a acknowledgment packet message (PADS) to the terminal, where the unicast session request packet message includes a session ID, and includes an access.
  • PADS acknowledgment packet message
  • Server name type The tag, the MAC address of the access server, and information such as the service provided to the terminal.
  • the selection and transmission module 43 specifically includes:
  • the analyzing unit 431 is configured to analyze the received time of giving the packet message, and sort the receiving time;
  • the time point of receiving and receiving the packet message is recorded, and the receiving time is sorted, and may be sorted from first to last, or may be sorted from back to first, which is not limited herein.
  • the obtaining unit 432 is configured to obtain a given packet message corresponding to the earliest receiving time, and select an access server corresponding to the given packet packet;
  • the first receiving packet message is obtained, and the access server corresponding to the group packet is selected as the session object.
  • the sending unit 433 is configured to send a unicast session request packet message to the selected access server.
  • the unicast session request packet message After selecting the access server, sending a unicast session request packet message (PADR) to the selected access server, the unicast session request packet message must include a service name type tag, and determine to the access server (or Switch) The type of service requested.
  • PADR unicast session request packet message
  • the PPPOE dial-up connection is successful (the terminal and the access server can be in a normal session), and the normal session can be performed.
  • the terminal and the selected access server both carry the MAC of the access server. Address and conversation ID.
  • the terminal talks with the access server.
  • the session module 5 is specifically configured to: implement a session between the terminal and the selected access server, and start a recording mechanism to record process data of the session, where the session process data includes a session variable, for example, the connection Information such as the MAC address and session ID of the server.
  • the terminal when the terminal needs dial-up Internet access and performs a connection session with the access server, it is first determined whether the terminal currently has a previous session. When the previous session still exists, the terminal needs to send a termination packet to the access server to ensure the terminal. It is normally disconnected from the access server and prepares for the current connection session, which can improve the connection speed and efficiency.
  • the present invention also provides a router, which includes the dialing system described in the foregoing embodiment, and the structure and working principle of the dialing system can be referred to the foregoing embodiment, and details are not described herein again.
  • the dialing method, the dialing system and the router based on the PPPOE network of the present invention when receiving the dialing instruction of the user, first determine whether the terminal has the last session, that is, whether the current terminal and the access server are normal. Disconnected, if not disconnected normally, the termination packet is sent first to disconnect the terminal from the access server, which facilitates the subsequent normal session connection between the terminal and the access server, which can improve the connection speed and efficiency. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

Abstract

The present invention provides a PPPOE network-based dialing method, dialing system, and router. The dialing method comprises: S1, a terminal receives a dialing instruction sent by a user; S2, judge whether a previous conversation exists, if so, turn to step S3, and otherwise, turn to step S4, the conversation being a conversation between the terminal and an access server; S3, send an ending packet to the access server, such that the access server ends the conversation with the terminal; S4, the terminal enters a conversation initiating stage; and S5, the terminal enters a conversation stage. In the present invention, when a dialing instruction of a user is received, it is judged whether a terminal has a previous conversation, that is, it is judged whether the terminal is normally disconnected from an access server at present, and if not, an ending packet is firstly sent to disconnect the terminal from the access server, thereby facilitating subsequent implementation of a normal conversation connection between the terminal and the access server. The connection speed and efficiency can be improved.

Description

一种基于PPPOE网络的拨号方法、拨号系统及路由器Dialing method, dialing system and router based on PPPOE network
本申请要求2015年11月09日提交的申请号为:201510757263.1、发明名称为“一种基于PPPOE网络的拨号方法、拨号系统及路由器”的中国专利申请的优先权,其全部内容合并在此。The present application claims priority to Chinese Patent Application No. 201510757263.1, entitled "A PPPOE Network-Based Dialing Method, Dialing System, and Router", the entire contents of which are incorporated herein by reference.
技术领域Technical field
本发明涉及一种网络技术领域,特别是涉及一种基于PPPOE网络的拨号方法、拨号系统及路由器。The present invention relates to the field of network technologies, and in particular, to a dialing method, a dialing system, and a router based on a PPPOE network.
背景技术Background technique
无源光纤网络PON上行家庭网关的上网方式常用的有三种:动态主机配置协议DHCP路由器上网、基于以太网的点对点协议PPPOE路由器拨号上网和桥接拨号上网。基于以太网的点对点协议PPPOE路由器拨号上网:无源光纤网络PON上行家庭网关中创建一个上行路由器上网接口,通过基于以太网的点对点协议PPPOE拨号方式获取网络地址,无源光纤网络PON上行家庭网关通过该接口处理上下行网络数据,为连接到家庭网关的上网设备提供网络服务。Passive Optical Network PON Uplink Home Gateways are commonly used in three ways: dynamic host configuration protocol DHCP router Internet access, Ethernet-based peer-to-peer protocol PPPOE router dial-up Internet access and bridged dial-up Internet access. Ethernet-based point-to-point protocol PPPOE router dial-up access: Create an upstream router Internet interface in the passive optical network PON uplink home gateway, obtain the network address through the Ethernet-based point-to-point protocol PPPOE dialing mode, and pass the passive optical network PON uplink home gateway The interface processes uplink and downlink network data and provides network services for the Internet access device connected to the home gateway.
PPPOE(point-to-point protocol over ethernet,基于以太网的点对点协议),可使以太网的主机通过一个简单的桥接设备连到一个远端的接入集中器上。通过PPPOE协议,远端接入设备能够实现对每个接入用户的控制和计费。与传统的接入方式相比,PPPOE具有较高的性能价格比,它在包括小区组网建设等一系列应用中被广泛采用,目前流行的宽带接入方式ADSL(Asymmetric Digital Subscriber Line,非对称数字用户线路)使用了所述PPPOE协议。PPPOE (point-to-point protocol over ethernet) allows Ethernet hosts to connect to a remote access concentrator via a simple bridging device. Through the PPPOE protocol, the remote access device can control and charge each access user. Compared with the traditional access method, PPPOE has a high performance-price ratio. It is widely used in a series of applications including cell network construction. Currently, the popular broadband access method ADSL (Asymmetric Digital Subscriber Line) The digital subscriber line) uses the PPPOE protocol.
现有的路由器都支持PPPOE拨号上网功能,但当链接出现异常(例如断开链接)时,即PPPOE的交互过程中,某一方未正常退出,导致该会话处于异常情况,使得PPPOE客户端无法快速正常拨上获取地址,进而无法正常再次链接。The existing routers support the PPPOE dial-up function. However, when the link is abnormal (for example, the link is broken), that is, during the PPPOE interaction, one of the parties does not exit normally, causing the session to be abnormal, making the PPPOE client unable to be fast. The address is normally dialed, and the link cannot be re-connected normally.
发明内容Summary of the invention
鉴于以上所述现有技术的缺点,本发明的目的在于提供一种基于PPPOE网络的拨号方法、拨号系统及路由器,用于解决现有技术中PPPOE链接出现异常后无法再次正常链接的问题。In view of the above-mentioned shortcomings of the prior art, the object of the present invention is to provide a dialing method, a dialing system and a router based on a PPPOE network, which are used to solve the problem that the PPPOE link in the prior art cannot be normally linked again after an abnormality occurs.
为实现上述目的及其他相关目的,本发明提供一种基于PPPOE网络的拨号方法、拨号系 统及路由器;一种基于PPPOE网络的拨号方法,所述方法包括以下步骤:S1、终端接收到用户发出的拨号指令;S2、判断是否存在上一次会话,当判断为是转动步骤S3,否则转到步骤S4,所述会话为终端与接入服务器之间的会话;S3、向所述接入服务器发送终止分组报文,使得所述接入服务器终止与所述终端的会话;S4、所述终端进入会话发起阶段;S5、所述终端进入会话阶段。To achieve the above and other related objects, the present invention provides a dialing method and a dialing system based on a PPPOE network. And a router; a dialing method based on a PPPOE network, the method comprising the following steps: S1, the terminal receives a dialing instruction issued by a user; S2, determines whether there is a previous session, and when it is determined to be a rotating step S3, otherwise Go to step S4, the session is a session between the terminal and the access server; S3, sending a termination packet message to the access server, so that the access server terminates the session with the terminal; S4, the The terminal enters a session initiation phase; S5, the terminal enters a session phase.
于本发明的一实施方式中,所述步骤S2具体为:判断存储器中是否存在会话变量,若判断是则认为存在上一次会话连接,若判断为否则不存在,所述会话变量包括上一次会话时记录的会话ID及对应接入服务器的MAC地址。In an embodiment of the present invention, the step S2 is specifically: determining whether there is a session variable in the memory, and if it is determined to be, the last session connection is considered to exist, and if it is determined that the session is not present, the session variable includes the previous session. The session ID recorded at the time and the MAC address of the corresponding access server.
于本发明的一实施方式中,所述步骤S4具体为:S41、所述终端广播发起分组报文;S42、接收一个以上接入服务器基于所述分组报文反馈的给予分组报文;S43、终端基于所接收的给予分组报文选择一个接入服务器,并给所选择的接入服务器发送单播会话请求分组报文;S44、接收所选择的接入服务器反馈的确认分组报文。In an embodiment of the present invention, the step S4 is specifically: S41, the terminal broadcasts a packet message; and S42, receiving, by the one or more access servers, the grouping message according to the packet message feedback; S43, The terminal selects an access server based on the received packet request message, and sends a unicast session request packet message to the selected access server. S44. Receive an acknowledgement packet message fed back by the selected access server.
于本发明的一实施方式中,所述步骤S43具体为:S431、分析所接收的给予分组报文的时间,对接收时间进行排序;S432、获取最早接收时间对应的给予分组报文,选择与该给予分组报文对应的接入服务器;S433、向所述选择的接入服务器发送单播会话请求分组报文。In an embodiment of the present invention, the step S43 is specifically: S431, analyzing the received time of giving the packet message, and sorting the receiving time; S432, obtaining the packet receiving message corresponding to the earliest receiving time, selecting and The access server corresponding to the packet message is sent; S433, sending a unicast session request packet message to the selected access server.
于本发明的一实施方式中,所述步骤S5具体包括:S51、所述终端与所选择的接入服务器进行会话;S52、启动记录机制,记录会话过程数据,所述会话过程数据包括会话变量。In an embodiment of the present invention, the step S5 specifically includes: S51, the terminal performs a session with the selected access server; S52, starts a recording mechanism, records session process data, and the session process data includes a session variable. .
于本发明的一实施方式中,所述步骤S5之后还包括:S6、在所述会话结束时,所述终端向所选择的接入服务器发送终止分组报文,并删除所记录的会话变量。In an embodiment of the present invention, after the step S5, the method further includes: S6. At the end of the session, the terminal sends a termination packet message to the selected access server, and deletes the recorded session variable.
本发明还提供一种基于PPPOE网络的拨号系统,所述拨号系统包括终端,所述终端包括:指令接收模块,用于接收到用户发出的拨号指令;与所述指令接收模块连接的判断模块,用于判断是否存在上一次会话连接,所述会话为所述终端与接入服务器之间的会话;与所述判断模块连接的终止会话模块,用于存在上一次会话时向所述接入服务器发送终止分组报文,使得所述接入服务器终止与所述终端的会话;与所述判断模块及所述终止会话模块连接的会话发起模块,用于发起会话请求;与所述会话发起模块的会话模块,用于与接入服务器进行会话。The invention also provides a dialing system based on a PPPOE network, the dialing system comprising a terminal, the terminal comprising: an instruction receiving module, configured to receive a dialing instruction issued by a user; and a determining module connected to the instruction receiving module, For determining whether there is a last session connection, the session is a session between the terminal and the access server; and the terminating session module connected to the determining module is configured to send to the access server when the last session exists Sending a termination packet message, causing the access server to terminate a session with the terminal; a session initiation module connected to the determination module and the termination session module, configured to initiate a session request; and the session initiation module A session module for conducting a session with an access server.
于本发明的一实施方式中,所述判断模块具体用于:判断存储器中是否存在会话变量,若判断是则认为存在上一次会话连接,若判断为否则不存在,所述会话变量包括上一次会话时记录的会话ID及对应接入服务器的MAC地址。In an embodiment of the present invention, the determining module is specifically configured to: determine whether a session variable exists in the memory, and if it is determined to be, the last session connection is considered to exist, and if it is determined that the session is not present, the session variable includes the last time. The session ID recorded during the session and the MAC address of the corresponding access server.
于本发明的一实施方式中,所述会话发起模块具体包括:分组报文发起模块,用于广播 发起分组报文;给予分组报文接收模块,用于接收一个以上接入服务器基于所述分组报文反馈的给予分组报文;选择模块,用于基于所接收的给予分组报文选择一个接入服务器,并给所选择的接入服务器发送单播会话请求分组报文;选择发送模块,用于基于所接收的给予分组报文选择一个接入服务器,并给所选择的接入服务器发送单播会话请求分组报文;确认分组报文接收模块,用于接收所选择的接入服务器反馈的确认分组报文。In an embodiment of the present invention, the session initiation module specifically includes: a packet message initiation module, configured to broadcast And a packet message receiving module is configured to receive a packet message that is received by the one or more access servers based on the packet message feedback; and a selecting module, configured to select an access based on the received packet message a server, and sending a unicast session request packet message to the selected access server; and selecting a sending module, configured to select an access server based on the received given packet message, and send a unicast to the selected access server The session request packet message is sent by the acknowledgment packet receiving module, and is configured to receive the acknowledgment packet message fed back by the selected access server.
本发明还提供路由器,包括基于PPPOE网络的拨号系统,所述拨号系统包括终端,所述终端包括:指令接收模块,用于接收到用户发出的拨号指令;与所述指令接收模块连接的判断模块,用于判断是否存在上一次会话连接,所述会话为所述终端与接入服务器之间的会话;与所述判断模块连接的终止会话模块,用于存在上一次会话时向所述接入服务器发送终止分组报文,使得所述接入服务器终止与所述终端的会话;与所述判断模块及所述终止会话模块连接的会话发起模块,用于发起会话请求;与所述会话发起模块的会话模块,用于与接入服务器进行会话。The present invention also provides a router, including a dialing system based on a PPPOE network, the dialing system including a terminal, the terminal comprising: an instruction receiving module, configured to receive a dialing instruction issued by a user; and a determining module connected to the instruction receiving module For determining whether there is a last session connection, the session is a session between the terminal and the access server; and the terminating session module connected to the determining module is configured to access the access in the last session The server sends a terminating packet message, so that the access server terminates the session with the terminal; the session initiating module connected to the determining module and the terminating session module is configured to initiate a session request; and the session initiating module Session module for talking to the access server.
本发明的一种移动终端应用的管理方法、管理系统及手机,至少具有以下有益效果:The management method, the management system and the mobile phone of the mobile terminal application of the present invention have at least the following beneficial effects:
当终端需要拨号上网,与接入服务器进行连接会话时,首先判断终端当前是否存在上一次会话,当还存在上一次会话时,需要向接入服务器发送终止分组报文,保证终端与接入服务器正常断开,使得当前进行连接会话可以顺利进行,可以提高连接速度及效率。When the terminal needs to dial up to the Internet and connect to the access server, it is first determined whether the terminal currently has the previous session. When the previous session still exists, the terminal needs to send the termination packet to the access server to ensure the terminal and the access server. Normal disconnection, so that the current connection session can proceed smoothly, which can improve the connection speed and efficiency.
附图说明DRAWINGS
图1是本发明的一种基于PPPOE网络的拨号方法一实施例的流程示意图;1 is a schematic flow chart of an embodiment of a dialing method based on a PPPOE network according to the present invention;
图2是本发明的一种基于PPPOE网络的拨号方法的步骤S3的具体流程示意图;2 is a schematic diagram of a specific process of step S3 of a PPPOE network-based dialing method according to the present invention;
图3是本发明的一种基于PPPOE网络的拨号方法的步骤S33的具体流程示意图;3 is a schematic diagram of a specific process of step S33 of a PPPOE network-based dialing method according to the present invention;
图4是本发明的一种基于PPPOE网络的拨号系统一实施例的结构示意图;4 is a schematic structural diagram of an embodiment of a PPPOE network-based dialing system according to the present invention;
图5是本发明的一种基于PPPOE网络的拨号系统的会话发起模块3的具体结构示意图;5 is a schematic diagram of a specific structure of a session initiation module 3 of a PPPOE network-based dialing system according to the present invention;
图6是本发明的一种基于PPPOE网络的拨号系统的选择发送模块33的具体结构示意图。FIG. 6 is a schematic diagram of a specific structure of a selection sending module 33 of a PPPOE network-based dialing system according to the present invention.
元件标号说明:Component label description:
1                指令接收模块1 command receiving module
2                判断模块2 judgment module
3                终止会话模块3 Terminating the session module
4                会话发起模块 4 session initiation module
5                会话模块5 session module
41               分组报文发起模块41 packet message initiation module
42               给予分组报文接收模块42 Granting a packet message receiving module
43               选择发送模块43 Select the sending module
44               确认分组报文接收模块44 Confirm Packet Packet Receiving Module
431              分析单元431 analysis unit
432              获取单元432 acquisition unit
433              发送单元433 sending unit
S1~S433         步骤S1 ~ S433 steps
具体实施方式detailed description
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。The embodiments of the present invention are described below by way of specific examples, and those skilled in the art can readily understand other advantages and effects of the present invention from the disclosure of the present disclosure. The present invention may be embodied or applied in various other specific embodiments, and various modifications and changes can be made without departing from the spirit and scope of the invention. It should be noted that the features in the following embodiments and embodiments may be combined with each other without conflict.
需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图式中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention in a schematic manner, and only the components related to the present invention are shown in the drawings, rather than the number and shape of components in actual implementation. Dimensional drawing, the actual type of implementation of each component's type, number and proportion can be a random change, and its component layout can be more complicated.
实施例1Example 1
请参阅图1,为本发明提供基于PPPOE网络的拨号方法的流程示意图,所述拨号方法包括步骤:Please refer to FIG. 1 , which is a schematic flowchart of a PPPOE network-based dialing method according to the present invention. The dialing method includes the following steps:
步骤S1、终端接收到拨号指令,所述拨号指令为用户发出的上网拨号指令;Step S1: The terminal receives a dialing instruction, where the dialing instruction is an online dialing instruction issued by the user;
具体地,该终端可为机顶盒、电脑、带有拨号功能的ADSL终端设备等,于本发明的一实施方式中,该终端可为路由器,正常启动时,若用户通过WEB网页配置PPPOE,路由器启动PPPOE的客户端进程。用户需要上网时,发送上网拨号指令,终端接收到该指令。Specifically, the terminal may be a set-top box, a computer, an ADSL terminal device with a dialing function, etc. In an embodiment of the present invention, the terminal may be a router. When the user starts normally, if the user configures the PPPOE through the WEB webpage, the router starts. PPPOE client process. When the user needs to access the Internet, the Internet dialing command is sent, and the terminal receives the command.
步骤S2、判断是否存在上一次会话,当判断为是转动步骤S3,否则转到步骤S4,所述会话为终端与接入服务器之间的会话。Step S2: determining whether there is a previous session, when it is determined to be the rotating step S3, otherwise going to step S4, the session is a session between the terminal and the access server.
其中,当接收到上网拨号指令时,表示需要去拨号进行终端与接入服务器之间的会话连接,但进行会话连接之前需要先判断终端是否存在上一次会话,即判断终端是否与接入服务 器之前有会话,并且在会话过程是异常断开连接的,具体地,可判断终端的存储器中是否存在会话变量,若存在则说明存在上一次会话连接,并且是异常断开连接的。所述存储器为NVRAM存储器(Non-Volatile Random Access Memory,非易失性随机访问存储器),因此在判断存在会话变量时,转到步骤S3,若判断为否转到步骤S4,进一步地,所述会话变量包括上一次会话时记录的会话ID及对应接入服务器的MAC地址。When receiving the online dialing instruction, it indicates that the dialing is required to perform the session connection between the terminal and the access server, but before the session connection, it is necessary to determine whether the terminal has the last session, that is, whether the terminal and the access service are determined. There is a session before the session, and the session is abnormally disconnected. Specifically, it can be judged whether there is a session variable in the memory of the terminal, and if it exists, it indicates that there is a previous session connection, and the connection is abnormally disconnected. The memory is an NVRAM memory (Non-Volatile Random Access Memory). Therefore, when it is determined that there is a session variable, the process goes to step S3. If the determination is no, the process goes to step S4. Further, the The session variable includes the session ID recorded in the previous session and the MAC address of the corresponding access server.
步骤S3、向接入服务器发送终止分组报文,使得接入服务器终止与终端的会话;Step S3: Send a termination packet to the access server, so that the access server terminates the session with the terminal.
本实施例中,终端基于所述会话变量的信息,找到对应接入服务器的地址,向对应的接入服务器发送终止分组报文,接入服务器根据会话ID结束对应的会话。In this embodiment, the terminal finds the address of the corresponding access server based on the information of the session variable, and sends a termination packet to the corresponding access server, and the access server ends the corresponding session according to the session ID.
本实施例中,在需要发起会话之前判断终端是否存在上一次会话,在确认存储会话变量时,先发送终止分组报文,断开终端与接入服务器之间的上一次会话,确保终端与接入服务器之间是正常断开状态,可保证终端与接入服务器可正常、快速连接起来。In this embodiment, before the session needs to be initiated, it is determined whether the terminal has a previous session. When the storage session variable is confirmed, the termination packet is sent first, and the last session between the terminal and the access server is disconnected to ensure that the terminal is connected. The normal disconnection state between the incoming servers ensures that the terminal and the access server can connect normally and quickly.
步骤S4、终端进入会话发起阶段;Step S4: The terminal enters a session initiation phase;
在确保终端与接入服务器之间是正常断开状态后,终端可进行会话发起阶段。After ensuring that the terminal and the access server are in a normally disconnected state, the terminal may perform a session initiation phase.
如图2所示,为本发明的一种基于PPPOE网络的拨号方法的步骤S4的具体流程图,所述步骤S4具体包括:As shown in FIG. 2, it is a specific flowchart of step S4 of the PPPOE network-based dialing method according to the present invention. The step S4 specifically includes:
步骤S41、终端广播发起分组报文;Step S41: The terminal broadcasts a packet message.
具体地,此时处于会话发起阶段,主要是选择接入服务器,因此终端需要广播发起分组报文(PADI),各个接入服务器都可接收到此分组报文。进一步地,所述分组报文至少包含一个服务名称类型的标签(标签类型字段值为0×0101),向接入服务器提出所要求提供的服务等信息,所述服务包括服务类型、服务范围等,此处对此不作限制。Specifically, at this time, in the session initiation phase, the access server is mainly selected, so the terminal needs to broadcast a packet initiation message (PADI), and each access server can receive the packet packet. Further, the packet message includes at least one tag of a service name type (the tag type field value is 0×0101), and provides information such as a service type and a service scope to the access server. There is no limit to this.
S42、接收一个以上接入服务器基于该分组报文反馈的给予分组报文;S42. Receive a packet message that is received by the one or more access servers based on the packet packet feedback.
其中,接入服务器接收到所述分组报文后,根据所述分组报文中的服务范围反馈给予分组报文(PADO),以响应请求,其中,所述给予分组报文包括包含一个接入服务器名称类型的标签(标签类型字段值为0×0102),以及一个或多个服务名称类型标签,表明可向终端提供的服务类型等信息。进一步地,当终端在指定的时间内没有接收到所述给予分组报文,所述终端会重新发送所述分组报文,并且加倍等待时间,以接收到接入服务器反馈的给予分组报文,确保会话发起阶段的顺利进行,而当等待时间超过阈值时,停止等待,向用户反馈连接超时的信息,或者所述接入服务器基于所接收的分组报文,分析后发现该报文异常时,则反馈一个空的给予分组报文,此时终端根据给予分组报文进行分析,当判断该给予分组报文为空时,则向用户反馈连接异常,且连接失败的信息。 After receiving the packet message, the access server provides a packet message (PADO) according to the service range feedback in the packet message, in response to the request, where the packet request message includes one access. The label of the server name type (the label type field value is 0x0102), and one or more service name type labels indicating information such as the type of service that can be provided to the terminal. Further, when the terminal does not receive the given packet message within a specified time, the terminal resends the packet message and doubles the waiting time to receive the packetized message fed back by the access server. Ensure that the session is initiated smoothly, and when the waiting time exceeds the threshold, stop waiting, feed back the information of the connection timeout to the user, or the access server analyzes the packet based on the received packet, and finds that the packet is abnormal. Then, an empty packet giving message is fed back. At this time, the terminal analyzes the packet according to the packet, and when it is determined that the packet is empty, the user is fed back with the connection abnormality and the connection failure information.
S43、终端基于所接收的给予分组报文选择一个接入服务器,并给所选择的接入服务器发送单播会话请求分组报文;S43. The terminal selects an access server based on the received given packet message, and sends a unicast session request packet message to the selected access server.
终端会接收到多个接入服务器反馈的给予分组报文,会在接收到的给予分组报文中选择一个合适的给予分组报文,可根据名称类型标签、服务名称类型标签内容或服务范围内容来选择,还可以根据其他类型选择,本实施例中,作为优选,根据所接收的给予分组报文的时间先后来选择合适的给予分组报文,例如,选择最早接收的给予分组报文为合适的,即选择最早接收到的给予分组报文对应的接入服务器为会话对象,并向所述选择的接入服务器发送单播会话请求分组报文(PADR)。The terminal receives the given packet message fed back by the multiple access servers, and selects an appropriate given packet message in the received packet request message, which may be based on the name type tag, the service name type tag content, or the service scope content. Alternatively, it may be selected according to other types. In this embodiment, as a preferred method, an appropriate packet-sending message is selected according to the received chronological order of the packet-sending message, for example, selecting the earliest received packet-receiving message is appropriate. That is, the access server corresponding to the packet received by the earliest received packet is selected as the session object, and the unicast session request packet message (PADR) is sent to the selected access server.
S44、接收所选择的接入服务器反馈的确认分组报文。S44. Receive an acknowledgement packet message fed back by the selected access server.
所选择的接入服务器接收到所述单播会话请求分组报文后,向所述终端反馈确认分组报文(PADS),所述单播会话请求分组报文包括会话ID(SESSION-ID),还包括一个接入服务器的名称类型的标签、所述接入服务器的MAC地址,以及确认向终端提供的服务等信息,此时接入服务器反馈确认分组报文,终端将配置的用户名、密码等相关配置信息反馈给接入服务器,该接入服务器进行认证,认证成功后向终端反馈分配的地址等信息。After receiving the unicast session request packet message, the selected access server feeds back a acknowledgment packet message (PADS) to the terminal, where the unicast session request packet message includes a session ID (SESSION-ID). The device also includes a name tag of the access server, a MAC address of the access server, and a service for confirming the service provided to the terminal. At this time, the access server feeds back the acknowledgement packet message, and the terminal configures the username and password. The related configuration information is fed back to the access server, and the access server performs authentication. After the authentication succeeds, the terminal allocates information such as an address to the terminal.
在本实施例的一个优选方案中,如图3所示,为本发明的一种基于PPPOE网络的拨号方法的步骤S43的具体流程图,所述步骤S43的具体过程如下:In a preferred embodiment of the present embodiment, as shown in FIG. 3, it is a specific flowchart of step S43 of the PPPOE network-based dialing method according to the present invention. The specific process of the step S43 is as follows:
步骤S431、分析所接收的给予分组报文的时间,对接收时间进行排序;Step S431, analyzing the received time of giving the packet message, and sorting the receiving time;
本实施例中,记录接收给予分组报文的时间点,并对接收时间进行排序,可由先到后进行排序,也可由后到先进行排序,此处对此不作限制。In this embodiment, the time point of receiving and receiving the packet message is recorded, and the receiving time is sorted, and may be sorted from first to last, or may be sorted from back to first, which is not limited herein.
步骤S432、获取最早接收时间对应的给予分组报文,选择与该给予分组报文对应的接入服务器;Step S432, obtaining a given packet message corresponding to the earliest receiving time, and selecting an access server corresponding to the given packet packet;
根据排序后的给予分组报文,获得最先接收的给予分组报文,选择该给予分组报文对应的接入服务器为会话对象。According to the given grouping message, the first receiving packet message is obtained, and the access server corresponding to the group packet is selected as the session object.
步骤S433、向所选择的接入服务器发送单播会话请求分组报文。Step S433, sending a unicast session request packet message to the selected access server.
选择好接入服务器之后,向所选择的接入服务器发送单播会话请求分组报文(PADR),所述单播会话请求分组报文必须包含一个服务名称类型标签,确定向接入服务器(或交换机)请求的服务种类。After selecting the access server, sending a unicast session request packet message (PADR) to the selected access server, the unicast session request packet message must include a service name type tag, and determine to the access server (or Switch) The type of service requested.
在发起会话阶段完成时,即表示PPPOE拨号连接成功(终端与接入服务器可以正常会话),可以进行正常会话,此时所述终端及选择的接入服务器都携带有所述接入服务器的MAC地址及对话ID,接着转到步骤S5; When the initiating session is completed, the PPPOE dial-up connection is successful (the terminal and the access server can be in a normal session), and the normal session can be performed. At this time, the terminal and the selected access server both carry the MAC of the access server. Address and dialog ID, then go to step S5;
在步骤S5中,所述终端进入会话阶段;In step S5, the terminal enters a session phase;
当连接成功后,所述终端与接入服务器进行PPPOE会话,可以任何PPP封装形式来封装PPP数据,此处对此不作限制。After the connection is successful, the terminal and the access server perform a PPPOE session, and the PPP data may be encapsulated in any PPP encapsulation format.
具体地,所述步骤S5具体包括:Specifically, the step S5 specifically includes:
步骤S51、终端与所选择的接入服务器进行会话;Step S51: The terminal performs a session with the selected access server.
步骤S52、启动记录机制,记录会话过程数据,所述会话过程数据包括会话变量;Step S52, starting a recording mechanism, recording session process data, where the session process data includes a session variable;
具体地,当可以进行正常会话时,启动记录机制,记录在会话过程中的过程数据,其中包括会话变量,即所选择的接入服务器的MAC地址及会话ID等信息。Specifically, when a normal session can be performed, a recording mechanism is started to record process data during the session, including session variables, that is, information such as the MAC address and session ID of the selected access server.
需要说明的是,上述步骤S51及步骤S52没有时间先后执行的限制,可以同时进行,此处对此不作限制。It should be noted that the above steps S51 and S52 have no time limit and can be performed at the same time, which is not limited herein.
本实施例中,于本发明的一实施方式中,所述步骤S5之后还可包括:In this embodiment, in an embodiment of the present invention, after the step S5, the method may further include:
S6、在会话结束时,终端向所选择的接入服务器发送终止分组报文,并删除所记录的会话过程数据。S6. At the end of the session, the terminal sends a termination packet message to the selected access server, and deletes the recorded session process data.
需要说明的是,所述步骤6中的向所选择的接入服务器发送中止分组报文这一动作可以在会话过程的任意阶段,无须限定在会话结束时,此处对此不作限制。进一步地,中止分组报文也无需限定在终端向接入服务器发送,也可以是接入服务器向终端发,此处对此也不作限制。更进一步地,当终端与接入服务器正常断开时,会发生终止分组报文,表示上述二者是正常断开连接,终止对话,此时需要删除所述会话过程数据,也可只删掉所述会话变量,表示上述二者正常断开连接。不会影响后续过程中,终端需要再次与接入服务器进行会话时,因没有正常断开连接而无法进行正常拨号的问题。本发明中,当终端需要拨号上网,与接入服务器进行连接会话时,首先判断终端当前是否存在上一次会话,当还存在上一次会话时,需要向接入服务器发送终止分组报文,保证终端与接入服务器正常断开,为当前进行连接会话顺利进行准备,可以提高连接速度及效率。It should be noted that the action of sending the abort packet message to the selected access server in step 6 may be at any stage of the session process, and is not limited to the end of the session, which is not limited herein. Further, the abort packet packet is not limited to be sent by the terminal to the access server, and may also be sent by the access server to the terminal, which is not limited herein. Further, when the terminal and the access server are normally disconnected, a termination packet message may occur, indicating that the two are normally disconnected, and the session is terminated. At this time, the session process data needs to be deleted, or only the session data may be deleted. The session variable indicates that the two are normally disconnected. It does not affect the problem that the terminal needs to dial the access server again when the terminal needs to disconnect from the access server again. In the present invention, when the terminal needs dial-up Internet access and performs a connection session with the access server, it is first determined whether the terminal currently has a previous session. When the previous session still exists, the terminal needs to send a termination packet to the access server to ensure the terminal. It is normally disconnected from the access server and prepares for the current connection session, which can improve the connection speed and efficiency.
实施例2Example 2
请参阅图4,为本发明提供一种基于PPPOE网络的拨号系统的结构示意图,其中所述系统包括终端,所述终端具体包括:Referring to FIG. 4, the present invention provides a schematic diagram of a PPPOE network-based dialing system, where the system includes a terminal, and the terminal specifically includes:
指令接收模块1,用于接收到用户发出的拨号指令;The instruction receiving module 1 is configured to receive a dialing instruction issued by a user;
具体地,所述终端可为机顶盒、电脑、带有拨号功能的ADSL终端设备等,于本发明的一实施方式中,所述终端可为路由器,正常启动时,若用户通过WEB网页配置PPPOE,路由器启动PPPOE的客户端进程。用户需要上网时,发送上网拨号指令,终端接收到该指令。 Specifically, the terminal may be a set top box, a computer, an ADSL terminal device with a dialing function, etc. In an embodiment of the present invention, the terminal may be a router, and if the user configures the PPPOE through the WEB webpage during normal startup, The router starts the PPPOE client process. When the user needs to access the Internet, the Internet dialing command is sent, and the terminal receives the command.
与所述指令接收模块1连接的判断模块2,用于判断是否存在上一次会话连接,所述会话为所述终端与接入服务器之间的会话;a judging module 2 connected to the instruction receiving module 1 for determining whether there is a last session connection, where the session is a session between the terminal and the access server;
其中,当接收到上网拨号指令时,表示需要去拨号进行终端与接入服务器之间的会话连接,但进行会话连接之前需要先判断终端是否存在上一次会话,即判断终端是否与接入服务器之前还有未正常断开的会话,即在会话过程是异常断开连接的,具体地,可判断终端的存储器中是否存在会话变量,若存在则说明存在上一次会话连接,并且是异常断开连接的。所述存储器为NVRAM存储器(Non-Volatile Random Access Memory,非易失性随机访问存储器),因此在判断存在会话变量时,需要发送停止分组报文以终止此会话,若判断为否则开始会话请求,进一步地,所述会话变量包括上一次会话时记录的会话ID及对应接入服务器的MAC地址,还可包括其他信息,此处对此不作限制。When the Internet access dialing command is received, it indicates that the session connection between the terminal and the access server needs to be dialed, but before the session connection, it is necessary to determine whether the terminal has the last session, that is, whether the terminal is connected to the server before. There is also a session that is not normally disconnected, that is, the session is abnormally disconnected. Specifically, it can be judged whether there is a session variable in the memory of the terminal, and if it exists, the last session connection exists, and the connection is abnormally disconnected. of. The memory is an NVRAM memory (Non-Volatile Random Access Memory). Therefore, when it is determined that there is a session variable, it is necessary to send a stop packet message to terminate the session. If it is determined otherwise, the session request is started. Further, the session variable includes the session ID recorded in the previous session and the MAC address of the corresponding access server, and may further include other information, which is not limited herein.
与所述判断模块2连接的终止会话模块3,用于当判断存在上一次会话时向所述接入服务器发送终止分组报文,使得所述接入服务器终止与所述终端的会话;The terminating session module 3 connected to the judging module 2 is configured to send a terminating packet message to the access server when it is determined that the last session exists, so that the access server terminates the session with the terminal;
本实施例中,终端基于所述会话变量的信息,找到所述对应接入服务器的地址,向对应的接入服务器发送终止分组报文,所述接入服务器根据会话ID结束对应的会话。In this embodiment, the terminal finds the address of the corresponding access server based on the information of the session variable, and sends a termination packet to the corresponding access server, and the access server ends the corresponding session according to the session ID.
本实施例中,在需要发起会话之前判断终端是否存在上一次会话,在确认存储会话变量时,先发送终止分组报文,断开终端与接入服务器之间的上一次会话,确保终端与接入服务器之间是正常断开状态,可保证终端与接入服务器可正常、快速连接起来。In this embodiment, before the session needs to be initiated, it is determined whether the terminal has a previous session. When the storage session variable is confirmed, the termination packet is sent first, and the last session between the terminal and the access server is disconnected to ensure that the terminal is connected. The normal disconnection state between the incoming servers ensures that the terminal and the access server can connect normally and quickly.
与所述判断模块2及所述终止会话模块3连接的会话发起模块4,用于发起会话请求;a session initiating module 4 connected to the judging module 2 and the terminating session module 3, for initiating a session request;
其中,在确保终端与接入服务器之间是正常断开状态后,终端可进行会话发起阶段。The terminal may perform a session initiation phase after ensuring that the terminal and the access server are in a normally disconnected state.
与所述会话发起模块4的会话模块5,用于与接入服务器进行会话。The session module 5 of the session initiation module 4 is configured to perform a session with the access server.
当连接成功后,所述终端与接入服务器进行PPPOE会话,可以任何PPP封装形式来封装PPP数据,此处对此不作限制。After the connection is successful, the terminal and the access server perform a PPPOE session, and the PPP data may be encapsulated in any PPP encapsulation format.
在本实施例的一个优选方案中,所述终止会话模块3还可用于在所述会话结束时,向所选择的接入服务器发送终止分组报文,并删除所记录的会话过程数据。In a preferred implementation of this embodiment, the terminating session module 3 is further configured to send a terminating packet message to the selected access server and delete the recorded session process data at the end of the session.
需要说明的是,所述终止会话模块3向所选择的接入服务器发送中止分组报文这一动作可以在会话过程的任意阶段,无须限定在会话结束时,此处对此不作限制。进一步地,中止分组报文也无需限定在终端向接入服务器发送,也可以是接入服务器向终端发,此处对此也不作限制。更进一步地,当终端与接入服务器正常断开时,会发生终止分组报文,表示上述二者是正常断开连接,终止对话,此时需要删除所述会话过程数据,也可只删掉所述会话变量,表示上述二者正常断开连接。不会影响后续过程中,终端需要再次与接入服务器进行会 话时,因没有正常断开连接而无法进行正常拨号的问题。It should be noted that the action of the termination session module 3 to send a suspension packet message to the selected access server may be at any stage of the session process, and is not limited to the end of the session, which is not limited herein. Further, the abort packet packet is not limited to be sent by the terminal to the access server, and may also be sent by the access server to the terminal, which is not limited herein. Further, when the terminal and the access server are normally disconnected, a termination packet message may occur, indicating that the two are normally disconnected, and the session is terminated. At this time, the session process data needs to be deleted, or only the session data may be deleted. The session variable indicates that the two are normally disconnected. Will not affect the subsequent process, the terminal needs to meet with the access server again. In the case of a call, the problem of normal dialing cannot be performed because the connection is not normally disconnected.
进一步地,如图5所示,为本发明的一种基于PPPOE网络的拨号系统的会话发起模块4的具体结构图,所述会话发起模块4具体包括:Further, as shown in FIG. 5, it is a specific structural diagram of a session initiation module 4 of a PPPOE network-based dialing system according to the present invention. The session initiation module 4 specifically includes:
分组报文发起模块41,用于广播发起分组报文;a packet message initiating module 41, configured to broadcast a packet message;
具体地,此时处于会话发起阶段,主要是选择接入服务器,因此终端需要广播发起分组报文(PADI),各个接入服务器都可接收到此分组报文。进一步地,所述分组报文至少包含一个服务名称类型的标签(标签类型字段值为0×0101),向接入服务器提出所要求提供的服务等信息,所述服务包括服务类型、服务范围等,此处对此不作限制。Specifically, at this time, in the session initiation phase, the access server is mainly selected, so the terminal needs to broadcast a packet initiation message (PADI), and each access server can receive the packet packet. Further, the packet message includes at least one tag of a service name type (the tag type field value is 0×0101), and provides information such as a service type and a service scope to the access server. There is no limit to this.
给予分组报文接收模块42,用于接收一个以上接入服务器基于所述分组报文反馈的给予分组报文;选择模块,用于基于所接收的给予分组报文选择一个接入服务器,并给所选择的接入服务器发送单播会话请求分组报文;And the grouping message receiving module 42 is configured to receive, by the one or more access servers, the grouping message according to the packet message feedback; the selecting module is configured to select an access server based on the received given packet message, and The selected access server sends a unicast session request packet message;
其中,所述接入服务器接收到所述分组报文后,根据所述分组报文中的服务范围反馈给予分组报文(PADO),以响应请求,其中,所述给予分组报文包括包含一个接入服务器名称类型的标签(标签类型字段值为0×0102),以及一个或多个服务名称类型标签,表明可向终端提供的服务类型等信息。进一步地,当终端在指定的时间内没有接收到PADO,所述终端会重新发送所述分组报文,并且加倍等待时间,以接收到接入服务器反馈的给予分组报文,确保会话发起阶段的顺利进行,而当等待时间超过阈值时,停止等待,向用户反馈连接超时的信息,或者所述接入服务器基于所接收的分组报文,分析后发现该报文异常时,则反馈一个空的给予分组报文,此时终端根据给予分组报文进行分析,当判断该给予分组报文为空时,则向用户反馈连接异常,且连接失败的信息。After receiving the packet message, the access server provides a packet message (PADO) according to the service range feedback in the packet message, in response to the request, where the packet request message includes one The tag of the access server name type (the tag type field value is 0x0102), and one or more service name type tags indicating information such as the type of service that can be provided to the terminal. Further, when the terminal does not receive the PADO within the specified time, the terminal resends the packet message and doubles the waiting time to receive the packetized message fed back by the access server to ensure the session initiation phase. Smoothly proceeding, and when the waiting time exceeds the threshold, stop waiting, feed back the information of the connection timeout to the user, or the access server, based on the received packet message, analyzes and finds that the message is abnormal, then feeds back an empty The packet is given, and the terminal analyzes the packet according to the given packet. When it is determined that the packet is empty, the terminal feeds back to the user that the connection is abnormal and the connection fails.
选择发送模块43,用于基于所接收的给予分组报文选择一个接入服务器,并给所选择的接入服务器发送单播会话请求分组报文;The selecting sending module 43 is configured to select an access server based on the received given packet message, and send a unicast session request packet message to the selected access server;
终端会接收到多个接入服务器反馈的给予分组报文,会在接收到的给予分组报文中选择一个合适的给予分组报文,可根据服务类型或服务范围来选择,还可以根据其他类型选择,本实施例中,作为优选,根据所接收的给予分组报文的时间先后来选择合适的给予分组报文,例如,选择最早接收的给予分组报文为合适的,即选择最早接收到的给予分组报文对应的接入服务器为会话对象。The terminal receives the given packet message fed back by the multiple access servers, and selects an appropriate given packet message in the received packet request message, which may be selected according to the service type or service range, and may also be based on other types. Alternatively, in this embodiment, as a preferred method, an appropriate packet-sending message is selected according to the received chronological order of the packet-sending message, for example, selecting the earliest received packet-receiving message is appropriate, that is, selecting the earliest received packet. The access server corresponding to the packet message is a session object.
确认分组报文接收模块44,用于接收所选择的接入服务器反馈的确认分组报文。The acknowledgment packet receiving module 44 is configured to receive the acknowledgment packet message fed back by the selected access server.
所选择的接入服务器接收到所述单播会话请求分组报文后,向所述终端反馈确认分组报文(PADS),所述单播会话请求分组报文包括会话ID,还包括一个接入服务器的名称类型 的标签、所述接入服务器的MAC地址,以及确认向终端提供的服务等信息。After receiving the unicast session request packet message, the selected access server feeds back a acknowledgment packet message (PADS) to the terminal, where the unicast session request packet message includes a session ID, and includes an access. Server name type The tag, the MAC address of the access server, and information such as the service provided to the terminal.
更进一步地,如图6所示,为本发明的一种基于PPPOE网络的拨号系统的选择发送模块43的具体结构图,所述选择发送模块43具体包括:Further, as shown in FIG. 6, which is a specific structural diagram of the selection and transmission module 43 of the PPPOE network-based dialing system of the present invention, the selection and transmission module 43 specifically includes:
分析单元431,用于分析所接收的给予分组报文的时间,对接收时间进行排序;The analyzing unit 431 is configured to analyze the received time of giving the packet message, and sort the receiving time;
本实施例中,记录接收给予分组报文的时间点,并对接收时间进行排序,可由先到后进行排序,也可由后到先进行排序,此处对此不作限制。In this embodiment, the time point of receiving and receiving the packet message is recorded, and the receiving time is sorted, and may be sorted from first to last, or may be sorted from back to first, which is not limited herein.
获取单元432,用于获取最早接收时间对应的给予分组报文,选择与该给予分组报文对应的接入服务器;The obtaining unit 432 is configured to obtain a given packet message corresponding to the earliest receiving time, and select an access server corresponding to the given packet packet;
根据排序后的给予分组报文,获得最先接收的给予分组报文,选择该给予分组报文对应的接入服务器为会话对象。According to the given grouping message, the first receiving packet message is obtained, and the access server corresponding to the group packet is selected as the session object.
发送单元433,用于向所述选择的接入服务器发送单播会话请求分组报文。The sending unit 433 is configured to send a unicast session request packet message to the selected access server.
选择好接入服务器之后,向所选择的接入服务器发送单播会话请求分组报文(PADR),所述单播会话请求分组报文必须包含一个服务名称类型标签,确定向接入服务器(或交换机)请求的服务种类。After selecting the access server, sending a unicast session request packet message (PADR) to the selected access server, the unicast session request packet message must include a service name type tag, and determine to the access server (or Switch) The type of service requested.
在发起会话阶段完成时,即表示PPPOE拨号连接成功(终端与接入服务器可以正常会话),可以进行正常会话,此时所述终端及选择的接入服务器都携带有所述接入服务器的MAC地址及对话ID。当连接成功后,所述终端与接入服务器进行会话。When the initiating session is completed, the PPPOE dial-up connection is successful (the terminal and the access server can be in a normal session), and the normal session can be performed. At this time, the terminal and the selected access server both carry the MAC of the access server. Address and conversation ID. When the connection is successful, the terminal talks with the access server.
更进一步地,所述会话模块5具体用于:实现终端与所选择的接入服务器进行会话,并且启动记录机制,记录会话的过程数据,其中所述会话过程数据包括会话变量,例如所述接入服务器的MAC地址及对话ID等信息。Further, the session module 5 is specifically configured to: implement a session between the terminal and the selected access server, and start a recording mechanism to record process data of the session, where the session process data includes a session variable, for example, the connection Information such as the MAC address and session ID of the server.
本发明中,当终端需要拨号上网,与接入服务器进行连接会话时,首先判断终端当前是否存在上一次会话,当还存在上一次会话时,需要向接入服务器发送终止分组报文,保证终端与接入服务器正常断开,为当前进行连接会话顺利进行准备,可以提高连接速度及效率。In the present invention, when the terminal needs dial-up Internet access and performs a connection session with the access server, it is first determined whether the terminal currently has a previous session. When the previous session still exists, the terminal needs to send a termination packet to the access server to ensure the terminal. It is normally disconnected from the access server and prepares for the current connection session, which can improve the connection speed and efficiency.
本发明还提供一种路由器,所述路由器包括上述实施例所述的拨号系统,其中所述拨号系统的结构及工作原理可参照上述实施例,此处不再赘述。The present invention also provides a router, which includes the dialing system described in the foregoing embodiment, and the structure and working principle of the dialing system can be referred to the foregoing embodiment, and details are not described herein again.
综上所述,本发明的一种基于PPPOE网络的拨号方法、拨号系统及路由器,当接收到用户的拨号指令时,先判断终端是否存在上一次会话,即判断终端当前与接入服务器是否正常断开,若未正常断开则先发送终止分组报文以将终端与接入服务器断开,便于后续实现终端与接入服务器的正常会话连接,可以提高连接速度及效率。所以,本发明有效克服了现有技术中的种种缺点而具高度产业利用价值。 In summary, the dialing method, the dialing system and the router based on the PPPOE network of the present invention, when receiving the dialing instruction of the user, first determine whether the terminal has the last session, that is, whether the current terminal and the access server are normal. Disconnected, if not disconnected normally, the termination packet is sent first to disconnect the terminal from the access server, which facilitates the subsequent normal session connection between the terminal and the access server, which can improve the connection speed and efficiency. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。 The above-described embodiments are merely illustrative of the principles of the invention and its effects, and are not intended to limit the invention. Modifications or variations of the above-described embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, all equivalent modifications or changes made by those skilled in the art without departing from the spirit and scope of the invention will be covered by the appended claims.

Claims (10)

  1. 一种基于PPPOE网络的拨号方法,其特征在于,所述方法包括以下步骤:A dialing method based on a PPPOE network, characterized in that the method comprises the following steps:
    S1、终端接收到用户发出的拨号指令;S1. The terminal receives a dialing instruction sent by the user.
    S2、判断是否存在上一次会话,当判断为是转动步骤S3,否则转到步骤S4,所述会话为终端与接入服务器之间的会话;S2, determining whether there is a previous session, when it is determined to be the rotating step S3, otherwise going to step S4, the session is a session between the terminal and the access server;
    S3、向所述接入服务器发送终止分组报文,使得所述接入服务器终止与所述终端的会话;S3. Send a termination packet message to the access server, so that the access server terminates the session with the terminal.
    S4、所述终端进入会话发起阶段;S4. The terminal enters a session initiation phase;
    S5、所述终端进入会话阶段。S5. The terminal enters a session phase.
  2. 根据权利要求1所述的终端拨号方法,其特征在于:所述步骤S2具体为:判断存储器中是否存在会话变量,若判断是则认为存在上一次会话连接,若判断为否则不存在,所述会话变量包括上一次会话时记录的会话ID及对应接入服务器的MAC地址。The terminal dialing method according to claim 1, wherein the step S2 is specifically: determining whether a session variable exists in the memory, and if it is determined to be, the last session connection is considered to exist, and if it is determined that the session is not present, the The session variable includes the session ID recorded in the previous session and the MAC address of the corresponding access server.
  3. 根据权利要求2所述的终端拨号方法,其特征在于:所述步骤S4具体为:The terminal dialing method according to claim 2, wherein the step S4 is specifically:
    S41、所述终端广播发起分组报文;S41. The terminal broadcasts a packet message.
    S42、接收一个以上接入服务器基于所述分组报文反馈的给予分组报文;S42. Receive a packet packet that is received by one or more access servers based on the packet packet feedback.
    S43、终端基于所接收的给予分组报文选择一个接入服务器,并给所选择的接入服务器发送单播会话请求分组报文;S43. The terminal selects an access server based on the received given packet message, and sends a unicast session request packet message to the selected access server.
    S44、接收所选择的接入服务器反馈的确认分组报文。S44. Receive an acknowledgement packet message fed back by the selected access server.
  4. 根据权利要求3所述的终端拨号方法,其特征在于:所述步骤S43具体为:The terminal dialing method according to claim 3, wherein the step S43 is specifically:
    S431、分析所接收的给予分组报文的时间,对接收时间进行排序;S431. Analyze the received time of receiving the packet message, and sort the receiving time.
    S432、获取最早接收时间对应的给予分组报文,选择与该给予分组报文对应的接入服务器;S432. Obtain a given packet message corresponding to the earliest receiving time, and select an access server corresponding to the given packet packet.
    S433、向所述选择的接入服务器发送单播会话请求分组报文。S433. Send a unicast session request packet message to the selected access server.
  5. 根据权利要求4所述的管理方法,其特征在于:所述步骤S5具体包括:The management method according to claim 4, wherein the step S5 specifically comprises:
    S51、所述终端与所选择的接入服务器进行会话;S51. The terminal performs a session with the selected access server.
    S52、启动记录机制,记录会话过程数据,所述会话过程数据包括会话变量。S52. Start a recording mechanism, and record session process data, where the session process data includes a session variable.
  6. 根据权利要求5所述的终端拨号方法,其特征在于:所述步骤S5之后还包括:The terminal dialing method according to claim 5, wherein the step S5 further comprises:
    S6、在所述会话结束时,所述终端向所选择的接入服务器发送终止分组报文,并删除 所记录的会话变量。S6. At the end of the session, the terminal sends a termination packet to the selected access server, and deletes The recorded session variable.
  7. 一种基于PPPOE网络的拨号系统,所述拨号系统包括终端,其特征在于,所述终端包括:A dialing system based on a PPPOE network, the dialing system comprising a terminal, wherein the terminal comprises:
    指令接收模块,用于接收到用户发出的拨号指令;An instruction receiving module, configured to receive a dialing instruction issued by a user;
    与所述指令接收模块连接的判断模块,用于判断是否存在上一次会话连接,所述会话为所述终端与接入服务器之间的会话;a judging module connected to the instruction receiving module, configured to determine whether there is a last session connection, where the session is a session between the terminal and the access server;
    与所述判断模块连接的终止会话模块,用于存在上一次会话时向所述接入服务器发送终止分组报文,使得所述接入服务器终止与所述终端的会话;a terminating session module connected to the determining module, configured to send a terminating packet message to the access server when the last session exists, so that the access server terminates the session with the terminal;
    与所述判断模块及所述终止会话模块连接的会话发起模块,用于发起会话请求;a session initiating module connected to the determining module and the terminating session module, configured to initiate a session request;
    与所述会话发起模块的会话模块,用于与接入服务器进行会话。a session module with the session initiation module for conducting a session with an access server.
  8. 根据权利要求7所述的基于PPPOE网络的拨号系统,其特征在于,所述判断模块具体用于:判断存储器中是否存在会话变量,若判断是则认为存在上一次会话连接,若判断为否则不存在,所述会话变量包括上一次会话时记录的会话ID及对应接入服务器的MAC地址。The PPPOE network-based dialing system according to claim 7, wherein the determining module is specifically configured to: determine whether a session variable exists in the memory, and if it is determined, it is considered that there is a previous session connection, and if it is determined to be otherwise Exist, the session variable includes the session ID recorded in the previous session and the MAC address of the corresponding access server.
  9. 根据权利要求8所述的基于PPPOE网络的拨号系统,其特征在于,所述会话发起模块具体包括:The PPPOE network-based dialing system according to claim 8, wherein the session initiation module specifically includes:
    分组报文发起模块,用于广播发起分组报文;a packet message initiating module, configured to broadcast a packet to initiate a packet;
    给予分组报文接收模块,用于接收一个以上接入服务器基于所述分组报文反馈的给予分组报文;选择模块,用于基于所接收的给予分组报文选择一个接入服务器,并给所选择的接入服务器发送单播会话请求分组报文;And a grouping message receiving module, configured to receive, by the one or more access servers, a grouping message based on the packet message feedback; the selecting module, configured to select an access server based on the received grouping message, and give the The selected access server sends a unicast session request packet message;
    选择发送模块,用于基于所接收的给予分组报文选择一个接入服务器,并给所选择的接入服务器发送单播会话请求分组报文;Selecting a sending module, configured to select an access server based on the received given packet message, and send a unicast session request packet message to the selected access server;
    确认分组报文接收模块,用于接收所选择的接入服务器反馈的确认分组报文。The acknowledgment packet receiving module is configured to receive the acknowledgment packet message fed back by the selected access server.
  10. 一种路由器,其特征在于,包括如权利要求7至9任意一项所述的基于PPPOE网络的拨号系统。 A router characterized by comprising a PPPOE network based dialing system according to any one of claims 7 to 9.
PCT/CN2016/101393 2015-11-09 2016-09-30 Pppoe network-based dialing method, dialing system, and router WO2017080335A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510757263.1A CN105429832A (en) 2015-11-09 2015-11-09 Dialing method and system based on PPPOE network, and router
CN201510757263.1 2015-11-09

Publications (1)

Publication Number Publication Date
WO2017080335A1 true WO2017080335A1 (en) 2017-05-18

Family

ID=55507781

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101393 WO2017080335A1 (en) 2015-11-09 2016-09-30 Pppoe network-based dialing method, dialing system, and router

Country Status (2)

Country Link
CN (1) CN105429832A (en)
WO (1) WO2017080335A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105429832A (en) * 2015-11-09 2016-03-23 上海斐讯数据通信技术有限公司 Dialing method and system based on PPPOE network, and router
CN108390904A (en) * 2018-01-04 2018-08-10 深圳市共进电子股份有限公司 A kind of Dialing Method of active termination residual session
CN110572725B (en) * 2019-07-29 2021-11-16 烽火通信科技股份有限公司 Method and system for optimizing PPPoE (point-to-point protocol over Ethernet) dialing efficiency of GPON (gigabit-capable passive optical network) gateway
CN111064642B (en) * 2019-12-25 2021-12-03 深圳市网心科技有限公司 Dialing networking method and related equipment thereof
CN111211944B (en) * 2020-01-07 2021-11-12 深圳市吉祥腾达科技有限公司 Router-WAN multi-dialing stability test system and test method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852394A (en) * 2005-10-26 2006-10-25 华为技术有限公司 IP top-set redialing method
CN1925489A (en) * 2006-09-21 2007-03-07 王辉 Modified PPPoE identification method
CN101022410A (en) * 2007-03-16 2007-08-22 四川长虹电器股份有限公司 PPPoE network lower terminal dialing method
WO2008048937A2 (en) * 2006-10-16 2008-04-24 Marvell World Trade Ltd. Network connection fast recovery
CN103209359A (en) * 2012-01-16 2013-07-17 深圳长城开发科技股份有限公司 Handling method for PPPOE (point-to-point protocol over Ethernet) access network anomaly of IP (Internet protocol) set top box
CN105429832A (en) * 2015-11-09 2016-03-23 上海斐讯数据通信技术有限公司 Dialing method and system based on PPPOE network, and router

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001312468A (en) * 2000-04-28 2001-11-09 Konami Co Ltd Network connection control method and connection control system
CN102136966A (en) * 2010-12-23 2011-07-27 广州智帮通讯技术有限公司 ADSL (Asymmetrical Digital Subscriber Line) dialing process monitoring and intelligent analyzing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852394A (en) * 2005-10-26 2006-10-25 华为技术有限公司 IP top-set redialing method
CN1925489A (en) * 2006-09-21 2007-03-07 王辉 Modified PPPoE identification method
WO2008048937A2 (en) * 2006-10-16 2008-04-24 Marvell World Trade Ltd. Network connection fast recovery
CN101022410A (en) * 2007-03-16 2007-08-22 四川长虹电器股份有限公司 PPPoE network lower terminal dialing method
CN103209359A (en) * 2012-01-16 2013-07-17 深圳长城开发科技股份有限公司 Handling method for PPPOE (point-to-point protocol over Ethernet) access network anomaly of IP (Internet protocol) set top box
CN105429832A (en) * 2015-11-09 2016-03-23 上海斐讯数据通信技术有限公司 Dialing method and system based on PPPOE network, and router

Also Published As

Publication number Publication date
CN105429832A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
WO2017080335A1 (en) Pppoe network-based dialing method, dialing system, and router
US9344462B2 (en) Switching between connectivity types to maintain connectivity
US8856290B2 (en) Method and apparatus for exchanging configuration information in a wireless local area network
KR101457241B1 (en) Full mesh rates transaction in a network
CN100534055C (en) Method for implementing network access through broadband router
US20100325295A1 (en) Communication apparatus
US9172554B2 (en) Method and network access device for enabling data forwarding between different physical mediums
US20090089431A1 (en) System and method for managing resources in access network
WO2012130142A1 (en) Method, system, and access device for user service access
WO2011026358A1 (en) Method and system for processing abnormal off-line for web authentication user
CN103220276B (en) A kind of method of network insertion, gateway and system
WO2017088101A1 (en) Network access information acquiring method, and router
CN107566213B (en) Keep-alive detection method and device
CN102143233A (en) Customer premise equipment and network accessing method
US20140244726A1 (en) Assignment of Point-to-Point Over Ethernet (PPPoE) Session IDs
WO2008037212A1 (en) An access terminal and a method for the terminal binding to the operator
CN1925489A (en) Modified PPPoE identification method
CN104301336A (en) PPPoE access authentication method
US20130250970A1 (en) Network dial-up method and apparatus
US20050021760A1 (en) PPPoE network system and reconnection method thereof
WO2007107076A1 (en) A broadband user access method and device
US9654369B2 (en) Mobile terminal network port management method and device
US7817638B2 (en) Method for promptly redialing a broadband access server
WO2014090194A1 (en) Dialing method of terminal device, and access device
CN103856571A (en) Self-adaptive network connection method and system

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: 16863512

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: 16863512

Country of ref document: EP

Kind code of ref document: A1