CN115277274A - Method, device, system and equipment for establishing PPPoE session - Google Patents

Method, device, system and equipment for establishing PPPoE session Download PDF

Info

Publication number
CN115277274A
CN115277274A CN202110482087.0A CN202110482087A CN115277274A CN 115277274 A CN115277274 A CN 115277274A CN 202110482087 A CN202110482087 A CN 202110482087A CN 115277274 A CN115277274 A CN 115277274A
Authority
CN
China
Prior art keywords
target
bng
cpe
indication information
receiving
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110482087.0A
Other languages
Chinese (zh)
Inventor
颜彦
杨央
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN202110482087.0A priority Critical patent/CN115277274A/en
Publication of CN115277274A publication Critical patent/CN115277274A/en
Pending legal-status Critical Current

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]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the application discloses a method, a device, a system and equipment for establishing PPPoE session, belonging to the technical field of Internet. The method comprises the following steps: receiving a PPPoE session establishment instruction corresponding to an IP protocol of a target version; acquiring target indication information corresponding to the target version; determining a target BNG for establishing a session, and sending a session establishment request to the target BNG so as to establish a PPPoE session corresponding to the IP protocol of the target version with the target BNG, wherein a target field of the session establishment request carries the target indication information. By adopting the method and the device, the flexibility of controlling the CPE to access the IPv4 network and the IPv6 network can be improved.

Description

Method, device, system and equipment for establishing PPPoE session
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, and a device for establishing a PPPoE session.
Background
Internet Protocol version 4 (ipv 4) network is the fourth revision in the Internet Protocol development process, and is also the most widely used Internet Protocol version at present. However, with the development of the Internet, the address of IPv4 has been already allocated, and then the Internet Protocol version 6 (IPv 6) network is also widely used as the next generation Protocol of IPv 4.
A Point-to-Point Protocol Over Ethernet (PPPOE) is a data transmission Protocol applied to Ethernet. The client terminal Equipment (CPE) may establish a PPPOE session with a Border Network Gateway (BNG) based on a PPPOE protocol, acquire an IPv4 address and an IPv6 address, and may access the IPv4 Network through the IPv4 address and access the IPv6 Network through the IPv6 address on the basis of the established PPPOE session.
In the process of implementing the present application, the inventor finds that the prior art has at least the following problems:
currently, the CPE accesses the IPv4 network and the IPv6 network based on the same PPPoE session, that is, the CPE and the BNG access the IPv4 network and the IPv6 network based on the same PPPoE session, so that it is complicated to control the CPE to access the IPv4 network and the IPv6 network, for example, the CPE is prohibited from accessing the IPv4 network or the IPv6 network, and different networks need to be controlled in the same PPPoE session, which results in an inflexible control manner.
Disclosure of Invention
In order to solve the problem of service processing failure in the related art, embodiments of the present application provide a method, an apparatus, a system, and a device for establishing a PPPoE session, where the technical solution is as follows:
in a first aspect, a method for establishing a PPPoE session is provided, where the method is applied to a CPE, and the method includes: receiving a PPPoE session establishment instruction corresponding to an IP protocol of a target version; acquiring target indication information corresponding to a target version; determining a target BNG for establishing the session, and sending a session establishment request to the target BNG so as to establish the PPPoE session corresponding to the IP protocol of the target version with the target BNG, wherein a target field of the session establishment request carries target indication information.
In the solution shown in the embodiment of the present application, after receiving a PPPoE session establishment instruction corresponding to a target version of an IP (Internet Protocol), a CPE may determine a target BNG with which the PPPoE session is established, and then send a session establishment request carrying target indication information in a target field to the target BNG, so as to establish the PPPoE session corresponding to the target version of the IP Protocol with the BNG. The PPPoE session corresponding to the IP protocol of the target version refers to that the corresponding PPPoE session can be used to transmit data of the IP protocol of the corresponding target version after being established, and the IP protocol of the target version may be an IPv4 protocol or an IPv6 protocol. Thus, the CPE accesses a network corresponding to an IP protocol, such as an IPv4 network or an IPv6 network, based on a PPPoE session established with the BNG. If the CPE needs to access the network corresponding to another IP protocol, a PPPoE session corresponding to another IP protocol can be established with the BNG. Therefore, the CPE can access the IPv4 network and the IPv6 network based on different PPPoE sessions, and the flexibility of controlling the CPE to access the IPv4 network and the IPv6 network can be improved.
In a possible implementation manner, obtaining target indication information corresponding to a target version includes: and determining target indication information corresponding to the target version based on the corresponding relation between the preset version and the indication information.
In the solution shown in the embodiment of the present application, the CPE may store a corresponding relationship between the version of the IP protocol and the indication information, that is, the indication information corresponding to IPv4 and IPv6, respectively. When the CPE receives the instruction to establish the PPPoE session corresponding to the IP protocol of the target version, the CPE may determine target indication information corresponding to the target version according to the stored correspondence, where the target indication information may be carried in a message for establishing the PPPoE session between the CPE and the BNG, and is used to indicate that the BNG and the CPE establish the PPPoE session corresponding to data only used for transmitting the IP protocol of the target version.
In a possible implementation manner, the session establishment Request is a PADR (PPPoE Active Discovery Request, PPPoE Active Discovery initiation) message, and the target indication information is a target indication value; sending a session establishment request to a target BNG, wherein a target field of the session establishment request carries target indication information, and the session establishment request comprises the following steps: and sending the PADR message to the target BNG, wherein the value of the type field in the PADR message is a target indicated value.
In the solution shown in the embodiment of the present application, the CPE determines a target BNG that establishes a session with the CPE, and after determining the target BNG, may send a session establishment request to the target BNG, where the session establishment request may be a PADR message, and corresponding target indication information is a target indication value and is carried in the PADR message. For example, the value of the type field in the PPPoE header in the PADR message may be the target indication value. Thus, after receiving the PADR packet whose value of the type field in the PPPoE header is the target indication value, the target BNG can determine the PPPoE session corresponding to the IP protocol of the target version established with the CPE.
In one possible implementation, determining a target BNG for establishing a session includes: sending a target field carrying target indication information PADI (PPPoE Active Discovery Initiation, PPPoE activation Discovery service) message to each BNG in the BNG group; receiving a PADO (PPPoE Active Discovery Offer) message sent by each BNG, and determining a target BNG in each BNG based on the PADO message sent by each BNG; after sending the session establishment request to the target BNG, the method comprises: receiving a PADS (PPPoE Active Discovery-configuration) message sent by a target BNG; sending an LCP (Link Control Protocol) request message carrying target indication information in a target field to a target BNG; receiving LCP response message sent by target BNG; sending an authentication request message carrying target indication information in a target field to a target BNG; receiving an authentication response message sent by a target BNG; sending an IP information request message carrying target indication information in a target field to a target BNG; and receiving an IP information response message sent by the target BNG.
In the solution shown in the embodiment of the present application, the procedure for establishing the PPPoE session corresponding to the IP protocol of the target version between the CPE and the BNG is as follows: firstly, a target BNG with which a session is established is determined in a plurality of BNGs, a PADI message carrying target indication information can be broadcasted to each BNG in a BNG group, the PADO message sent by each BNG after receiving the PADI message is received, and the target BNG is determined in each BNG according to the received PADO message sent by each BNG. After the target BNG is determined, a session establishment request, namely a PADR message, can be sent to the target BNG, and then the PADS message sent by the target BNG is received; then sending LCP request message carrying target indication information to the target BNG, and receiving LCP response message sent by the target BNG; sending an authentication request message carrying target indication information to a target BNG, and receiving an authentication response message sent by the target BNG; and sending an IP information request message carrying target indication information to the target BNG, and receiving an IP information response message sent by the target BNG.
In a second aspect, a method for establishing a PPPoE session is provided, where the method is applied to a BNG, and the method includes: receiving a session establishment request sent by the CPE, and establishing a PPPoE session corresponding to the IP protocol of the target version with the CPE, wherein a target field of the session establishment request carries target indication information, the session establishment request is an establishment instruction of the PPPoE session corresponding to the IP protocol of the target version received by the CPE, acquiring the target indication information corresponding to the target version, and determining the BNG for establishing the session and then sending the BNG.
In the solution shown in the embodiment of the present application, after receiving the PPPoE session establishment instruction corresponding to the IP protocol of the target version, the CPE may determine the BNG with which the PPPoE session is established, and then send a session establishment request carrying target indication information in a target field to the corresponding BNG. After receiving a session establishment request carrying target indication information sent by the CPE, the BNG may establish a PPPoE session corresponding to the IP protocol of the target version with the CPE, where the PPPoE session corresponding to the IP protocol of the target version may be used to transmit data of the IP protocol of the corresponding target version after being established, and the IP protocol of the target version may be an IPv4 protocol or an IPv6 protocol. Thus, the CPE accesses a network corresponding to an IP protocol, such as an IPv4 network or an IPv6 network, based on a PPPoE session established with the BNG. If the CPE needs to access the network corresponding to another IP protocol, a PPPoE session corresponding to another IP protocol can be established with the BNG. Therefore, the CPE can access the IPv4 network and the IPv6 network based on different PPPoE sessions, and the flexibility of controlling the CPE to access the IPv4 network and the IPv6 network can be improved.
In a possible implementation manner, the session establishment request is a PADR message, and the target indication information is a target indication value; receiving a session establishment request sent by a CPE, wherein a target field of the session establishment request carries target indication information, and the method comprises the following steps: and receiving a PADR message sent by the CPE, wherein the value of a type field in the PADR message is a target indicated value.
In the solution shown in the embodiment of the present application, the BNG may receive a session establishment request sent by the CPE, where the session establishment request may be a PADR message, and the corresponding target indication information is a target indication value and is carried in the PADR message. For example, the value of the type field in the PPPoE header in the PADR message may be the target indication value. Thus, after receiving the PADR packet whose value of the type field in the PPPoE header is the target indication value, the target BNG can determine the PPPoE session corresponding to the IP protocol of the target version established with the CPE.
In a possible implementation manner, before receiving the session establishment request sent by the CPE, the method further includes: receiving a target field carried with target indication information (PADI) message sent by CPE; sending a PADO message to CPE; after receiving the session establishment request sent by the CPE, the method further includes: a PADS message is sent to the CPE; receiving an LCP request message which is sent by CPE and carries target indication information in a target field; sending LCP response message to CPE; receiving an authentication request message which is sent by CPE and carries target indication information in a target field; sending an authentication response message to the CPE; receiving an IP information request message which is sent by CPE and carries target indication information in a target field; and sending an IP information response message to the CPE.
In the solution shown in this embodiment, the procedure for establishing the PPPoE session corresponding to the IP protocol of the target version between the CPE and the BNG is as follows: firstly, a BNG receives a PADI message carrying target indication information broadcasted by a CPE, then sends the PADO message to the CPE, and receives a session establishment request, namely a PADR message, sent by the CPE. After receiving the PADR message, the BNG may send PADS to the CPE, receive an LCP request message carrying target indication information sent by the CPE, and send an LCP response message to the CPE; receiving an authentication request message which is sent by CPE and carries target indication information, and sending an authentication response message to the CPE; and receiving an IP information request message which is sent by the CPE and carries the target indication information, and sending an IP information response message to the CPE.
In a third aspect, an apparatus for establishing a PPPoE session is provided, the apparatus being applied to a CPE, and the apparatus including:
the receiving module is used for receiving a PPPoE session establishment instruction corresponding to the IP protocol of the target version;
the acquisition module is used for acquiring target indication information corresponding to the target version;
a sending module, configured to determine a target BNG used for establishing a session, and send a session establishment request to the target BNG to establish a PPPoE session corresponding to the IP protocol of the target version with the target BNG, where a target field of the session establishment request carries the target indication information.
In one possible implementation manner, the obtaining module is configured to: and determining target indication information corresponding to the target version based on the corresponding relation between the preset version and the indication information.
In one possible implementation manner, the sending module is configured to: and sending the PADR message to the target BNG, wherein the value of the type field in the PADR message is a target indicated value.
In one possible implementation manner, the sending module is configured to: sending a target field carrying target indication information PADI message to each BNG in the BNG group; receiving the PADO message sent by each BNG, and determining a target BNG in each BNG based on the PADO message sent by each BNG;
the sending module is further configured to: receiving a PADS message sent by the target BNG; sending LCP request message carrying target indication information in target field to the target BNG; receiving LCP response message sent by the target BNG; sending an authentication request message carrying target indication information in a target field to the target BNG; receiving an authentication response message sent by the target BNG; sending an IP information request message carrying target indication information in a target field to the target BNG; and receiving an IP information response message sent by the target BNG.
In a fourth aspect, there is provided an apparatus for establishing a PPPoE session, the apparatus being applied to a BNG, the apparatus comprising:
a receiving module, configured to receive a session establishment request sent by a CPE, and establish a PPPoE session corresponding to the IP protocol of the target version with the CPE, where a target field of the session establishment request carries the target indication information, and the session establishment request is sent after the CPE receives a PPPoE session establishment instruction corresponding to the IP protocol of the target version, acquires the target indication information corresponding to the target version, and determines a BNG used for establishing the session.
In one possible implementation manner, the receiving module is configured to: receiving a PADR message sent by CPE, wherein the value of a type field in the PADR message is a target indication value.
In a possible implementation manner, the receiving module is further configured to: receiving a PADI message carrying target indication information in a target field sent by the CPE; sending PADO message to the CPE;
the receiving module is further configured to: a PADS message sent to the CPE; receiving LCP request message which carries target indication information in a target field and is sent by CPE; sending LCP response message to CPE; receiving an authentication request message which is sent by the CPE and carries target indication information in a target field; sending an authentication response message to the CPE; receiving an IP information request message which carries target indication information in a target field and is sent by the CPE; and sending an IP information response message to the CPE.
In a fifth aspect, a system for establishing a PPPoE session is provided, the system comprising a CPE and a BNG, wherein: the CPE is used for receiving a PPPoE session establishment instruction corresponding to the IP protocol of the target version; acquiring target indication information corresponding to a target version; determining a target BNG for establishing a session, and sending a session establishment request to the target BNG so as to establish a PPPoE session corresponding to an IP protocol of a target version with the target BNG, wherein a target field of the session establishment request carries target indication information; the BNG is used for receiving a session establishment request sent by the CPE and establishing a PPPoE session corresponding to the IP protocol of the target version with the CPE, wherein a target field of the session establishment request carries target indication information.
In the solution shown in the embodiment of the present application, after receiving the PPPoE session establishment instruction corresponding to the IP protocol of the target version, the CPE may determine a target BNG with which the PPPoE session is established, and then send a session establishment request carrying target indication information in a target field to the target BNG, so as to establish the PPPoE session corresponding to the IP protocol of the target version with the BNG. The PPPoE session corresponding to the IP protocol of the target version refers to that the corresponding PPPoE session can be used to transmit data of the IP protocol of the corresponding target version after being established, and the IP protocol of the target version may be an IPv4 protocol or an IPv6 protocol. Thus, the CPE accesses a network corresponding to an IP protocol, such as an IPv4 network or an IPv6 network, based on a PPPoE session established with the BNG. If the CPE needs to access the network corresponding to another IP protocol, a PPPoE session corresponding to another IP protocol can be established with the BNG. Therefore, the CPE can access the IPv4 network and the IPv6 network based on different PPPoE sessions, and the flexibility of controlling the CPE to access the IPv4 network and the IPv6 network can be improved.
In a sixth aspect, there is provided a CPE comprising a processor, a receiver, and a transmitter, wherein: the receiver is used for receiving a PPPoE session establishment instruction corresponding to the IP protocol of the target version; the processor is used for acquiring target indication information corresponding to the target version and determining a target BNG for establishing a session; the transmitter is configured to send a session establishment request to the target BNG to establish a PPPoE session corresponding to the IP protocol of the target version with the target BNG, where a target field of the session establishment request carries target indication information.
In a seventh aspect, there is provided a BNG comprising a processor and a receiver, wherein: the receiver is used for receiving a session establishment request sent by the CPE; and the processor is used for establishing a PPPoE session corresponding to the IP protocol of the target version with the CPE, wherein a target field of the session establishment request carries target indication information, and the session establishment request is sent after the CPE receives an establishment instruction of the PPPoE session corresponding to the IP protocol of the target version, acquires the target indication information corresponding to the target version and determines BNG for establishing the session.
In an eighth aspect, a computer readable storage medium is provided, the computer readable storage medium storing computer program code which, when executed by a computer device, causes the computer device to perform the method of the first and second aspects.
A ninth aspect provides a computer program product containing instructions which, when run on a CPE or a BNG, causes the CPE to perform the method of the above first aspect and its possible implementations, or causes the BNG to perform the method of the above second aspect and its possible implementations, or causes the CPE to implement the functions of the apparatus of the above third aspect and its possible implementations, or causes the BNG to implement the functions of the apparatus of the above fourth aspect and its possible implementations.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
according to the embodiment of the application, a session establishment request carrying the target indication information in the target field can be sent to the target BNG according to the received establishment instruction of the PPPoE session corresponding to the IP protocol of the target version and the target indication information corresponding to the IP protocol of the target version, and after the target BNG receives the session establishment request carrying the target indication information in the target field, the PPPoE session corresponding to the IP protocol of the target version can be established with the CPE, for example, the PPPoE session can be used for accessing an IPv4 network or the PPPoE session can be used for accessing an IPv6 network, so that the access of the CPE to the IPv4 network and the IPv6 network is realized based on different PPPoE sessions, and the flexibility of controlling the respective access of the CPE to the IPv4 network or the IPv6 network can be improved.
Drawings
FIG. 1 is a system framework diagram provided by an embodiment of the present application;
fig. 2 is a schematic structural diagram of a CPE according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a BNG according to an embodiment of the present application;
fig. 4 is a flowchart of a method for establishing a PPPoE session according to an embodiment of the present application;
fig. 5 is a schematic interface diagram for establishing a PPPoE session according to an embodiment of the present application;
fig. 6 is a flowchart of a method for establishing a PPPoE session according to an embodiment of the present application;
fig. 7 is a flowchart of a method for establishing a PPPoE session according to an embodiment of the present application;
fig. 8 is a flowchart of a method for establishing a PPPoE session according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an apparatus for establishing a PPPoE session according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an apparatus for establishing a PPPoE session according to an embodiment of the present application.
Detailed Description
The embodiment of the present application provides a method for establishing a PPPoE session, which may be implemented by a CPE and a BNG together, where the CPE may be a terminal that needs to establish the PPPoE session, that is, a terminal having a function of establishing the PPPoE session, and the BNG may be a device that establishes the PPPoE session with the CPE. As shown in fig. 1, fig. 1 is a schematic diagram of establishing a PPPoE session according to an embodiment of the present application, in which a CPE may establish two PPPoE sessions of different IP protocols with different versions between the CPE and a BNG, or may establish PPPoE sessions of different IP protocols with different versions respectively with two different BNGs.
The CPE may include a processor 210, a transmitter 220, a receiver 230, and the receiver 230 and the transmitter 220 may be respectively connected to the processor 210, as shown in fig. 2. Receiver 230 may be used to receive messages or data, transmitter 220 and receiver 230 may be network cards, and transmitter 220 may be used to transmit messages or data, i.e., may transmit data to establish a PPPoE session. The CPE may also include an acceleration component (which may be referred to as an accelerator), which may be a network card when the acceleration component is a network acceleration component. Processor 210 may be a control center for the CPE, connecting various portions of the overall CPE, such as receiver 230 and transmitter 220, using various interfaces and lines. In this application, the processor 210 may be a Central Processing Unit (CPU), and may be used for Processing related to the method for establishing the PPPoE session, and optionally, the processor 210 may include one or more Processing units; processor 210 may integrate an application processor, which primarily handles the operating system, and a modem processor, which primarily handles wireless communications. The processor 210 may also be a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, or the like. The CPE may further include a memory 240, the memory 240 may be used to store software programs and modules, and the processor 210 executes various functional applications and data processing of the CPE by reading the software codes and modules stored in the memory.
The BNG can comprise a processor 310, a receiver 320, and the receiver 320 can be coupled to the processor 310 as shown in fig. 3. The receiver 320 may be configured to receive messages or data, the receiver 320 may be a network card, and the receiver 320 may be configured to receive messages or data, i.e., data that may establish a PPPoE session. The BNG can also include an acceleration component (which can be referred to as an accelerator), which can be a network card when the acceleration component is a network acceleration component. Processor 310 may be the control center of the BNG, connecting various portions of the entire BNG, such as receiver 320, using various interfaces and lines. In the present application, the processor 310 may be a Central Processing Unit (CPU), and optionally, the processor 310 may include one or more Processing units; processor 310 may integrate an application processor, which primarily handles the operating system, and a modem processor, which primarily handles wireless communications. The processor 310 may also be a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, or the like. The BNG can further comprise a transmitter 330 for transmitting messages or data to the CPE, the BNG can further comprise a memory 340, the memory 340 can be used for storing software programs and modules, and the processor 310 can execute various functional applications and data processing of the BNG by reading the software codes and modules stored in the memory.
Fig. 4 is a method for establishing a PPPoE session according to an embodiment of the present application, which can be applied to a CPE and a BNG, as shown in fig. 4, and the method includes:
step 401, receiving a PPPoE session establishment instruction corresponding to the IP protocol of the target version.
The target version of the IP protocol may be an IPv4 protocol or an IPv6 protocol. The PPPoE session corresponding to the IP protocol of the target version means that the PPPoE session can be used to transmit data of the IP protocol of the corresponding target version after the PPPoE session is established.
The user may select a dial-up over-the-internet mode of PPPoE in a network connection interface of a device to be connected to a network, for example, the device may be a Personal Computer (PC). As shown in fig. 5, different internet access options can be displayed in the network connection interface of the PC, and the user can select an IPv4 internet access manner, an IPv6 internet access manner, or can select two internet access manners at the same time.
After the user inputs the PPPoE account and the password in the dial-up networking interface and determines the networking mode, the PC can send a PPPoE session establishment instruction corresponding to the IP protocol of the target version to the CPE. If the user selects the IPv4 internet access mode, the IP protocol of the target version is the IPv4 protocol, and if the user selects the IPv6 internet access mode, the IP protocol of the target version is the IPv6 protocol.
And step 402, acquiring target indication information corresponding to the target version.
In implementation, different versions of the IP protocol may correspond to different indication information, that is, IPv4 and IPv6 may correspond to different indication information, respectively. The indication information may be an indication value, which may be used to indicate that the BNG establishes the PPPoE session corresponding to the target version IP protocol with the CPE. The target indication information may be sent by the PC to the CPE, or may be a corresponding relationship between IP protocols of different versions and the indication information stored in advance in the CPE, and after receiving a PPPoE session establishment instruction corresponding to the IP protocol of the target version, the target indication information corresponding to the target version is determined according to the preset corresponding relationship. The target indication information may be carried in a message sent by a subsequent CPE to the BNG to indicate that the BNG and the CPE establish a PPPoE session of a corresponding version of an IP protocol.
Step 403, determining a target BNG for establishing a session, and sending a session establishment request to the target BNG to establish a PPPoE session corresponding to the IP protocol of the target version with the target BNG.
The target field of the session establishment request may carry target indication information for indicating the target BNG and the CPE to establish the PPPoE session corresponding to the IP protocol of the target version. The target indication information may be an indication value, for example, a value of a type field of a PPPoE header in a message sent by the CPE to the BNG may be set to a corresponding target indication value, and a PPPoE header structure may be as shown in table one.
Figure BDA0003049646030000071
Watch 1
In the present application, the value in the type field in the general PPPoE header is 0x01, and in this case, the indicated value corresponding to IPv4 may be set to 0x02, and the indicated value corresponding to IPv6 may be set to 0x03, so that the BNG may determine to establish the PPPoE session corresponding to the CPE according to the value of the type field in the session establishment request sent by the CPE. For example, upon receiving a session establishment request with a value of 0x02 in a type field in a PPPoE header, the BNG may determine to establish a PPPoE session for transmitting IPv4 data with a corresponding CPE; the BNG may determine to establish a PPPoE session for transmitting IPv4 data with a corresponding CPE when receiving a session establishment request having a value of 0x03 in a type field in a PPPoE header. That is, the BNG may store the corresponding relationship between the indication information and the IP protocols of different versions, and after receiving the session establishment request sent by the CPE, the BNG may determine to establish access to the IPv4 network or the IPv6 network with the CPE according to the corresponding relationship and the indication information carried in the corresponding relationship.
Since there may be several BNGs in a region, they may be responsible for network connections of various devices in the local region. Thus, when the CPE is establishing a network connection, a BNG for establishing a PPPoE session with the CPE, which may be referred to as a target BNG, may be determined first. Among other things, the process of the CPE determining the target BNG for establishing the session may be as follows:
sending a PADI message carrying target indication information to each BNG in the BNG group; and receiving the PADO message sent by each BNG, and determining a target BNG in each BNG based on the PADO message sent by each BNG. The BNG group is a plurality of BNGs included in the local area.
In implementation, after receiving the PPPoE session establishment instruction corresponding to the IP protocol of the target version, the CPE may broadcast a PADI packet carrying target indication information to the BNG group, and the BNG receiving the PADI packet may send a PADO packet to the CPE. After receiving the PADO packet sent by the BNG, the CPE may determine, in the received PADO packets, a target BNG of the PPPoE session corresponding to the IP protocol of the target version established with the PADO packet. After determining the target BNG to establish the session with the CPE, a session establishment request may be sent to the target BNG to establish a PPPoE session corresponding to the target version of the IP protocol with the target BNG.
The process of dialing to access the network by the user in the PPPoE mode can be a PPPoE stage and a PPP stage respectively.
In the PPPoE phase, the method comprises the following steps: sending a PADI message carrying target indication information to each BNG in the BNG group; receiving the PADO message sent by each BNG, and determining the target BNG in each BNG based on the PADO message sent by each BNG (i.e. the process of determining the target BNG is not described herein again). After determining the target BNG, the CPE may send a session establishment request to the target BNG, where the session establishment request may be a PADR packet, and a value in a type field in a PPPoE header of the PADR packet may be set to a target indication value, which is target indication information. The CPE sends a PADR message with the type field as the target indication value in the PPPOE message to the target BNG, and if the PADS message sent by the target BNG is received, the PPP stage can be determined to enter. The PADS packet may carry a session id (session identity document, session identifier) corresponding to the PPPOE session.
In the PPP phase, an LCP negotiation phase, an authentication phase, and an NCP (Network control protocol) negotiation phase are included.
LCP negotiation phase: sending LCP request message carrying target indication information to target BNG; and receiving the LCP response message sent by the target BNG.
In the LCP negotiation phase, the CPE may send an LCP request message carrying target indication information to the target BNG, where the LCP request message may include a config-req message, and the LCP reply message may include a config-ack message. After the LCP negotiation phase is completed, the authentication phase may be entered.
And (3) an authentication stage: sending an authentication request message carrying target indication information to a target BNG; and receiving an authentication response message sent by the target BNG.
In the authentication phase, the CPE may send an authentication request packet carrying target indication information to the target BNG, where the authentication request packet may further include information such as an account and a password of the PPPoE input by the user. After receiving the authentication request message sent by the CPE, the target BNG may verify the account and password of the PPPoE of the user, and if the verification is passed, may send an authentication response message to the CPE.
The NCP negotiation stage: sending an IP information request message carrying target indication information to a target BNG; and receiving an IP information response message sent by the target BNG.
In the NCP negotiation stage, an IP information request packet carrying target indication information may be sent to the target BNG, and an IPCP (Internet Protocol Control Protocol ) negotiation may be performed, or an IPv6CP (IP Control Protocol and IPv6 Control Protocol ) negotiation may be performed. In the process of the method, if the IP protocol of the target version is the IPv4 protocol, the NCP negotiation stage may include IPCP negotiation, and the corresponding IP information request message may be a Parmeter-req (parameter request) message sent by the CPE to the BNG during the IPCP negotiation. In the IPCP negotiation process, the CPE can acquire the IPv4 address and then can access the IPv4 network according to the IPv4 address. If the IP protocol of the target version is the IPv6 protocol, the NCP negotiation stage may include IPv6CP negotiation, and the corresponding IP information request packet may be a Parmeter-req (parameter request) packet sent by the CPE to the BNG in the IPv6CP negotiation process. After the IPv6CP negotiation, the CPE may obtain the corresponding IPv6 address according to the information obtained in the IPv6CP negotiation process, and then may access the IPv6 network according to the IPv6 address. That is, the BNG may store the corresponding relationship between the IPv4 protocol and the IPv6 protocol and the indication information, and when receiving the IP information request packet of the target indication information sent by the CPE, may determine to establish the PPPoE session with the CPE according to the corresponding relationship.
After the PPPoE stage and the PPP stage are completed, the CPE and the BNG can successfully establish a PPPoE session corresponding to the IP protocol of the target version. And then accessing the network according to the corresponding PPPoE session and the acquired IP address. It should be noted that, the target indication information carried in the message sent by the CPE to the BNG may be a corresponding target indication value, for example, when the protocol of the target version is IPv4, the corresponding target indication value may be 0x02, and when the protocol of the target version is IPv6, the corresponding target indication value may be 0x03. And the target indication value can be set as the value corresponding to the type field in the PPPoE header in the message.
In the embodiment of the application, a session establishment request carrying the target indication information in the target field may be sent to the target BNG according to the received establishment instruction of the PPPoE session corresponding to the IP protocol of the target version and the target indication information corresponding to the IP protocol of the target version, and after the target BNG receives the session establishment request carrying the target indication information in the target field, the PPPoE session corresponding to the IP protocol of the target version may be established with the CPE, for example, the PPPoE session may be used for accessing an IPv4 network or the PPPoE session may be used for accessing an IPv6 network, so that the CPE accesses the IPv4 network and the IPv6 network based on different PPPoE sessions, thereby improving flexibility of controlling the CPE to access the IPv4 network or the IPv6 network respectively.
For the network connection interface shown in fig. 5, the user may select an IPv4 internet access manner and then select an IPv6 internet access manner, or may select two internet access manners at the same time, but no matter the user selects two internet access manners separately or selects two internet access manners at the same time, the processing between the CPE and the BNG is the same, in this application, the case is described by taking as an example the process of establishing a PPPoE session for accessing the IPv4 network first and then establishing a PPPoE session for accessing the IPv6 network, and the process threshold of establishing a PPPoE session for accessing the IPv6 network first and then establishing a PPPoE session for accessing the IPv4 network is similar, and is not described here again. Referring to fig. 6, fig. 6 shows a procedure for establishing two PPPoE sessions by the CPE and the BNG, respectively, including:
step 601, the CPE receives a PPPoE session establishment instruction corresponding to IPv4, and determines indication information corresponding to IPv 4.
In implementation, the PC may send an instruction for establishing the IPv4PPPoE session to the CPE, and after the CPE receives the instruction for establishing the PPPoE session corresponding to IPv4, the PC may determine corresponding indication information according to a preset correspondence between IPv4 and IPv6 and the indication information, where the indication information may be an indication value, and may be, for example, 0x02.
Step 602, the CPE establishes a PPPoE session corresponding to IPv4 with the first BNG.
In implementation, after receiving the instruction for establishing the PPPoE session corresponding to IPv4 and determining the indication information corresponding to IPv4, the CPE may establish the PPPoE session corresponding to IPv4 with the first BNG based on the corresponding indication information. After receiving the message carrying the corresponding indication information sent by the CPE, the BNG may establish a PPPoE session corresponding to IPv4 with the CPE according to the corresponding indication information.
In the process that the CPE establishes the PPPoE session corresponding to IPv4 with the first BNG, a packet carrying the corresponding indication information may be sent to the first BNG. The indication information may be an indication value, for example, a value of a type field of a PPPoE header in a sent message may be set to a corresponding indication value, and for a PPPoE session corresponding to IPv4, the corresponding indication value may be 0x02. The corresponding relationship between the indication information and different IP versions may be recorded in the first BNG, so that after the first BNG may receive the message carrying the corresponding indication information sent by the CPE, the first BNG may determine to establish a corresponding PPPoE session with the CPE according to the corresponding relationship.
Fig. 7 shows a process of a user dialing to access an IPv4 network in a PPPoE manner, where the process may be a PPPoE stage and a PPP stage, in the PPPoE stage, a CPE may send a PADI message carrying target indication information in a target field to each BNG in a BNG group, and each BNG may send a PADO message to the CPE after receiving the PADI message. After receiving the PADO message sent by the BNG, the CPE may determine, in the received multiple PADO messages, a first BNG with which to establish the PPPoE session, and then send the PADR message to the first BNG, where the first BNG may send the PADS message to the CPE after receiving the PADR message sent by the CPE, and the CPE may enter the PPP stage after receiving the PADS message. In the PPP phase, the LCP negotiation phase, the authentication phase, and the NCP negotiation phase are included, where in the NCP negotiation phase, the BNG determines to establish a PPPoE session for accessing the IPv4 network with the CPE according to the indication information corresponding to the IPv4 protocol carried in the received data packet, that is, only the negotiation process of the IPCP is performed in the NCP phase. The CPE may acquire an IPv4 address during the negotiation of the IPCP and then access the IPv4 network based on the acquired IPv4 address.
Step 603, the CPE receives the instruction for establishing the PPPoE session corresponding to IPv6, and determines the indication information corresponding to IPv 6.
In implementation, the PC may send an instruction for establishing the PPPoE session corresponding to IPv6 to the CPE, and after the CPE receives the instruction for establishing the IPv6PPPoE session, may determine the indication information corresponding to IPv6PPPoE according to a correspondence between IPv4 and IPv6 and the indication information, where the indication information may be an indication value, and may be, for example, 0x03.
Step 604, the CPE establishes a PPPoE session corresponding to IPv6 with the second BNG.
In implementation, after receiving the instruction for establishing the IPv6PPPoE session and determining the indication information corresponding to IPv6, the CPE may establish the PPPoE session corresponding to IPv6 with the second BNG based on the corresponding indication information. After receiving the message carrying the corresponding indication information sent by the CPE, the BNG may establish a PPPoE session corresponding to IPv6 with the CPE according to the corresponding indication information. It should be noted that the second BNG and the first BNG may be the same BNG or different BNGs.
In the process that the CPE establishes the PPPoE session corresponding to the IPv6 with the second BNG, a packet carrying the corresponding indication information may be sent to the second BNG. The indication information may be an indication value, for example, a value of a type field of a PPPoE header in a sent message may be set to a corresponding indication value, and for an IPv6PPPoE session, the corresponding indication value may be 0x03.
Fig. 8 shows a process of a user dialing to access an IPv6 network in a PPPoE manner, where the process may be a PPPoE stage and a PPP stage, in the PPPoE stage, the CPE may send a PADI message carrying corresponding indication information to each BNG in the BNG group, and each BNG may send a PADO message to the CPE after receiving the PADI message. After receiving the PADO message sent by the BNG, the CPE may determine, in the received PADO messages, a second BNG with which a PPPoE session is established, and then send the PADR message to the second BNG, after receiving the PADR message sent by the CPE, the second BNG may send a PADS message to the CPE, and after receiving the PADS message, the CPE may enter a PPP stage. In the PPP phase, the LCP negotiation phase, the authentication phase, and the NCP negotiation phase are included, where in the NCP negotiation phase, the BNG determines to establish a PPPoE session for accessing the IPv6 network with the CPE according to the indication information corresponding to the IPv6 carried in the received data packet, that is, only the negotiation process of the IPv6CP is performed in the NCP phase. The CPE can acquire the corresponding IPv6 address according to the information obtained in the IPv6CP negotiation process. The IPv6 network may then be accessed based on the IPv6 address. As shown in fig. 1, the CPE may establish a PPPoE session for accessing an IPv4 network and a PPPoE session for accessing an IPv6 network with the BNG based on different PPPoE sessions.
According to the embodiment of the application, the corresponding PPPoE session can be established according to the establishing instructions of different PPPoE sessions. Namely, the PPPoE session for accessing the IPv4 network is established according to the establishing instruction of the PPPoE session corresponding to the IPv4, or the PPPoE session for accessing the IPv6 network is established according to the establishing instruction of the PPPoE session corresponding to the IPv 6. Thus, the CPE is realized based on different PPPoE sessions when accessing the IPv4 network and the IPv6 network. If the CPE is required to access the IPv4 network and the IPv6 network respectively, the corresponding PPPoE session can be directly controlled, and the flexibility of controlling the CPE to access the IPv4 network and the IPv6 network can be improved. For example, when the user needs to be prohibited from accessing the IPv4 network, the PPPoE session corresponding to the IPv4 established in the CPE only needs to be closed, and only the PPPoE session corresponding to the IPv6 is reserved.
Fig. 9 is a device for establishing a PPPoE session according to an embodiment of the present application, where the device is applied to a CPE, and the device includes:
a receiving module 910, configured to receive an instruction for establishing a PPPoE session corresponding to an IP protocol of a target version, which may specifically implement the obtaining function in step 401 and other implicit steps;
an obtaining module 920, configured to obtain target indication information corresponding to the target version, which may specifically implement the obtaining function in step 402 and other implicit steps;
a sending module 930, configured to determine a target BNG used for establishing a session, and send a session establishment request to the target BNG, so as to establish a PPPoE session corresponding to the IP protocol of the target version with the target BNG, where a target field of the session establishment request carries the target indication information, and the obtaining function in step 403 and other implicit steps may be specifically implemented.
Optionally, the obtaining module 920 is configured to:
and determining target indication information corresponding to the target version based on the corresponding relation between the preset version and the indication information.
Optionally, the sending module 930 is configured to:
and sending the PADR message to the target BNG, wherein the value of a type field in the PADR message is a target indication value.
Optionally, the sending module 930 is configured to:
sending a PADI message carrying target indication information in the target field to each BNG in the BNG group;
receiving the PADO message sent by each BNG, and determining a target BNG in each BNG based on the PADO message sent by each BNG;
the sending module 930 is further configured to: receiving a PADS message sent by the target BNG; sending an LCP request message carrying target indication information in the target field to the target BNG; receiving LCP response message sent by the target BNG; sending an authentication request message carrying target indication information in the target field to the target BNG; receiving an authentication response message sent by the target BNG; sending an IP information request message carrying target indication information in the target field to the target BNG; and receiving an IP information response message sent by the target BNG.
Fig. 10 is a device for establishing a PPPoE session according to an embodiment of the present application, where the device is applied to a BNG, and the device includes:
a receiving module 1010, configured to receive a session establishment request sent by a CPE, and a PPPoE session corresponding to an IP protocol of a target version established by the CPE, where a target field of the session establishment request carries target indication information, and the session establishment request is sent after the CPE receives a PPPoE session corresponding to the IP protocol of the target version, acquires the target indication information corresponding to the target version, and determines a BNG used for establishing a session, and specifically, the acquiring function in step 403 and other implicit steps may be implemented.
Optionally, the receiving module 1010 is configured to:
receiving a PADR message sent by CPE, wherein the value of a type field in the PADR message is a target indication value.
Optionally, the receiving module 1010 is further configured to:
receiving a PADI message which is sent by the CPE and carries target indication information in the target field; sending a PADO message to the CPE;
the receiving module 1010 is further configured to: a PADS message sent to the CPE; receiving an LCP request message which is sent by the CPE and carries target indication information in the target field; sending LCP response message to the CPE; receiving an authentication request message which is sent by the CPE and carries target indication information in the target field; sending an authentication response message to the CPE; receiving an IP information request message which is sent by the CPE and carries target indication information in the target field; and sending an IP information response message to the CPE.
It should be noted that: in the apparatus for establishing a PPPoE session according to the foregoing embodiment, when the PPPoE session is established, only the above-mentioned division of the functional modules is taken as an example, in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the CPE or the BNG is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for establishing a PPPoE session and the method for establishing a PPPoE session provided in the foregoing embodiments belong to the same concept, and details of a specific implementation process thereof are given in the method embodiments, and are not described herein again.
Based on the same technical concept, an embodiment of the present application further provides a system for establishing a PPPoE session, where the system includes a CPE and a BNG, where:
the CPE is used for receiving a PPPoE session establishment instruction corresponding to the IP protocol of the target version; acquiring target indication information corresponding to a target version; determining a target BNG for establishing a session, and sending a session establishment request to the target BNG so as to establish a PPPoE session corresponding to an IP protocol of a target version with the target BNG, wherein a target field of the session establishment request carries target indication information; the BNG is used for receiving a session establishment request sent by the CPE and establishing a PPPoE session corresponding to the IP protocol of the target version with the CPE, wherein a target field of the session establishment request carries target indication information.
According to the embodiment of the application, a session establishment request carrying the target indication information in the target field can be sent to the target BNG according to the received establishment instruction of the PPPoE session corresponding to the IP protocol of the target version and the target indication information corresponding to the IP protocol of the target version, and after the target BNG receives the session establishment request carrying the target indication information in the target field, the PPPoE session corresponding to the IP protocol of the target version can be established with the CPE, for example, the PPPoE session can be used for accessing an IPv4 network or the PPPoE session can be used for accessing an IPv6 network, so that the access of the CPE to the IPv4 network and the IPv6 network is realized based on different PPPoE sessions, and the flexibility of controlling the respective access of the CPE to the IPv4 network or the IPv6 network can be improved.
In the above embodiments, all or part of the implementation may be implemented by software, hardware, firmware or any combination thereof, and when implemented by software, all or part of the implementation may be implemented in the form of a computer program product. The computer program product comprises one or more computer program instructions which, when loaded and executed on a device, cause a process or function according to an embodiment of the application to be performed, in whole or in part. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optics, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by the device or a data storage device, such as a server, a data center, etc., that is integrated into one or more available media. The usable medium may be a magnetic medium (such as a floppy Disk, a hard Disk, a magnetic tape, etc.), an optical medium (such as a Digital Video Disk (DVD), etc.), or a semiconductor medium (such as a solid state Disk, etc.).
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is intended to be illustrative of the present application and not to be construed as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and scope of the present application should be included in the present application.

Claims (18)

1. A method for establishing a PPPoE session, wherein the method is applied to a CPE, the method comprising:
receiving a PPPoE session establishment instruction corresponding to an IP protocol of a target version;
acquiring target indication information corresponding to the target version;
determining a target BNG for establishing a session, and sending a session establishment request to the target BNG so as to establish a PPPoE session corresponding to the IP protocol of the target version with the target BNG, wherein a target field of the session establishment request carries the target indication information.
2. The method of claim 1, wherein the obtaining of the target indication information corresponding to the target version comprises:
and determining target indication information corresponding to the target version based on the corresponding relation between the preset version and the indication information.
3. The method according to claim 1, wherein said sending a session establishment request to said target BNG, wherein a target field of said session establishment request carries said target indication information, comprises:
and sending the PADR message to the target BNG, wherein the value of a type field in the PADR message is a target indication value.
4. The method according to claim 1, wherein said determining the target BNG for establishing the session comprises:
sending a PADI message carrying target indication information in the target field to each BNG in the BNG group;
receiving the PADO message sent by each BNG, and determining a target BNG in each BNG based on the PADO message sent by each BNG;
after the sending of the session establishment request to the target BNG, the method further comprises:
receiving a PADS message sent by the target BNG;
sending an LCP request message carrying target indication information in the target field to the target BNG;
receiving LCP response message sent by the target BNG;
sending an authentication request message carrying target indication information in the target field to the target BNG;
receiving an authentication response message sent by the target BNG;
sending an IP information request message carrying target indication information in the target field to the target BNG;
and receiving an IP information response message sent by the target BNG.
5. A method for establishing a PPPoE session, wherein the method is applied to a BNG, the method comprising:
receiving a session establishment request sent by a CPE, and establishing a PPPoE session corresponding to an IP protocol of a target version with the CPE, wherein a target field of the session establishment request carries target indication information, the session establishment request is sent after the CPE receives an establishment instruction of the PPPoE session corresponding to the IP protocol of the target version, acquires the target indication information corresponding to the target version, and determines a BNG for establishing the session.
6. The method according to claim 5, wherein the receiving a session establishment request sent by a CPE, wherein a destination field of the session establishment request carries destination indication information, comprises:
receiving a PADR message sent by CPE, wherein the value of a type field in the PADR message is a target indication value.
7. The method of claim 1, wherein prior to receiving the session establishment request sent by the CPE, the method further comprises:
receiving a PADI message which is sent by the CPE and carries target indication information in the target field;
sending a PADO message to the CPE;
after receiving the session establishment request sent by the CPE, the method further includes:
a PADS message sent to the CPE;
receiving an LCP request message which is sent by the CPE and carries target indication information in the target field;
sending LCP response message to the CPE;
receiving an authentication request message which is sent by the CPE and carries target indication information in the target field;
sending an authentication response message to the CPE;
receiving an IP information request message which is sent by the CPE and carries target indication information in the target field;
and sending an IP information response message to the CPE.
8. An apparatus for establishing a PPPoE session, wherein the apparatus is applied to a CPE, the apparatus comprising:
the receiving module is used for receiving a PPPoE session establishment instruction corresponding to the IP protocol of the target version;
the acquisition module is used for acquiring target indication information corresponding to the target version;
a sending module, configured to determine a target BNG used for establishing a session, and send a session establishment request to the target BNG to establish a PPPoE session corresponding to the IP protocol of the target version with the target BNG, where a target field of the session establishment request carries the target indication information.
9. The apparatus of claim 8, wherein the obtaining module is configured to:
and determining target indication information corresponding to the target version based on the corresponding relation between the preset version and the indication information.
10. The apparatus of claim 8, wherein the sending module is configured to:
and sending the PADR message to the target BNG, wherein the value of a type field in the PADR message is a target indication value.
11. The apparatus of claim 8, wherein the sending module is configured to:
sending a PADI message carrying target indication information in the target field to each BNG in the BNG group;
receiving the PADO message sent by each BNG, and determining a target BNG in each BNG based on the PADO message sent by each BNG;
the sending module is further configured to: receiving a PADS message sent by the target BNG; sending an LCP request message carrying target indication information in the target field to the target BNG; receiving LCP response message sent by the target BNG; sending an authentication request message carrying target indication information in the target field to the target BNG; receiving an authentication response message sent by the target BNG; sending an IP information request message carrying target indication information in the target field to the target BNG; and receiving an IP information response message sent by the target BNG.
12. An apparatus for establishing a PPPoE session, wherein the apparatus is adapted for BNG, the apparatus comprising:
a receiving module, configured to receive a session establishment request sent by a CPE, where a target field of the session establishment request carries target indication information, and the session establishment request is sent after receiving a PPPoE session establishment instruction corresponding to an IP protocol of a target version, acquiring the target indication information corresponding to the target version, and determining a BNG used for establishing a session.
13. The apparatus of claim 12, wherein the receiving module is configured to:
receiving a PADR message sent by CPE, wherein the value of a type field in the PADR message is a target indication value.
14. The apparatus of claim 12, wherein the receiving module is further configured to:
receiving a PADI message which is sent by the CPE and carries target indication information in the target field; sending a PADO message to the CPE;
the receiving module is further configured to: a PADS message sent to the CPE; receiving an LCP request message which is sent by the CPE and carries target indication information in the target field; sending an LCP response message to the CPE; receiving an authentication request message which is sent by the CPE and carries target indication information in the target field; sending an authentication response message to the CPE; receiving an IP information request message which is sent by the CPE and carries target indication information in the target field; and sending an IP information response message to the CPE.
15. A system for establishing a PPPoE session, the system comprising a CPE and a BNG, wherein:
the CPE is used for receiving a PPPoE session establishment instruction corresponding to the IP protocol of the target version; acquiring target indication information corresponding to the target version; determining a target BNG for establishing a session, and sending a session establishment request to the target BNG, wherein a target field of the session establishment request carries the target indication information;
the BNG is configured to receive a session establishment request sent by the CPE, and establish, with the CPE, a PPPoE session corresponding to the IP protocol of the target version.
16. A CPE, comprising a processor, a receiver, and a transmitter, wherein:
the receiver is used for receiving a PPPoE session establishment instruction corresponding to the IP protocol of the target version;
the processor is configured to obtain target indication information corresponding to the target version, and determine a target BNG used for establishing a session;
the transmitter is configured to send a session establishment request to the target BNG to establish a PPPoE session corresponding to the IP protocol of the target version with the target BNG, where a target field of the session establishment request carries the target indication information.
17. A BNG, wherein the BNG comprises a processor and a receiver, wherein:
the receiver is used for receiving a session establishment request sent by the CPE;
the processor is configured to establish a PPPoE session corresponding to the IP protocol of the target version with the CPE, where a target field of the session establishment request carries target indication information, and the session establishment request is sent after the CPE receives an establishment instruction of the PPPoE session corresponding to the IP protocol of the target version, acquires the target indication information corresponding to the target version, and determines a BNG used for establishing the session.
18. A computer-readable storage medium, characterized in that it stores computer program code which, when executed by a computer device, implements the method of any of the preceding claims 1 to 7.
CN202110482087.0A 2021-04-30 2021-04-30 Method, device, system and equipment for establishing PPPoE session Pending CN115277274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110482087.0A CN115277274A (en) 2021-04-30 2021-04-30 Method, device, system and equipment for establishing PPPoE session

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110482087.0A CN115277274A (en) 2021-04-30 2021-04-30 Method, device, system and equipment for establishing PPPoE session

Publications (1)

Publication Number Publication Date
CN115277274A true CN115277274A (en) 2022-11-01

Family

ID=83746035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110482087.0A Pending CN115277274A (en) 2021-04-30 2021-04-30 Method, device, system and equipment for establishing PPPoE session

Country Status (1)

Country Link
CN (1) CN115277274A (en)

Similar Documents

Publication Publication Date Title
US7856023B2 (en) Secure virtual private network having a gateway for managing global ip address and identification of devices
US6041356A (en) Method and apparatus for detecting network traffic and initiating a dial-up connection using separate upstream and downstream devices
US9344462B2 (en) Switching between connectivity types to maintain connectivity
US6289377B1 (en) Dynamic network configuration of a one-way adapter using a proxy agent that communicates with a resource server through a configured return path adapter
US8458359B2 (en) System for the internet connections, and server for routing connection to a client machine
CN108738013B (en) Network access method, device and network equipment
US7359973B2 (en) Home-networking
US7113520B1 (en) Local protocol server
US20060062228A1 (en) Packet forwarding apparatus and access network system
US20080046974A1 (en) Method and System Enabling a Client to Access Services Provided by a Service Provider
US20030126239A1 (en) Mobile communication terminal, network access system and method thereof using the same
CN108307694B (en) Network connection information acquisition method and router
EP1791322B1 (en) A method and system for automatically distributing the service to the ppp access terminal
EP3068139A1 (en) Electronic device and method for controlling electronic device
US9172554B2 (en) Method and network access device for enabling data forwarding between different physical mediums
CN102136977B (en) Dialing equipment and method for realizing virtual dialing according to user needs
CN112566120A (en) Slice management method, device and system and service subscription server
JP2001086156A (en) Communication system using extended ppp frame
CN107566476B (en) Access method, SDN controller, forwarding equipment and user access system
CN115277274A (en) Method, device, system and equipment for establishing PPPoE session
EP4312406A1 (en) Separate pfcp session model for network access by residential gateways
CN116094821B (en) Route configuration method and device
US20240039762A1 (en) Combined pfcp session model for network access by residential gateways
CN105515797B (en) Park area network user authentication charging method, device and system
JP2001285370A (en) Remote access server apparatus and dhcp server apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination