WO2009018774A1 - A session connection method,apparatus and system in communication system - Google Patents
A session connection method,apparatus and system in communication system Download PDFInfo
- Publication number
- WO2009018774A1 WO2009018774A1 PCT/CN2008/071900 CN2008071900W WO2009018774A1 WO 2009018774 A1 WO2009018774 A1 WO 2009018774A1 CN 2008071900 W CN2008071900 W CN 2008071900W WO 2009018774 A1 WO2009018774 A1 WO 2009018774A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- session
- authentication
- ppp
- phase
- dhcp
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 194
- 238000004891 communication Methods 0.000 title claims abstract description 114
- 230000008569 process Effects 0.000 claims description 140
- 238000006243 chemical reaction Methods 0.000 claims description 52
- 230000004044 response Effects 0.000 claims description 14
- 230000003993 interaction Effects 0.000 claims description 13
- XQVWYOYUZDUNRW-UHFFFAOYSA-N N-Phenyl-1-naphthylamine Chemical compound C=1C=CC2=CC=CC=C2C=1NC1=CC=CC=C1 XQVWYOYUZDUNRW-UHFFFAOYSA-N 0.000 claims description 7
- 230000004913 activation Effects 0.000 claims description 3
- 238000000131 plasma-assisted desorption ionisation Methods 0.000 claims 1
- 230000005540 biological transmission Effects 0.000 abstract description 22
- 230000009466 transformation Effects 0.000 abstract 2
- 238000012546 transfer Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 7
- 238000013475 authorization Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 101150110438 Lcp4 gene Proteins 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 3
- 230000007704 transition Effects 0.000 description 2
- 229910001369 Brass Inorganic materials 0.000 description 1
- 239000010951 brass Substances 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0823—Network architectures or network communication protocols for network security for authentication of entities using certificates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/16—Implementing security features at a particular protocol layer
- H04L63/162—Implementing security features at a particular protocol layer at the data link layer
Definitions
- the present invention relates to the field of computers and communications, and more particularly to communication system session connection methods, apparatus and systems. Background technique
- IP Internet Protocol
- BNG Broadband Network Gateway
- BRAS Broadband Remote Access Server
- the home network that the UE initially belongs to is different from the protocol session supported by the visited home network after roaming, for example, as shown in FIG.
- the dotted line indicates the IP session
- the dotted line indicates the PPP session
- the solid line indicates the connection relationship of the device
- the home network only supports the IP session
- the visited network only supports the PPP session.
- the IP session ends on an IP edge device (such as a BNG that only supports IP sessions) in the home network.
- SP Service Provider
- the UE After roaming, the UE must IP edge devices (such as BRASs that only support PPP sessions) in the visited network perform PPP sessions, and through IP edge devices in the visited network and IP edge devices in the home network and a device in the home network Interact. Or, for example, as shown in FIG. 2, the dotted line indicates the IP session, the dotted line indicates the PPP session, the solid line indicates the connection relationship of the device, the home network only supports the PPP session, and the visited network only supports the IP session.
- the UE Based on the PPP session interacting with the SP in the home network, the PPP session will terminate on the BRAS in the home network.
- the UE After roaming, the UE must perform an IP session with the BNG in the visited network, and interact with the SP in the home network through the BNG in the visited network and the BRAS in the home network.
- the update speed of the network side device and the UE may be inconsistent.
- a PPP-based UE needs to pass through a Residential Gateway (RG) in a Customer Premises Network (CPN) and an Access Network that supports only IP sessions. connection.
- the IP-based UE needs to log in only the visited network of the PPP session through the RG in the CPN in which it is located.
- Embodiments of the present invention provide a communication system session connection method, apparatus, and system, which are used to implement conversion between a PPP session and an IP session.
- An embodiment of the present invention provides a communication system session connection method, which is used to establish a session connection of a point-to-point protocol PPP session communication peer to an Internet Protocol IP session communication peer, and the method includes the following steps:
- An embodiment of the present invention further provides a relay device, including:
- Point-to-point protocol PPP session interface unit used to communicate with the PPP session peer-to-peer point-to-point protocol PPP session;
- the Internet Protocol IP session interface unit is configured to exchange IP sessions with the IP session communication peer; the session conversion unit is configured to send the information that needs to be processed by the IP session communication peer in the ppp session to the IP session communication peer in the form of an IP session.
- the information that needs to be processed by the PPP session communication peer in the IP session is sent to the PPP session communication peer in the form of a PPP session.
- An embodiment of the present invention further provides a communication system, where the communication system includes a relay device, and the relay device includes:
- Point-to-point protocol PPP session interface unit used to communicate with the PPP session peer-to-peer point-to-point protocol PPP session;
- the Internet Protocol IP session interface unit is configured to exchange IP sessions with the IP session communication peer; the session conversion unit is configured to send the information that needs to be processed by the IP session communication peer in the ppp session to the IP session communication peer in the form of an IP session.
- the information that needs to be processed by the PPP session communication peer in the IP session is sent to the PPP session communication peer in the form of a PPP session.
- the information that needs to be processed by the IP session communication peer in the PPP session is forwarded to the IP session communication peer in the form of an IP session, and the information that needs to be processed by the PPP session communication peer in the IP session is forwarded to the PPP session communication pair in the form of a PPP session. end.
- It is an authentication conversion, which enables data transmission between the UE and the network side that apply different protocols, and the UE does not interrupt the service during the roaming process of the network using different protocols, which can enhance the user experience.
- 1 and 2 are network structure diagrams in the case of UE roaming in the prior art
- FIG. 3 and FIG. 4 are network structure diagrams in the case where the UE is not roaming in the prior art;
- FIG. 5A is a structural diagram of the system in the embodiment of the present invention.
- 5B is a structural diagram of session relay in an embodiment of the present invention.
- FIG. 6 is a flowchart of a main method for converting a PPP session to an IP session according to an embodiment of the present invention
- FIG. 7 is a PPP session to an IP when a PPP session does not include an authentication process and an IP session includes using Option 82 for DHCP authentication according to an embodiment of the present invention
- FIG. 8 is a flowchart of a method for converting a PPP session to an IP session when a PPP session includes CHAP authentication and an IP session includes DHCP authentication supporting CHAP authentication according to an embodiment of the present invention
- FIG. 9 is a flowchart of the present invention
- the PPP session includes an authentication process and a flow chart of a method for converting a PPP session to an IP session when the IP session includes EAP authentication;
- 9B is a flowchart of a method for converting a PPP session to an IP session when a PPP session includes CHAP authentication and an IP session includes EAP authentication on PAN A according to an embodiment of the present invention
- FIG. 10 is a flowchart of a method for converting a PPP session to an IP session when a PPP session includes EAP authentication and an IP session includes EAP authentication carried on PAN A according to an embodiment of the present invention
- FIG. 11 is a flowchart of a method for converting a PPP session to an IP session when a PPP session includes EAP authentication and an IP session includes DHCP authentication supporting EAP authentication according to an embodiment of the present invention
- FIG. 12 is a flowchart of a method for converting an IP session to a PPP session according to an embodiment of the present invention
- FIG. 14 is a flowchart of a method for converting an IP session to a PPP session when the DHCP is configured by the Option 82;
- FIG. 12 is a flowchart of a method for converting an IP session to a PPP session according to an embodiment of the present invention
- FIG. 14 is a flowchart of a method for converting an IP session to a PPP session when the DHCP is configured by the Option 82
- FIG. 12 is a flowchart of a method for converting an IP session to a PPP session according to an embodiment of the present invention
- FIG. 14 is a flowchart of a method for converting an IP session to a PPP session when the DHCP is configured by the Option 82
- FIG. 14 is a flowchart of a method for converting an IP session to a PPP session when the DHCP is
- a flowchart of a method for converting an IP session to a PPP session when the authentication and IP session include DHCP authentication supporting CHAP authentication;
- 15A is a flowchart of a method for converting an IP session to a PPP session when a PPP session includes an authentication process and an IP session includes an EAP authentication according to an embodiment of the present invention; a method for converting an IP session to a PPP session during EAP authentication on the EAPoL Figure
- 16 is a PPP session including EAP authentication and an IP session, including the bearer in the embodiment of the present invention
- the information in the PPP session network is sent to the device in the IP session network to create an IP session, and the data is transmitted between the PPP session network and the IP session network.
- the information in the IP session network is sent to the device in the PPP session network to create a PPP session, and the data is transmitted between the PPP session network and the IP session network.
- the PPP session in this embodiment is a generalized PPP session, which includes a PPPoE session and a PPP over ATM (PPPoA) session.
- PPPoE PPP over ATM
- This embodiment uses a PPPoE session as an example for detailed description.
- the basic conversion process of the PPPoE session to the IP session includes: (1) session establishment phase: conversion from the PPPoE session establishment process to the IP session establishment process; wherein the PPPoE session establishment process includes a PPPoE discovery process, a link establishment process, a PPP authentication process, and an NCP Negotiation (mainly refers to address allocation) process; IP session establishment process includes DHCP authentication and address allocation.
- Session termination phase The transition from the PPPoE session termination process to the IP session termination process; wherein the PPPoE session termination process includes a link termination process and a PPPoE termination process.
- the basic conversion process from IP session to PPPoE session includes: (1) session establishment phase: conversion from IP session establishment process to PPPoE session establishment process; wherein PPPoE session establishment process includes PPPoE discovery process, link establishment process, PPP authentication process, and NCP Negotiation Refers to the address assignment process; the IP session establishment process includes DHCP authentication and address assignment.
- Session termination phase transition from the IP session termination process to the PPPoE session termination process; wherein the PPPoE session termination process includes a link termination process and a PPPoE termination process.
- the intermediate module in the embodiment of the present invention is specifically a session relay, and the session relay may be a physical device entity or a logical device and exists in other devices.
- the PPPoE session process may not include an authentication process, or includes a Password Authentication Protocol (PAP) authentication, a Challenge-Handshake Authentication Protocol (CHAP) authentication, or an Extensible Authentication Protocol (Extensible Authentication). Protocol, EAP) authentication, etc.
- PAP Password Authentication Protocol
- CHAP Challenge-Handshake Authentication Protocol
- EAP Extensible Authentication Protocol
- the IP session process may not include EAP authentication or EAP authentication.
- the IP session process includes the Option 82 option or the Dynamic Host Configuration Protocol (DHCP) authentication that supports the PAP/CHAP mode.
- DHCP Dynamic Host Configuration Protocol
- the EAP authentication includes EAP authentication carried on the Network Access Authentication Bearer Protocol (PANA), EAP authentication on the EAP over LAN (EAPoL) carried over the EAP, or EAP mode.
- PANA Network Access Authentication Bearer Protocol
- EAPoL EAP over LAN
- DHCP authentication etc.
- the PPPoE session includes four authentication modes, and the IP session includes five authentication modes. The four authentication modes of the PPPoE session can be mutually converted with the five authentication modes of the IP session.
- the system in this embodiment includes a session communication peer (or Applicant) on the user side, a session relay, a session communication peer on the network side, an authenticator, an authentication server, and a DHCP server.
- the session communication peer end on the user side or the network side may be a PPP session communication peer end or an IP session communication peer end.
- the session communication peer end on the network side is used to communicate with the user side through the session relay to communicate with the peer end session.
- the session communication peer end of the user side may be located on the UE or the RG, and the session communication peer end as the user side is used to interact with the session relay to implement the PPPoE session (or IP session), For the authenticated applicant, it interacts with the session relay to implement access authentication.
- PPPoE session or IP session
- Suppliant is located on the UE as an example.
- Session relay used to interact with Suppliant to implement a PPPoE session (or IP session), and interact with the network side session communication peer according to the Suppliant MAC address to implement an IP session (or PPPoE session) and perform a PPPoE session
- the conversion between the IP session and the PPPoE session is obtained from the PPPoE session and sent to the connected device in the IP session, and the information about the PPPoE session needs to be obtained from the IP session and sent to the PPPoE session.
- the session relay replaces the Suppliant to obtain the first IP address sent by the peer of the session communication on the network side, and the session relay can send the first IP address to the Suppliant.
- the session relay allocates a second IP address to the Suppliant, and establishes a correspondence between the second IP address and the first IP address.
- the second IP address in the packet is converted into a corresponding
- the first IP address is sent to the session communication peer on the network side, and the first IP address in the packet sent by the session communication peer on the network side is converted into a corresponding second IP address and sent to the Suppliant.
- the authenticator uses the authentication process of the session, interacts with the session relay through the session communication peer on the network side, and performs authentication interaction with the authentication server.
- the session communication peers and the authenticators on the network side may both be located on physical entities such as ANs or IP edge devices, or the session communication peers on the network side and the authenticators are located on different physical entities.
- session communication on the network side The opposite end is closer to the Suppliant than the certifier.
- the session communication peer end and the authenticator on the network side are all located on the IP edge device as an example.
- the authenticator is a DHCP authenticator; in the EAP authentication carried in PANA, the authenticator is a PAN A authentication proxy (PAA).
- the authentication server is used to authenticate Suppliant based on the authentication information sent by the authenticator.
- the DHCP server is used to assign an IP address.
- the DHCP server is selected and interacted with by the session communication peer on the network side. The interaction process between the session communication peer, the authenticator, the authentication server, and the DHCP server on the network side is prior art and will not be described in detail herein.
- the session relay can be a logical entity and exists in other devices. There can be multiple other devices, such as an RG, an access node (AN), an IP edge device, and the like. System Which device is the turning point of the IP session and the PPPoE session, and which device the session relay is on.
- the session relay is located on the RG; if the Suppliant to the AN applies the PPPoE session, the AN to the IP edge device and the above device applies the IP session, the session relay On the AN; if the Suppliant to the IP edge device applies the PPPoE session, the IP edge device applies the IP session to the SP or other IP edge device, the session relay is located on the IP edge device, and the interaction between the session relay and the IP edge device is the session. The interaction between the trunk and other modules inside the IP edge device.
- the session relay can also be a physical entity that exists independently at any location between the UE and the IP edge device. Which two devices in the system are the turning point of the IP session and the PPPoE session, and the session is in front of which device. If the Suppliant to RG applies the PPPoE session, the AN to the IP edge device and the above device apply the IP session, the session relay is between the RG and the AN; if the Suppliant to the AN applies the PPPoE session, the IP edge device to the SP applies the IP session, then the session The trunk is between the AN and the IP edge device.
- the session relay in the embodiment of the present invention includes a PPP session interface unit 11, an IP session interface unit 12, and a session conversion unit 13.
- the PPP session interface unit 11 is configured to exchange a point-to-point protocol PPPoE session with the PPP session communication peer.
- Suppliant is the PPP session communication peer;
- the network side includes the PPP session communication peer.
- the IP session interface unit 12 is configured to exchange an IP session with the IP session communication peer.
- Suppliant is the IP session communication peer; when interacting with the network side IP session, the network side includes the IP session communication peer.
- the session conversion unit 13 is configured to send the information that needs to be processed by the IP session communication peer in the PPPoE session to the IP session communication peer in the form of an IP session, and the PPPoE session is used in the IP session to be processed by the PPP session communication peer.
- the form is sent to the PPP session communication peer.
- the session relay includes an authentication relay (AR).
- AR authentication relay
- the AR is used to perform authentication and conversion on the PPPoE session and the IP session in the session authentication phase.
- the AR proxy Suppliant can use the IP address of the Suppliant to identify the IP session with the authenticator. (or PPP will Then, the user authentication or the device authentication is finally completed.
- the authentication relay is located in the session relay, and the authentication relay is also separated from the session relay. In this embodiment, the authentication relay is located in the session relay as an example.
- the PPP session interface unit 11 and the IP session interface unit 12 are interface units in other device entities.
- the conversion process between the PPPoE session and the IP session includes the conversion of the PPPoE session to the IP session and the conversion of the IP session to the PPPoE session.
- the main method of PPPoE session to IP session conversion is as follows:
- Step 601 The Suppliant initiates a PPPoE session creation process and interacts with the session relay to implement and complete the PPPoE discovery phase, that is, to create a PPPoE session.
- Step 602 Implement and complete the link establishment phase, and establish a standard PPP session. Suppliant negotiates with the Session Relay for Link Control Protocol (LCP).
- LCP Link Control Protocol
- Step 603 The session relay interacts with the IP edge device to enter the IP session creation process.
- Step 604 Suppliant initiates an address allocation process, and the session relay replaces Suppliant to request the DHCP server to obtain the IP address of the Suppliant through the IP edge device, and the session relay obtains the IP address assigned by the DHCP server through the IP edge device, and allocates the DHCP server.
- the first IP address is sent to Suppliant.
- the session relay assigns a second IP address to the Suppliant, the second IP address corresponding to the first IP address assigned by the DHCP server.
- Step 605 Enter the data transmission phase.
- the data in the form of PPPoE is transmitted between the Suppliant and the session relay, and the data in the form of IP over Ethernet (IPoE) is transmitted between the session relay and the IP edge device.
- IPoE IP over Ethernet
- Step 606 After the data transmission is completed, the PPPoE session termination phase is entered, and the first is the link termination phase. Suppliant initiates the termination of the PPPoE session and interacts with the session relay to terminate the standard PPP session.
- Step 607 Suppliant or Session Relay Send PPPoE Activation Discovery Termination (PPPoE
- PADT Active Discovery Terminate
- Step 608 The session relay sends a DHCP release to the DHCP server through the IP edge device. (DHCP Release) message to request the DHCP server to release the IP address of the Suppliant, and the IP session is terminated.
- DHCP Release DHCP Release
- Step 602 and step 603 are two independent operations, and there is no strict sequence.
- the PPPoE session does not include the authentication process and the IP session includes the Option 82 for DHCP authentication.
- the PPPoE session to IP session conversion method is as follows:
- Step 701 The first step of the PPPoE discovery phase, that is, the PPPoE Active Discovery Initiation (PADI), initiates a PPPoE session creation process, and creates a PPPoE session.
- PADI PPPoE Active Discovery Initiation
- Step 701 The first step of the PPPoE discovery phase, that is, the PPPoE Active Discovery Initiation (PADI), initiates a PPPoE session creation process, and creates a PPPoE session.
- PADI PPPoE Active Discovery Initiation
- Step 702 Enter an IP session creation process, including a DHCP authentication and address allocation process.
- the session relay that receives the PADI packet sends a DHCP Discover message to the IP edge device, or the session relay sends a DHCP Discover message to an IP edge device.
- the IP edge device sends the DHCP Discover message to the IP edge device.
- the access loop identifier obtained by the session relay is inserted into the DHCP Discover message in the format of Option 82. If the session relay is located after the AN, the access loop identifier is obtained from the PADI TAG. If the session relay is located on the AN, the access loop identifier is obtained from the AN.
- the session relay sends a DHCP Discover message to the IP edge device by using the obtained Suppliant MAC address.
- Step 703 The IP edge device forwards the DHCP Discover message to multiple DHCP servers to select a DHCP server, and the IP edge device performs authentication according to the obtained access loop identifier. After the authentication succeeds, the IP edge device returns a dynamic host configuration protocol (DHCP Offer) message to the session relay, indicating that the authentication succeeds and agrees to perform subsequent operations on address allocation.
- DHCP Offer dynamic host configuration protocol
- Step 704 Enter the second step of the PPPoE discovery phase, that is, the PPPoE Active Discovery Offer (PADO) phase.
- the session relay responds to the PADI message sent by Suppliant, that is, sends a PADO message to Suppliant.
- the source address in the Ethernet frame is filled with the MAC address of the session relay, and the session ID is still filled with 0x0000.
- Step 705 Enter the third step of the PPPoE discovery phase, that is, the PPPoE Active Discovery Request (PADR) phase.
- PADR PPPoE Active Discovery Request
- Suppliant After receiving the PADO message, Suppliant receives a PADO message from multiple session relays, and selects a session relay from multiple session relays according to the content of the PADO message or the time sequence of receiving the PADO message. The object of the subsequent session, and sends a unicast request message (that is, the PADR message) to the selected session relay (where the session ID is still 0x0000).
- a unicast request message that is, the PADR message
- Step 706 Enter the final step of the PPPoE discovery phase, that is, the PPPoE Active Discovery Session-Confirmation (PADS) phase.
- the session relay assigns a unique session process ID (referred to as a specific session ID in this embodiment) to the PPPoE session, and sends a PADS4 message carrying the specific session ID to Suppliant.
- a unique session process ID referred to as a specific session ID in this embodiment
- Step 707 Enter the link establishment phase, that is, create a standard PPP session. Suppliant and the session relay perform LCP negotiation.
- Step 708 Enter the address allocation phase. Suppliant sends a configuration request (Config-Request) message to the session relay, requesting the assignment of an IP address (which can be expressed as IP@).
- Config-Request a configuration request (Config-Request) message to the session relay, requesting the assignment of an IP address (which can be expressed as IP@).
- the Config-Request packet is in the form of (0.0.0.0), indicating that an IP address needs to be configured.
- Step 709 The session relay sends a DHCP Request message to the selected DHCP server through the IP edge device, and requests to obtain the first IP address of the Suppliant.
- DHCP Ack DHCP Reply
- Step 711 The session relay sends a configuration response (Config-Nak) message to the Suppliant, and sends the first IP address assigned by the DHCP server to the Suppliant.
- the session relay assigns a second IP address to the Suppliant, and the session relay establishes a correspondence between the second IP address and the first IP address assigned by the DHCP server.
- the session relay sends a DHCP Request message and the session relay allocates a second IP address to the Suppliant.
- the two IP addresses are two independent operations, which can be performed simultaneously.
- Suppliant and session relay can further perform operations other than address allocation in NCP negotiation, such as negotiation of configuration parameters of user services. Helps reduce user operations.
- Step 712 Enter the data transmission phase.
- the data in the form of PPPoE is transmitted between the Suppliant and the session relay, and the data in the form of IPoE is transmitted between the session relay and the IP edge device, and the data format is converted by the session relay.
- the session relay only needs to change the datagram according to PPPoE or IPoE.
- the header and trailer of the text, the payload part does not need to be changed. For example, when you need to convert from PPPoE to IPoE, remove the PPPoE header and trailer from the data packet. For example, when you need to convert from IPoE to PPPoE, add PPPoE header and trailer to the data.
- Step 713 The Suppliant and the session relay terminate the request ( Termination-Request) and the Termination-Ack message to terminate the link (ie, terminate the standard PPP session). For example, when the user shuts down, Suppliant sends a Termination-Request message, and the session relay sends a Termination-Ack message. When the user owes a fee, the session relay sends a Termination-Request message, and Suppliant sends the Termination-Ack message.
- Step 714 The Termination-Ack message triggers the Suppliant or the session relay to send a PPPoE Active Discovery Terminate (PADT) message to terminate the PPPoE session. That is, the device that receives the Termination-Ack message sends a PADT message.
- PADT PPPoE Active Discovery Terminate
- Step 715 The session relay sends a DHCP Release (DHCP Release) message to the DHCP server through the IP edge device to request to release the IP address of the Suppliant, and terminate the IP session.
- step 702 and step 703 must be completed between steps 701 and 709.
- an authentication phase may be added to perform PAP authentication or CHAP authentication.
- the PAP authentication is a two-way handshake authentication, and the password is plain text.
- the PAP authentication process is as follows: The authenticated party sends the username and password to the authenticator, and the authenticator checks to see if the user has the password, and then sends the corresponding response.
- CHAP authentication is three-way handshake authentication, and the password is ciphertext (key).
- CHAP authentication is performed by the authenticator to send some randomly generated packets to the authenticated party.
- the authenticated party encrypts with its own password through the Message-Digest Algorithm 5 (MD5) algorithm and authenticates to the authenticator.
- MD5 Message-Digest Algorithm 5
- the authenticator encrypts the password and the random message saved by itself with the MD5 algorithm, compares the ciphertext of the two, and returns the corresponding response according to the comparison result.
- Suppliant uses any username and password, and session relays default to Suppliant authentication.
- This embodiment describes a process of converting a PPPoE session that does not include an authentication process to an IP session that includes DHCP authentication.
- the process of converting a PPPoE session that does not include the authentication process to an IP session that includes other authentication modes is similar to the process of this embodiment. Refer to the implementation, and will not repeat them here.
- Step 801 The Suppliant interacts with the session relay to perform the PPPoE discovery phase processing process. For details, refer to steps 701, 704, 705, and 706.
- Step 802 Enter the link establishment phase, that is, Suppliant and the session relay perform LCP negotiation.
- Step 803 Enter the IP session creation phase.
- the session relay that receives the PADI packet sends a DHCP Discover message to the IP edge device and the DHCP server.
- the authentication option ( auth-proto Option ) carried in the DHCP Discover message indicates that Chap authentication is used.
- Step 804 The IP edge device returns a DHCP Offer message to the session relay, in DHCP.
- the authentication option of the Offer message carries the Chap Challenge message (Chap-Challenge) authentication information.
- the first DHCP server and IP edge device that reply to the DHCP Offer message are selected follow-up sessions. Word object.
- Step 805 The session relay carries the Chap-Challenge in the received DHCP Offer in the PPP LCP message and sends it to Suppliant.
- Step 806 After Suppliant processes the Chap-Challenge, the PPP LCP responds with a Chap response (Chap-Response) to the session relay.
- Chap response Chap-Response
- Step 807 The session relay sends a DHCP Request message to the IP edge device, and requests the IP address of the Suppliant from the DHCP server.
- the authentication option of the DHCP Request message carries the Chap-Response authentication information.
- Step 808 The IP edge device authenticates the Suppliant according to the Chap-Response in the received DHCP Request message, and after the authentication succeeds, the DHCP server returns a DHCP response (DHCP Ack) message to the session relay through the IP edge device.
- the DHCP Reply (DHCP Ack) message carries the first IP address assigned to the Suppliant, and the session relay records the IP address assigned to the Suppliant.
- Step 809 The session relay notifies Suppliant through the PPP LCP message, and the Chap authentication succeeds.
- the Config-Request packet is sent to the session relay to request the configuration of an IP address.
- Step 811 The session relay returns a Config-Nak message to the Suppliant, and carries the first IP address assigned by the recorded DHCP server to the Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant and carries it in the Config-Nak4 message, the second IP address corresponding to the first IP address assigned by the DHCP server.
- Step 812 Enter the data transmission phase.
- the data in the form of PPPoE is transmitted between the Suppliant and the session relay, and the data in the form of IPoE is transmitted between the session relay and the IP edge device, and the data format is converted by the session relay.
- the session relay only needs to change the datagram according to PPPoE or IPoE.
- the head and tail of the text, the payload part does not need to be changed.
- the session relay converts the second IP address in the data from the Suppliant to the corresponding first IP address, sends the IP address to the IP edge device, and converts the first IP address in the data packet from the IP edge device. For the corresponding number The second IP address is sent to Suppliant.
- Step 813 Suppliant and Session Relay Interrupt Request ( Termination-Request) and Termination-Ack messages are terminated to terminate the standard PPP session.
- Step 814 When the standard PPP session is terminated, the Termination-Ack message triggers the Suppliant or the session relay to send a PADT message to terminate the PPPoE session.
- Step 815 The session relay sends a DHCP Release (DHCP Release) message to the DHCP server through the IP edge device to request to release the IP address of the Suppliant, and terminate the IP session.
- DHCP Release DHCP Release
- step 803 occurs after the beginning of step 801 and step 805 occurs after step 802.
- the PPPoE session includes an authentication process and the IP session includes EAP authentication.
- Step 900 A Suppliant interacts with the session relay to perform the PPPoE discovery phase.
- Step 900B Enter the link establishment phase, that is, Suppliant and session relay perform LCP negotiation.
- Step 900C Enter the EAP authentication startup phase.
- the session relay interacts with the IP edge device based on the obtained Suppliant's MAC address to complete the EAP authentication.
- Step 900D Enter the authentication phase of the PPPoE session and the EAP authentication phase of the IP session.
- the PPP-based packet of Suppliant is converted into an IP-based packet and sent to the IP edge device, and the IP-based packet from the IP edge device is converted into a PPP-based packet and sent to the packet.
- the IP edge device authenticates Suppliant based on received messages and locally saved information.
- Step 900E After the authentication succeeds, enter the address allocation phase of the PPPoE session and the DHCP address allocation phase of the IP session.
- Suppliant interacts with the DHCP server through the session relay and the IP edge device.
- the DHCP server assigns an IP address to the Suppliant and sends it to the session relay.
- the session relay sends the first IP address assigned by the DHCP server to the Suppliant.
- the session relay assigns a second IP address to the Suppliant, the second IP address and DHCP. The first IP address assigned by the server - corresponding.
- Step 900F Enter the data transmission phase.
- the data packet in the form of a PPPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of an IPoE session is transmitted between the session relay and the IP edge device.
- the session relay converts the data packet form, and the session relay only The header and trailer of the data message need to be changed according to PPPoE or IPoE.
- the payload part does not need to be changed.
- Step 900G Enter the link termination phase. Suppliant interacts with the session relay to terminate the standard PPP session.
- Step 900H Enter the PPPoE session termination phase.
- the Suppliant or Session Relay sends a PADT message to terminate the PPPoE session.
- Step 9001 Enter the IP session termination phase.
- the session relay interacts with the DHCP server through the IP edge device to terminate the IP session.
- the process of converting the PPPoE session to the IP session is as follows:
- Step 901 The Suppliant interacts with the session relay to perform the PPPoE discovery phase. For the specific process, refer to steps 701, 704, 705, and 706.
- Step 902 Enter the link establishment phase, that is, the Suppliant and the session relay perform LCP negotiation.
- Step 903 Enter the EAP authentication startup phase.
- the session relay sends a PANA Client Initiation message (PANA-Client-Initiation) to the IP edge device to select a PAN Authentication Agent (PAA) that provides the authentication and authorization service, and indicates that the EAP carried on the PAN A is adopted. Authentication, where the PAA is located on the IP edge device.
- PANA-Client-Initiation PANA Client Initiation message
- PAN Authentication Agent PAN Authentication Agent
- Step 904 The selected PAA interacts with the session relay to complete the EAP authentication startup phase.
- the specific operations include: The PAA sends a PANA-Auth-Request message to the session relay, indicating that the local authentication service can be provided, and sends the locally used local part to the session relay through the PANA-Auth-Request message. IP address; session relay sends PANA authentication reply (PANA- Auth- Answer) PAA. Among them, the S position is 1.
- Step 905 Enter the EAP authentication phase.
- the PAA sends an EAP-Request/Identity message to the session relay to inform the EAP identity.
- the EAP-Request/Identity message is sent by the PANA-Auth-Request packet.
- Step 906 Session Relaying Suppliant Media Access Control (Media Access
- Control, MAC is bound to EAP Identity. Since one session uses EAP authentication and the other session does not use EAP authentication, the MAC address needs to be bound to EAP Identity. Among them, the session relay has obtained the Suppliant's MAC address when establishing the initial connection with Suppliant.
- Step 907 The bearer sends an EAP identity reply to the PAA in the session.
- EAP -Response/Identity is the PAN A- Auth- Answer of the text.
- Step 908 The PAA sends a PANA-Auth-Request message carrying the EAP MD5 Challenge Request (EAP-Request/MD5 Challenge) to the session relay.
- Step 909 The session relay converts the EAP-Request/MD5 Challenge into a Chap-Challenge, and converts the PANA-Auth-Request packet into a PPP LCP packet, and sends the PPP LCP carrying the Chap-Challenge to the message. Suppliant.
- Step 910 After Suppliant processes the Chap-Challenge, the PPP LCP replies to Chap-Response to relay the session.
- Step 911 The session relay converts the Chap-Response into an EAP-MD5 challenge response (EAP-Response/MD5 Challenge), and converts the PPP LCP message into a PANA-Auth-Answer message, and carries the EAP-Response/MD5
- EAP-Response/MD5 Challenge EAP-Response/MD5 Challenge
- PANA-Auth-Answer message from Challenge is sent to the PAA.
- Step 912 The PAA authenticates the Suppliant according to the received PANA-Auth-Answer message, and after the authentication succeeds, the EAP success is successfully replied to the session relay (the EAP derivative key may be further replied).
- the reply information is carried in the PANA-Auth-Request 4 message and sent to the session relay.
- the session relay sends a PANA-Auth-Answer message in response to the PAA. Where the C position is 1, indicating the authentication knot Bunch.
- Step 913 The session relay notifies Suppliant through the PPP LCP message, and the Chap authentication succeeds.
- Step 915 The session relay initiates a standard DHCP process, and interacts with the DHCP server to obtain an IP address assigned by the DHCP server to the Suppliant. For details, see Step 803.
- Step 916 The session relay returns a Config-Nak message to Suppliant, and carries the IP address assigned by the recorded DHCP server to Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant and carries it in the Config-Nak4 message, the second IP address corresponding to the IP address assigned by the DHCP server.
- Suppliant and Session Relay can further make an NCP negotiation process for service configuration.
- Step 917 Enter the data transfer phase.
- the data packet in the form of a PPPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of an IPoE session is transmitted between the session relay and the IP edge device.
- the session relay converts the data packet form, and the session relay only The header and trailer of the data message need to be changed according to PPPoE or IPoE. The payload part does not need to be changed.
- Step 918 Suppliant interacts with the session relay Termination-Request and Termination-Ack to terminate the standard PPP session.
- Step 919 When the standard PPP session is terminated, the Termination-Ack message triggers the Suppliant or the session relay to send the PADT4 message to terminate the PPPoE session.
- Step 920 In the session, the PANA-Termination-Request (PANA-Termination-Request) message is sent to the PAA, and the PAA returns a PANA-Termination-Answer message to terminate the PAN A session.
- PANA-Termination-Request PANA-Termination-Request
- Step 921 The session relay sends DHCP to the DHCP server through the IP edge device.
- Step 906 and step 907 are two independent operations, and there is no strict execution sequence.
- the foregoing three embodiments describe that the process of converting a PPPoE session including a Chap authentication to a PPPoE session including a DHCP authentication to an IP session including other authentication modes is similar to the process of the foregoing three embodiments, and may be referred to for execution, and details are not described herein again. .
- the difference between the PAP authentication and the Chap authentication is that the PAP authentication is a two-way handshake authentication, and the Chap authentication is a three-way handshake authentication, including a PAP-authenticated PPPoE session to a IP session including various authentications, and a PPPoE session including Chap authentication.
- the conversion process of the authenticated IP session is similar, and can be referred to for execution, and details are not described herein again.
- the PPPoE session to the IP session conversion method is as follows:
- Step 1001 The Suppliant interacts with the session relay to perform the PPPoE discovery phase. For details, refer to steps 701, 704, 705, and 706.
- Step 1002 Enter the link establishment phase, that is, Suppliant and session relay perform LCP negotiation.
- Step 1003 Enter the authentication phase. Session relay sends to IP edge device
- the PAN A-Client-Initiation message is used to select the PA A that provides the authentication and authorization service.
- the PAA is located on the IP edge device.
- Step 1004 The selected PAA interacts with the session relay to enter the EAP authentication startup phase.
- the specific operations include: The PAA sends a PANA-Auth-Request packet to the session relay, indicating that the local authentication and authorization service can be provided, and the locally used local IP address is sent to the session relay through the PANA-Auth-Request packet; Send P ANA- Auth- Answer to respond to P AA.
- Step 1005 The PAA sends an EAP Identity Request (EAP-Request/Identity) to the session relay to notify the EAP Identity, and the EAP-Request/Identity text is carried on the PANA-Auth-Request packet.
- EAP-Request/Identity EAP-Request/Identity
- Step 1006 The session relay converts the PAN A-Auth-Request packet into a PPP LCP packet, and sends the PPP LCP packet carrying the EAP-Request/Identity to the Suppliant.
- Step 1007 Suppliant sends a PPP LCP carrying EAP-Response/Identity to the session relay.
- Step 1008 The session relay converts the PPP LCP message into a PANA-Auth-Answer message, and sends the PANA-Auth-Answer message carrying the EAP-Response/Identity to the PAA.
- Step 1009 Perform an EAP Method negotiation and an authentication method interaction process.
- the specific process includes: The PPP LCP is used to carry the EAP interaction between the Suppliant and the session relay.
- the PANA packet is used to carry the EAP interaction between the session relay and the PAA until the EAP authentication process ends.
- Step 1010 The PAA authenticates the Suppliant according to the received PAN A-Auth- Answer message, and when the authentication succeeds, returns the EAP success (EAP success) and the corresponding EAP derived key to the session relay.
- the bearer is sent to the session relay in the PANA-Auth-Request message.
- the session relay sends a PANA-Auth-Answer message in response to the PAA.
- Step 1011 The session relay encapsulates the EAP authentication (EAP success) in the PPP.
- the LCP message is sent to Suppliant.
- Step 1012 Enter the address allocation phase. Suppliant sends a Config-Request message to the session relay, requesting the configuration of an IP address.
- Step 1013 The session relay initiates a standard DHCP process, and interacts with the DHCP server to obtain an IP address assigned by the DHCP server to the Suppliant. For details, refer to steps 803, 804, 807, and 808.
- Step 1012 and step 1013 are two independent processes, and there is no strict execution sequence.
- Step 1014 The session relay returns a Config-Nak message to Suppliant, and carries the IP address assigned by the recorded DHCP server to Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant, which corresponds to the IP address assigned by the DHCP server.
- Step 1015 Enter the data transmission phase.
- the data packet in the form of a PPPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of an IPoE session is transmitted between the session relay and the IP edge device.
- the session relay converts the data packet form, and the session relay only The header and trailer of the data message need to be changed according to PPPoE or IPoE. The payload part does not need to be changed.
- Step 1016 Suppliant interacts with the session relay Termination-Re quest
- Termination-Ack is used to terminate the standard PPP session.
- Step 1017 When the standard PPP session is terminated, the Termination-Ack triggers the Suppliant or the session relay to send the PADT packet to terminate the PPPoE session.
- Step 1018 The session relay sends a PANA-Termination-Request message to the PAA, and the PAA returns a PANA-Termination-Answer message to complete the termination of the PAN A session.
- Step 1019 The session relay sends a DHCP Release message to the DHCP server through the IP edge device to request to release the IP address of the Suppliant.
- Step 1101 The Suppliant interacts with the session relay to perform the PPPoE discovery phase. For details, refer to steps 701, 704, 705, and 706.
- Step 1102 Enter the link establishment phase, that is, Suppliant and the session relay perform LCP negotiation.
- Step 1103 The session relay sends a DHCP Discover message to the DHCP authenticator (located on the IP edge device) and the DHCP server to select a DHCP authenticator and a DHCP server that provide the authentication and authorization service, and indicates the session relay support through the authentication option. Authentication mode. Among them, the session relay interacts with the DHCP authenticator through the obtained Suppliant MAC address.
- Step 1104 The DHCP server returns a DHCP Offer message.
- the DHCP Authenticator adds the authentication option to indicate the locally supported authentication mode, records the untenant IP address provided by the DHCP server for the session relay, and replaces it with a local part for Suppliant.
- the IP address is then forwarded to the session to forward the DHCP Offer message carrying the local IP address.
- Step 1105 The session relay sends a DHCP Request message to respond to the DHCP Offeror's DHCP Offer, which includes the authentication mode supported by the DHCP authenticator and the IP address provided by the DHCP authenticator, indicating that the DHCP authenticator that can support the corresponding authentication mode has been selected. And accepted the IP address provided by the DHCP Authenticator.
- Step 1106 After receiving the DHCP Request message, the DHCP Authenticator sends a DHCP Ack message carrying the EAP-Request/Identity 4 message to the session relay.
- Step 1107 The session relay converts the DHCP packet into a PPP LCP packet, and sends the PPP LCP packet carrying the EAP-Request/Identity to the Suppliant.
- Step 1108 Suppliant sends a PPP LCP carrying EAP-Response/Identit to the session relay.
- Step 1109 The session relay converts the PPP LCP packet into a DHCP Request message, and sends the DHCP Request message carrying the EAP-Response/Identity to the DHCP authenticator.
- Step 1110 Perform EAP Method negotiation and the process of authenticating the method.
- the specific process includes: The PPP LCP packet is used to carry the EAP between the Suppliant and the session relay.
- the session relay and the DHCP Authenticator use the DHCP packet to carry the EAP to communicate with each other until the EAP authentication process ends.
- Step 1111 The DHCP authenticator authenticates the Suppliant according to the received DHCP Request message, and when the authentication succeeds, replies to the session relay with EAP success (or EAP success and corresponding EAP derived key), and carries it in DHCP.
- EAP success or EAP success and corresponding EAP derived key
- the first IP address is assigned to the Suppliant and sent to the session relay.
- Step 1112 The session relay encapsulates the EAP success packet in the PPP LCP packet and sends it to the Suppliant.
- Step 1113 Enter the address allocation phase. Suppliant sends a Config-Request message to the session relay, requesting the configuration of an IP address.
- Step 1114 The session relay returns a Config-Nak message to the Suppliant, which will be recorded.
- the IP address assigned by the DHCP server is carried to Suppliant.
- the session relay assigns a second IP address to the Suppliant, the second IP address corresponding to the IP address assigned by the DHCP server.
- Step 1115 Enter the data transmission phase.
- the data in the form of a PPPoE session is transmitted between the Suppliant and the session relay, and the data message in the form of an IPoE session is transmitted between the session relay and the DHCP authenticator, and the data relay is converted by the session relay, and the session is relayed.
- the payload does not need to be changed.
- Step 1116 Suppliant interacts with the session relay Termination-Request and Termination-Ack to terminate the standard PPP session.
- Step 1117 When the standard PPP session is terminated, the Termination-Ack triggers the Suppliant or the session relay to send the PADT packet to terminate the PPPoE session.
- the Release message terminates the IP session by requesting to release the IP address of Suppliant.
- PANA's EAP-authenticated IP session conversion process and the conversion process from PPPoE session including EAP authentication to IP session including DHCP authentication supporting EAP authentication, including EAP-authenticated PPPoE session to IP session including other authentication methods
- the conversion process is similar to the process of the above two embodiments, and can be referred to for execution, and details are not described herein again.
- the above embodiment describes the process of converting a PPPoE session to an IP session.
- the conversion process of the IP session to the PPPoE session is shown in Figure 12.
- the main method flow is as follows:
- Step 1201 Suppliant initiates an IP session creation process, and initiates an IP session authentication and address allocation process.
- Step 1202 The session relay initiates a PPPoE session creation process, and interacts with the IP edge device according to the obtained Suppliant MAC address to implement and complete the PPPoE discovery phase, that is, create a PPPoE session.
- Step 1203 Enter a link establishment phase of the PPPoE session, and create a standard PPP session. That is, the session relay and the IP edge device perform LCP negotiation.
- Step 1204 The session relay responds to the initiation operation of Suppliant to complete the authentication process of the IP session.
- Step 1205 Enter the address allocation phase.
- Suppliant initiates the address allocation process, in which the session relay replaces Suppliant to request the IP edge device (or DHCP server) to obtain the Suppliant IP address.
- the session relay sends the first IP address assigned by the IP edge device (or DHCP server) to Suppliant.
- the session relay assigns a second IP address to the Suppliant, the second IP address corresponding to the first IP address assigned by the IP edge device (or DHCP server).
- Step 1206 Enter the data transfer phase.
- the data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of a PPPoE session is transmitted between the session relay and the IP edge device.
- Step 1207 After the data transmission is completed, Suppliant sends a DHCP Release message to the session relay to request to release the local IP address, and the IP session is terminated. Among them, Suppliant determines the session relay as a DHCP server.
- Step 1208 Enter a link termination phase of the PPP session.
- the session relay interacts with the IP edge device to terminate the standard PPP session.
- Step 1209 The IP edge device or the session relay sends a PADT packet to terminate the PPPoE session.
- Step 1202 and step 1203 are two independent operations, and there is no strict sequence.
- the PPPoE session does not include the authentication process and the IP session includes the Option 82 for DHCP authentication.
- the process of converting the IP session to the PPPoE session is as follows:
- Step 1301 Suppliant sends a DHCP Discover message to the session relay to start
- the AN adds the access loop identifier (such as the receiving port number) to the received PADI packet in the form of TAG, and concurrently give away. If the session relay is located on the AN, the access loop identifier is sent to the session relay by the other module except the session relay in the AN.
- the access loop identifier such as the receiving port number
- Step 1302 The DHCP Discover message triggers the session relay to broadcast the PADI message (the session ID is 0x0000).
- the access loop identifier of the IP session establishment process packet obtained by the session relay is inserted into the PADI packet in the format of the TAG. If the session relay is located after the AN, the access loop identifier is obtained from Option 82. If the session relay is located on the AN, the access loop identifier is obtained from the AN.
- Step 1303 The IP edge device checks the legality of the Suppliant according to the access loop identifier in the received PADI packet. After the validity check is performed, the IP edge device sends a PADO packet to the session relay, and the PADO packet is Ethernet. The source address in the net frame is filled with the MAC address of the IP edge device.
- Step 1304 After receiving the PAD04 message, the session relay receives a PADO message from multiple IP edge devices, and selects one of the multiple IP edge devices according to the content of the PADO message or the order of receiving the PADO message.
- the IP edge device is the object of the subsequent session and sends a unicast P ADR message to the selected IP edge device (where the session ID is still 0x0000).
- Step 1305 The IP edge device allocates a unique session process ID (that is, a specific session ID) to the PPPoE session, and carries a specific session ID in the PADS4 message replied to the session relay.
- a unique session process ID that is, a specific session ID
- Step 1306 The session relay sends a DHCP Offe message to Suppliant, and replaces the address of the DHCP server with the IP address of the node where the session relay is located in the DHCP Offer message.
- Step 1307 Enter the link establishment phase, that is, the session relay and the IP edge device perform LCP negotiation.
- Step 1308 Suppliant sends a DHCP Request message to the session relay to request an IP address.
- Step 1309 The session relay sends a Config-Request message to the IP edge device to request an IP address for the Suppliant.
- Step 1310 The IP edge device returns a Config-Nak packet to the session relay, and carries the first IP address allocated by the PPP process.
- the session relay and IP edge device can further perform NCP negotiation on user services.
- Step 1312 After the authentication and address assignment are successful, the data transmission phase is entered.
- the data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of a PPPoE session is transmitted between the session relay and the IP edge device.
- the session relay performs the conversion between the data packet in the form of the IPoE session and the data packet in the PPPoE session format.
- the session relay only needs to change the header and the tail of the data packet according to the PPP or the IP, and the payload portion does not need to be changed.
- Step 1313 When the data transmission phase needs to be ended, Suppliant sends a DHCP Release message to the session relay to request the release of the Suppliant IP address.
- Step 1314 The session relay and the IP edge device exchange Termination-Request messages and Termination-Ack messages to terminate the standard PPP session.
- Step 1315 When the standard PPP session is terminated, the Termination-Ack message triggers the IP edge device or the session relay to send the PADT4 message to terminate the PPPoE session.
- a PPP authentication phase between the session relay and the IP edge device may be performed.
- the session relay uses the legal user name and password set in advance on the session relay to obtain the authentication success through the IP edge device. .
- step 1306 occurs after step 1301 and ends before step 1309.
- the process of converting the IP session to the PPPoE session is as follows:
- Step 1401 Suppliant sends a DHCP Discover message to the session relay to start
- the authentication option ( auth-proto Option ) carried in the DHCP Discover message indicates that Chap authentication is used.
- Step 1402 The session relay and the IP edge device perform the interaction in the PPPoE discovery phase. For the specific process, refer to step 1302 - step 1305.
- Step 1403 Entering the link establishment phase, the session relay and the IP edge device perform LCP negotiation.
- Step 1404 The IP edge device sends a PPP LCP packet carrying the Chap-Challenge authentication information to the session relay.
- Step 1405 The session relay obtains Chap-Challenge from the PPP LCP message.
- the Chap-Challenge is sent to Suppliant in a DHCP Offer message.
- Step 1406 Suppliant sends a DHCP Request message carrying the Chap-Response through the authentication option to the session relay to request the local IP address from the session relay.
- Step 1407 The session relay obtains Chap-Response from the DHCP Request.
- the Chap-Response is sent to the IP edge device in the PPP LCP packet.
- Step 1408 The IP edge device authenticates the Suppliant according to the PPP LCP4 text, and when the authentication succeeds, the PPP LCP packet is sent to notify the session relay, and the Chap authentication succeeds.
- Step 1409 The session relay sends a Config-Request message to the IP edge device to request an IP address for the Suppliant.
- Step 1410 The IP edge device returns a Config-Nak packet to the session relay, and carries the first IP address allocated by the PPP process, and the session relay relays the first IP address allocated by the PPP process to the Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant, the second IP address corresponding to the first IP address assigned by the PPP process.
- Session relay and IP edge devices can further perform NCP negotiation on user services.
- Step 1411 The session relay returns a DHCP Ack message to the Suppliant, which carries the IP address assigned to the Suppliant, indicating that the Chap authentication succeeds.
- Step 1412 After the authentication and address assignment are successful, the data transmission phase is entered.
- the data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data in the form of a PPPoE session is transmitted between the session relay and the IP edge device.
- the session relay performs the conversion between the data in the form of IPoE session and the data in the form of PPPoE.
- the session relay only needs to change the header and the tail of the data according to PPP or IP, and the payload portion does not need to be Variety.
- Step 1413 When the data transmission phase needs to be ended, Suppliant sends a DHCP Release message to the session relay to request to release the IP address of the Suppliant.
- Step 1414 The session relay and the IP edge device exchange the Termination-Request message and the Termination-Ack message to terminate the standard PPP session.
- Step 1415 When the standard PPP session is terminated, the Termination-Ack message triggers the IP edge device or the session relay to send the PADT4 message to terminate the PPPoE session.
- the above two embodiments describe a conversion process from an IP session including DHCP authentication to a PPPoE session not including an authentication process, and a conversion process describing an IP session including DHCP authentication to a PPPoE session including a Chap authentication process, including DHCP authentication.
- the process of converting the IP session to the PPPoE session including the other authentication process is similar to the process of the foregoing two embodiments, and may be referred to for execution, and details are not described herein again.
- the PPPoE session includes the authentication process and the IP session includes EAP authentication.
- the process of converting the IP session to the PPPoE session is as follows:
- Step 1500 A Enter the EAP authentication startup phase. Suppliant initiates the creation of an IP session and initiates the authentication and address assignment process for the IP session.
- Step 1500B Enter the PPPoE discovery phase, that is, create a PPPoE session and a PPPoE session.
- the session relay initiates the PPPoE session creation process, and interacts with the IP edge device according to the obtained Suppliant MAC address to implement and complete the PPPoE discovery phase.
- Step 1500C Enter the link establishment phase of the PPPoE session, that is, the session relay and the IP edge device perform LCP negotiation.
- Step 1500D Enter the authentication phase of the PPPoE session and the EAP authentication phase of the IP session.
- Suppliant interacts with IP edge devices through session relays, which converts IP-based packets from Suppliant into PPP-based messages and sends them to IP edge devices, as well as PPP-based packets from IP edge devices.
- the text is converted to an IP-based message and sent to Suppliant, which authenticates the Suppliant by the IP edge device based on the received message and the locally saved information.
- Step 1500E After the authentication is successful, enter the address allocation phase. Suppliant
- the session relay replaces the Suppliant to request the IP edge device (or DHCP server) to obtain the IP address of the Suppliant.
- the session relay sends the first IP address assigned by the IP edge device (or DHCP server) to the Suppliant.
- the session relay assigns a second IP address to the Suppliant, the second IP address corresponding to the IP address assigned by the IP edge device (or DHCP server).
- Step 1500F Enter the data transmission phase.
- the data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of a PPPoE session is transmitted between the session relay and the IP edge device.
- Step 1500G After the data transmission is completed, Suppliant sends a DHCP Release message to the session relay to request to release the local IP address, and the IP session is terminated.
- Step 1500H Enter the link termination phase.
- the session relay interacts with the IP edge device to terminate the PPPoE session.
- Step 15001 The IP edge device or session relay sends a PADT4 message to terminate the PPPoE session.
- the process of converting the IP session to the PPPoE session is as follows:
- Step 1501 Suppliant sends an EAPoL start (EAPoL-St session relay t) message to the session relay to start EAP authentication.
- EAPoL-St session relay t indicates that the EAP authentication carried on the EAPoL is adopted.
- Step 1502 The session relay and the IP edge device perform the PPPoE discovery phase interaction. For the specific process, refer to step 1302 - step 1305.
- Step 1503 Enter the link establishment phase, and the session relay and the IP edge device perform LCP negotiation.
- Step 1504 Enter the authentication phase.
- the IP edge device sends the PPP LCP4 message carrying the Chap-Challenge authentication information to the session relay.
- Step 1505 The session relay sends an EAP Request/Identity message to the Suppliant, and the Suppliant returns an EAP-Response/Identity message, where the EAP Request/Identity message and the EAP-Response/Identity message are both carried in the EAPol. On the text.
- Step 1506 The session relay binds the PPPoE session ID to the EAP Identity.
- Step 1507 Session Relay converts Chap-Challenge to EAP-Request/MD5
- Step 1508 Suppliant returns the processed EAP-Response/MD5 Challenge to the session relay through the EAPoL 4 message.
- Step 1509 Session Relay converts the EAP-Response/MD5 Challenge to
- Chap-Response and convert the EAPoL packet into a PPP LCP packet, and send the PPP LCP4 packet carrying the Chap-Response to the IP edge device.
- Step 1510 The IP edge device performs authentication according to the received PPP LCP packet, and when the authentication succeeds, the PPP LCP packet is used to notify the session relay, and the Chap authentication succeeds.
- Step 1511 The session relay generates an EAP success and sends the EAP success to the Suppliant via the EAPoL message.
- Step 1512 Enter the address allocation phase. Suppliant sends a DHCP Discover message to the session relay to initiate the DHCP address allocation process.
- Step 1513 The DHCP Discover message triggers the session relay to send a Config-Request message to the IP edge device to request an IP address.
- Step 1514 The session relay returns a DHCP Offer message to the Suppliant in response to the DHCP Discover message.
- the session relay sends a Config-Request message and the session relay returns a DHCP Offer message to Suppliant, which is two independent operations, which can be performed simultaneously.
- Step 1515 Suppliant sends a DHCP Request message to the session relay to request an IP address.
- Step 1516 The IP edge device returns a Config-Nak packet to the session relay, and the PPP process is performed. The assigned first IP address is brought to the session relay.
- Step 1517 The session relay sends the IP address assigned by the PPP process to the Suppliant through the DHCP ACK message.
- the session relay assigns a second IP address to the Suppliant and carries it in the DHCP ACK4 message, the second IP address corresponding to the IP address assigned by the PPP process.
- IP edge devices and session relays can further make NCP negotiation for services.
- Step 1518 After the authentication and address assignment are successful, the data transmission phase is entered.
- the data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of a PPPoE session is transmitted between the session relay and the IP edge device.
- the session relay performs the conversion between the data packet in the form of the IPoE session and the data packet in the PPPoE session format.
- the session relay only needs to change the header and the tail of the data according to the PPP or the IP, and the payload portion does not need to be changed. .
- Step 1519 When the data transmission phase needs to be ended, Suppliant sends a DHCP Release message to the session relay to request the release of the Suppliant IP address.
- Step 1520 The session relay and the IP edge device exchange Termination-Request packets and Termination-Ack messages to terminate the standard PPP session.
- Step 1521 When the standard PPP session is terminated, the Termination-Ack message triggers the IP edge device or the session relay to send the PADT4 message to terminate the PPPoE session.
- the process of converting the IP session to the PPPoE session is as follows:
- Step 1601 Suppliant sends an EAPoL-St session relay t message to the session relay to start EAP authentication.
- Step 1602 The session relay and the IP edge device perform the PPPoE discovery phase interaction. For the specific process, refer to step 1302 - step 1305.
- Step 1603 Enter the link establishment phase, and the session relay and the IP edge device perform LCP negotiation.
- Step 1604 Enter the authentication phase.
- the IP edge device sends the PPP LCP carrying the EAP-Request/Identity to the session relay.
- Step 1605 The session relay converts the PPP LCP packet into an EAPoL packet, and carries the EAP-Request/Identity in the EAPoL packet and sends it to the Suppliant.
- Step 1606 Suppliant sends an EAPol message carrying EAP-Response/Identity to the session relay.
- Step 1607 The session relay converts the EAPoL packet into a PPP LCP packet, and in the PPP
- the LCP carries the EAP-Response/Identity and sends it to the IP edge device.
- Step 1608 Perform EAP Method negotiation and the process of authentication method exchange.
- the method includes: Between the Suppliant and the session relay, the EAPoL packet is used to carry the EAP, and the PPP LCP packet is used to carry the EAP interaction between the session relay and the IP edge device until the EAP authentication process ends.
- Step 1609 The IP edge device performs authentication according to the received PPP LCP packet, and when the authentication succeeds, the EAP success is encapsulated in the PPP LCP packet and sent to the session relay, and the session relay authentication is notified.
- Step 1610 The session relay converts the PPP LCP packet into an EAPoL packet, and sends the EAP success to the Suppliant in the 802. lx message.
- Step 1611 Enter the address allocation phase. Suppliant sends a DHCP Discover message to the session relay to initiate the DHCP address allocation process.
- Step 1612 The DHCP Discover message triggers the session relay to send a Config-Request message to the IP edge device to request an IP address.
- Step 1613 The session relay returns a DHCP Offer message to Suppliant in response to DHCP.
- Step 1614 Suppliant sends a DHCP Request message to the session relay to request an IP address.
- Step 1615 The IP edge device returns a Config-Nak packet to the session relay, and brings the IP address assigned by the PPP process to the session relay.
- Step 1616 The session relay sends the IP address assigned by the PPP process to the Suppliant through the DHCP ACK message. Or, the session relay assigns a second IP address to the Suppliant and carries In the DHCP ACK4 message, the second IP address corresponds to the IP address assigned by the PPP process.
- the IP edge device and the session relay can further perform other operations of NCP negotiation.
- Step 1617 After the authentication and address assignment are successful, the data transmission phase is entered.
- the data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of a PPPoE session is transmitted between the session relay and the IP edge device.
- the session relay performs the conversion between the data packet in the form of the IPoE session and the data packet in the PPPoE session format.
- the session relay only needs to change the header and the tail of the data according to the PPP or the IP, and the payload portion does not need to be changed. .
- Step 1618 When the data transmission phase needs to be ended, Suppliant sends a DHCP Release message to the session relay to request the release of the Suppliant IP address.
- Step 1619 The session relay and the IP edge device exchange the Termination-Request message and the Termination-Ack message to terminate the standard PPP session.
- Step 1620 When the standard PPP session is terminated, the Termination-Ack message triggers the IP edge device or the session relay to send a PADT4 message to terminate the PPPoE session.
- the above two embodiments describe a conversion process including an EAP-authenticated IP session carried on the EAPoL to a PPPoE session including a Chap authentication process, and an IP session including EAP authentication carried on the EAPoL to include an EAP authentication process.
- the conversion process of the PPPoE session, including the EAP-authenticated IP session to the PPPoE session is similar to the process of the foregoing two embodiments, and can be referred to for execution.
- the above embodiment describes the conversion process between the PPPoE session and the IP session.
- the conversion process between the PPPoA session and the IP session can be referred to for execution, and details are not described herein again.
- It is an authentication conversion, which enables data transmission between the UE and the network side that apply different protocols, and the UE does not interrupt the service during the roaming process of the network using different protocols, which can enhance the user experience.
- the embodiment of the present invention clearly describes a PPP session including four authentication modes and a conversion method of an IP session including five authentication modes, so that PPP sessions and IP sessions in various situations can be mutually converted, and data is maintained. transmission.
- the present invention can be implemented by hardware, or can be implemented by means of software plus necessary general hardware platform, and the technical solution of the present invention. It can be embodied in the form of a software product that can be stored in a non-volatile storage medium (may be
- a CD-ROM, a USB flash drive, a removable hard disk, etc. includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a session connection method, apparatus and system in communication system. The method, which is used for building the session connection from the communication terminal of point-to-point protocol PPP session to the communication terminal of internet protocol IP session, includes the following steps: communicating with the PPP session communication terminal through PPP session; communicating with the IP session communication terminal through IP session; transmitting the information of PPP session which should be handled by the IP session communication terminal to the IP session communication terminal in the form of IP session; and transmitting the information of IP session which should be handled by the PPP session communication terminal to the PPP session communication terminal in the form of PPP session. By the session relaying, the embodiment of the invention realizes the transformation especially the authentication transformation between the PPP session and the IP session, which achieves the data transmission between UE and network side which apply different protocols. And when UE roams among networks, which apply different protocols, the service of UE would not be interrupted. Thus the user experience is improved.
Description
一种通信系统会话连接方法、 装置和系统 本申请要求于 2007年 8月 6日提交中国专利局、 申请号为 200710143897.3、 发明名称为"一种会话转换的方法及装置"的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 A communication system session connection method, device and system The present application claims priority to a Chinese patent application filed on August 6, 2007 by the Chinese Patent Office, application number 200710143897.3, and the invention titled "a method and device for session conversion" The entire contents of which are incorporated herein by reference. Technical field
本发明涉及计算机及通信领域, 特别是涉及通信系统会话连接方 法、 装置和系统。 背景技术 The present invention relates to the field of computers and communications, and more particularly to communication system session connection methods, apparatus and systems. Background technique
目前的网络系统仅支持点到点协议 ( Point to Point Protocol , PPP ) 会话, 用户设备(User Equipment, UE )在数据链路层均基于 PPP接入 互联网, 并通过以太网 载点到点协议(PPP over Ethernet, PPPoE )连 接共享的以太网上的多个设备。 业内新提出一种互联网协议( Internet Protocol, IP )会话( session ), 用于网络对用户接入网络的管理 , 口计 费、 状态管理等。 IP会话是 UE与 IP边缘设备(IP Edge device )建立的一 条会话连接。 其中, IP边缘设备包括多种设备, 如宽带网络网关 ( Broadband Network Gateway , BNG ) 和宽带远程接入服务器 ( Broadband Remote Access Server, BRAS )等。 The current network system only supports Point to Point Protocol (PPP) sessions. User Equipment (UE) accesses the Internet based on PPP at the data link layer and carries the point-to-point protocol over Ethernet. PPP over Ethernet, PPPoE) connects multiple devices on a shared Ethernet. The industry has proposed an Internet Protocol (IP) session, which is used for network access management, port accounting, and state management. An IP session is a session connection established between a UE and an IP Edge device. The IP edge device includes multiple devices, such as a Broadband Network Gateway (BNG) and a Broadband Remote Access Server (BRAS).
随着无线接入网络和便携式 UE (如笔记本电脑和手机等) 的普及, UE初始归属的家乡地网络与漫游后归属的拜访地网络支持的协议会话 不同, 例如, 参见图 1所示, 点虚线表示 IP会话, 线虚线表示 PPP会话, 实线表示设备的连接关系, 家乡地网络仅支持 IP会话, 拜访地网络仅支 持 PPP会话, UE未漫游到拜访地网络时,其与家乡地网络中某个设备(如 服务供应商( Service Provider, SP ) ) 交互过程中, IP会话在家乡地网络 中的 IP边缘设备(如仅支持 IP会话的 BNG )上终结。 漫游后, UE必须与
拜访地网络中的 IP边缘设备 (如仅支持 PPP会话的 BRAS )进行 PPP会话, 以及通过拜访地网络中的 IP边缘设备和家乡地网络中的 IP边缘设备与所 述家乡地网络中某个设备进行交互。 或者, 例如, 参见图 2所示, 点虚 线表示 IP会话, 线虚线表示 PPP会话, 实线表示设备的连接关系, 家乡 地网络仅支持 PPP会话,拜访地网络仅支持 IP会话, 漫游前, UE基于 PPP 会话与家乡地网络中的 SP进行交互, PPP会话将在家乡地网络中的 BRAS上终结。 漫游后, UE必须与拜访地网络中的 BNG进行 IP会话, 以 及通过拜访地网络中的 BNG和家乡地网络中的 BRAS与家乡地网络中 SP 进行交互。 With the popularity of wireless access networks and portable UEs (such as laptops and mobile phones), the home network that the UE initially belongs to is different from the protocol session supported by the visited home network after roaming, for example, as shown in FIG. The dotted line indicates the IP session, the dotted line indicates the PPP session, the solid line indicates the connection relationship of the device, the home network only supports the IP session, and the visited network only supports the PPP session. When the UE does not roam to the visited network, it and the home network During the interaction of a device (such as a Service Provider (SP)), the IP session ends on an IP edge device (such as a BNG that only supports IP sessions) in the home network. After roaming, the UE must IP edge devices (such as BRASs that only support PPP sessions) in the visited network perform PPP sessions, and through IP edge devices in the visited network and IP edge devices in the home network and a device in the home network Interact. Or, for example, as shown in FIG. 2, the dotted line indicates the IP session, the dotted line indicates the PPP session, the solid line indicates the connection relationship of the device, the home network only supports the PPP session, and the visited network only supports the IP session. Before roaming, the UE Based on the PPP session interacting with the SP in the home network, the PPP session will terminate on the BRAS in the home network. After roaming, the UE must perform an IP session with the BNG in the visited network, and interact with the SP in the home network through the BNG in the visited network and the BRAS in the home network.
由于 IP会话是最近刚提出的一种会话,网络侧设备与 UE的更新速度 可能不一致。 例如, 参见图 3所示, 基于 PPP的 UE需要通过其所在的用 户驻地网( Customer Premises Network, CPN )中的住宅网关( Residential Gateway, RG )与仅支持 IP会话的拜访地网络( Access Network )连接。 或者例如, 参见图 4所示, 基于 IP的 UE需要通过其所在的 CPN中的 RG登 录仅支持 PPP会话的拜访地网络。 Since the IP session is a kind of session that has just been proposed recently, the update speed of the network side device and the UE may be inconsistent. For example, as shown in FIG. 3, a PPP-based UE needs to pass through a Residential Gateway (RG) in a Customer Premises Network (CPN) and an Access Network that supports only IP sessions. connection. Or, for example, as shown in FIG. 4, the IP-based UE needs to log in only the visited network of the PPP session through the RG in the CPN in which it is located.
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题: 在上述不同的场景中, 均需要实现 PPP会话与 IP会话的相互转换, 现有 技术中尚未提出有效的解决方案, 尤其是 PPP会话与 IP会话之间的认证 转换问题亟待解决。 发明内容 In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art: In the above different scenarios, the mutual conversion between the PPP session and the IP session needs to be implemented, and an effective solution has not been proposed in the prior art, especially It is an issue of authentication conversion between a PPP session and an IP session that needs to be resolved. Summary of the invention
本发明实施例提供一种通信系统会话连接方法、 装置和系统, 用于 实现 PPP会话与 IP会话之间的转换。 Embodiments of the present invention provide a communication system session connection method, apparatus, and system, which are used to implement conversion between a PPP session and an IP session.
本发明的实施例提供一种通信系统会话连接方法 , 该方法用于建立 点到点协议 PPP会话通信对端到互联网协议 IP会话通信对端的会话连 接, 该方法包括如下步骤: An embodiment of the present invention provides a communication system session connection method, which is used to establish a session connection of a point-to-point protocol PPP session communication peer to an Internet Protocol IP session communication peer, and the method includes the following steps:
通过 PPP会话与 PPP会话通信对端进行会话通信;
通过 IP会话与 IP会话通信对端进行会话通信; 以及 将 PPP会话中需要由 IP会话通信对端处理的信息以 IP会话形式转发 给 IP会话通信对端 , 将 IP会话中需要由 PPP会话通信对端处理的信息以 PPP会话形式转发给 PPP会话通信对端。本发明的实施例还提供一种中继 装置, 包括: Performing session communication with the PPP session communication peer through the PPP session; Communicate with the IP session communication peer through the IP session; and forward the information that needs to be processed by the IP session communication peer in the PPP session to the IP session communication peer in the form of an IP session, and the IP session needs to be communicated by the PPP session. The information processed by the terminal is forwarded to the PPP session communication peer in the form of a PPP session. An embodiment of the present invention further provides a relay device, including:
点到点协议 PPP会话接口单元,用于与 PPP会话通信对端交互点到点 协议 PPP会话; Point-to-point protocol PPP session interface unit, used to communicate with the PPP session peer-to-peer point-to-point protocol PPP session;
互联网协议 IP会话接口单元, 用于与 IP会话通信对端交互 IP会话; 会话转换单元, 用于将 ppp会话中需要由 IP会话通信对端处理的信 息以 IP会话形式发送给 IP会话通信对端,将 IP会话中需要由 PPP会话通信 对端处理的信息以 PPP会话形式发送给 PPP会话通信对端。 The Internet Protocol IP session interface unit is configured to exchange IP sessions with the IP session communication peer; the session conversion unit is configured to send the information that needs to be processed by the IP session communication peer in the ppp session to the IP session communication peer in the form of an IP session. The information that needs to be processed by the PPP session communication peer in the IP session is sent to the PPP session communication peer in the form of a PPP session.
本发明的实施例还提供了一种通信系统 , 所述通信系统包括中继装 置, 该中继装置包括: An embodiment of the present invention further provides a communication system, where the communication system includes a relay device, and the relay device includes:
点到点协议 PPP会话接口单元,用于与 PPP会话通信对端交互点到点 协议 PPP会话; Point-to-point protocol PPP session interface unit, used to communicate with the PPP session peer-to-peer point-to-point protocol PPP session;
互联网协议 IP会话接口单元, 用于与 IP会话通信对端交互 IP会话; 会话转换单元, 用于将 ppp会话中需要由 IP会话通信对端处理的信 息以 IP会话形式发送给 IP会话通信对端,将 IP会话中需要由 PPP会话通信 对端处理的信息以 PPP会话形式发送给 PPP会话通信对端。 The Internet Protocol IP session interface unit is configured to exchange IP sessions with the IP session communication peer; the session conversion unit is configured to send the information that needs to be processed by the IP session communication peer in the ppp session to the IP session communication peer in the form of an IP session. The information that needs to be processed by the PPP session communication peer in the IP session is sent to the PPP session communication peer in the form of a PPP session.
本发明的实施例还提供了一种计算机可读介质, 该计算机可读介质 具有计算机可执行指令, 用于执行如下步骤: Embodiments of the present invention also provide a computer readable medium having computer executable instructions for performing the following steps:
通过 PPP会话与 PPP会话通信对端进行会话通信; Performing session communication with the PPP session communication peer through the PPP session;
通过 IP会话与 IP会话通信对端进行会话通信; 以及 Session communication with the IP session communication peer through the IP session;
将 PPP会话中需要由 IP会话通信对端处理的信息以 IP会话形式转发 给 IP会话通信对端, 将 IP会话中需要由 PPP会话通信对端处理的信息以 PPP会话形式转发给 PPP会话通信对端。
是认证转换, 使应用不同协议的 UE和网络侧之间实现数据传输, 以及 UE在应用不同协议的网络之漫游过程中,其业务不中断,可增强用户体 验。 附图说明 The information that needs to be processed by the IP session communication peer in the PPP session is forwarded to the IP session communication peer in the form of an IP session, and the information that needs to be processed by the PPP session communication peer in the IP session is forwarded to the PPP session communication pair in the form of a PPP session. end. It is an authentication conversion, which enables data transmission between the UE and the network side that apply different protocols, and the UE does not interrupt the service during the roaming process of the network using different protocols, which can enhance the user experience. DRAWINGS
图 1和图 2为现有技术中在 UE漫游情况下的网络结构图; 1 and 2 are network structure diagrams in the case of UE roaming in the prior art;
图 3和图 4为现有技术中在 UE非漫游情况下的网络结构图; 图 5A为本发明实施例中系统的结构图; 3 and FIG. 4 are network structure diagrams in the case where the UE is not roaming in the prior art; FIG. 5A is a structural diagram of the system in the embodiment of the present invention;
图 5B为本发明实施例中会话中继的结构图; 5B is a structural diagram of session relay in an embodiment of the present invention;
图 6为本发明实施例中 PPP会话到 IP会话转换的主要方法流程图; 图 7为本发明实施例中 PPP会话不包括认证过程及 IP会话包括利用 Option 82进行 DHCP认证时, PPP会话到 IP会话转换的方法流程图; 图 8为本发明实施例中 PPP会话包括 CHAP认证及 IP会话包括支持 CHAP认证的 DHCP认证时, PPP会话到 IP会话转换的方法流程图; 图 9 A为本发明实施例中 PPP会话包括认证过程及 IP会话包括 EAP认 证时 , PPP会话到 IP会话转换的方法流程图; FIG. 6 is a flowchart of a main method for converting a PPP session to an IP session according to an embodiment of the present invention; FIG. 7 is a PPP session to an IP when a PPP session does not include an authentication process and an IP session includes using Option 82 for DHCP authentication according to an embodiment of the present invention; FIG. 8 is a flowchart of a method for converting a PPP session to an IP session when a PPP session includes CHAP authentication and an IP session includes DHCP authentication supporting CHAP authentication according to an embodiment of the present invention; FIG. 9 is a flowchart of the present invention; In the example, the PPP session includes an authentication process and a flow chart of a method for converting a PPP session to an IP session when the IP session includes EAP authentication;
图 9B为本发明实施例中 PPP会话包括 CHAP认证及 IP会话包括承载 在 PAN A上的 EAP认证时, PPP会话到 IP会话转换的方法流程图; 9B is a flowchart of a method for converting a PPP session to an IP session when a PPP session includes CHAP authentication and an IP session includes EAP authentication on PAN A according to an embodiment of the present invention;
图 10为本发明实施例中 PPP会话包括 EAP认证及 IP会话包括承载在 PAN A上的 EAP认证时, PPP会话到 IP会话转换的方法流程图; 10 is a flowchart of a method for converting a PPP session to an IP session when a PPP session includes EAP authentication and an IP session includes EAP authentication carried on PAN A according to an embodiment of the present invention;
图 11为本发明实施例中 PPP会话包括 EAP认证及 IP会话包括支持 EAP认证的 DHCP认证时, PPP会话到 IP会话转换的方法流程图; 11 is a flowchart of a method for converting a PPP session to an IP session when a PPP session includes EAP authentication and an IP session includes DHCP authentication supporting EAP authentication according to an embodiment of the present invention;
图 12为本发明实施例中 IP会话到 PPP会话转换的主要方法流程图; Option 82进行 DHCP认证时, IP会话到 PPP会话转换的方法流程图; 图 14为本发明实施例中 PPP会话包括 CHAP认证及 IP会话包括支持 CHAP认证的 DHCP认证时, IP会话到 PPP会话转换的方法流程图;
图 15 A为本发明实施例中 PPP会话包括认证过程及 IP会话包括 EAP 认证时, IP会话到 PPP会话转换的方法流程图; 在 EAPoL上的 EAP认证时, IP会话到 PPP会话转换的方法流程图; FIG. 12 is a flowchart of a method for converting an IP session to a PPP session according to an embodiment of the present invention; FIG. 14 is a flowchart of a method for converting an IP session to a PPP session when the DHCP is configured by the Option 82; FIG. 14 is a PPP session including a CHAP in the embodiment of the present invention; A flowchart of a method for converting an IP session to a PPP session when the authentication and IP session include DHCP authentication supporting CHAP authentication; 15A is a flowchart of a method for converting an IP session to a PPP session when a PPP session includes an authentication process and an IP session includes an EAP authentication according to an embodiment of the present invention; a method for converting an IP session to a PPP session during EAP authentication on the EAPoL Figure
图 16为本发明实施例中 PPP会话包括 EAP认证及 IP会话包括承载在 16 is a PPP session including EAP authentication and an IP session, including the bearer in the embodiment of the present invention;
E APoL上的 E AP认证时, IP会话到 PPP会话转换的方法流程图。 具体实施方式 到 IP会话的转换过程中, 将 PPP会话网络中的信息发送给 IP会话网络中 的设备, 以创建 IP会话, 实现数据在 PPP会话网络与 IP会话网络之间的 传输。 或者, 在 IP会话到 PPP会话的转换过程中, 将 IP会话网络中的信 息发送给 PPP会话网络中的设备, 以创建 PPP会话, 实现数据在 PPP会话 网络与 IP会话网络之间的传输。 Flowchart of the method of IP session to PPP session conversion when E AP authentication on E APoL. In the process of converting the IP session, the information in the PPP session network is sent to the device in the IP session network to create an IP session, and the data is transmitted between the PPP session network and the IP session network. Or, in the process of converting the IP session to the PPP session, the information in the IP session network is sent to the device in the PPP session network to create a PPP session, and the data is transmitted between the PPP session network and the IP session network.
本实施例中的 PPP会话是一种广义的 PPP会话, 包括 PPPoE会话和异 步传输模式承载点到点协议(PPP over ATM, PPPoA )会话, 本实施例 以 PPPoE会话为例进行详细说明。 The PPP session in this embodiment is a generalized PPP session, which includes a PPPoE session and a PPP over ATM (PPPoA) session. This embodiment uses a PPPoE session as an example for detailed description.
PPPoE会话到 IP会话的基本转换过程包括( 1 )会话建立阶段: PPPoE 会话建立过程到 IP会话建立过程的转换; 其中, PPPoE会话建立过程包 括 PPPoE发现过程、 链路建立过程、 PPP认证过程和 NCP协商 (主要指 地址分配)过程; IP会话建立过程包括 DHCP认证和地址分配。 (2 )会 话数据传送阶段: PPPoE会话数据传送到 IP会话数据传送的转换。 (3 ) 会话终止阶段: PPPoE会话终止过程到 IP会话终止过程的转换; 其中, PPPoE会话终止过程包括链路终止过程、 PPPoE终止过程。 The basic conversion process of the PPPoE session to the IP session includes: (1) session establishment phase: conversion from the PPPoE session establishment process to the IP session establishment process; wherein the PPPoE session establishment process includes a PPPoE discovery process, a link establishment process, a PPP authentication process, and an NCP Negotiation (mainly refers to address allocation) process; IP session establishment process includes DHCP authentication and address allocation. (2) Session data transfer phase: Conversion of PPPoE session data transfer to IP session data transfer. (3) Session termination phase: The transition from the PPPoE session termination process to the IP session termination process; wherein the PPPoE session termination process includes a link termination process and a PPPoE termination process.
IP会话到 PPPoE会话的基本转换过程包括( 1 )会话建立阶段: IP会 话建立过程到 PPPoE会话建立过程的转换; 其中, PPPoE会话建立过程 包括 PPPoE发现过程、 链路建立过程、 PPP认证过程和 NCP协商 (主要
指地址分配) 过程; IP会话建立过程包括 DHCP认证和地址分配。 (2 ) 会话数据传送阶段: IP会话数据传送到 PPPoE会话数据传送的转换。 ( 3 ) 会话终止阶段: IP会话终止过程到 PPPoE会话终止过程的转换; 其中, PPPoE会话终止过程包括链路终止过程、 PPPoE终止过程。 The basic conversion process from IP session to PPPoE session includes: (1) session establishment phase: conversion from IP session establishment process to PPPoE session establishment process; wherein PPPoE session establishment process includes PPPoE discovery process, link establishment process, PPP authentication process, and NCP Negotiation Refers to the address assignment process; the IP session establishment process includes DHCP authentication and address assignment. (2) Session data transfer phase: Conversion of IP session data transfer to PPPoE session data transfer. (3) Session termination phase: transition from the IP session termination process to the PPPoE session termination process; wherein the PPPoE session termination process includes a link termination process and a PPPoE termination process.
本发明实施例中的中间模块具体为会话中继, 会话中继可以是一种 物理设备实体, 也可以是一种逻辑设备, 存在于其它设备中。 The intermediate module in the embodiment of the present invention is specifically a session relay, and the session relay may be a physical device entity or a logical device and exists in other devices.
本实施例中, PPPoE会话过程可以不包括认证过程, 或者包括密码 认证协议 ( Password Authentication Protocol, PAP )认证、挑战握手认证 协议 ( Challenge-Handshake Authentication Protocol, CHAP )认证或可扩 展认证协议( Extensible Authentication Protocol, EAP )认证等。 IP会话 过程可以不包括 EAP认证, 也可以包括 EAP认证。 IP会话不包括 EAP认 证时, IP会话过程包括采用 82选项( Option )或支持 PAP/CHAP模式的动 态主机配置协议 ( Dynamic Host Configuration Protocol, DHCP )认证。 IP会话包括 EAP认证时, EAP认证包括承载在网络接入认证承载协议 ( PANA )上的 EAP认证、承载在 EAP承载在局域网上的协议 ( EAP over LAN, EAPoL )上的 EAP认证或支持 EAP模式的 DHCP认证等。 综上, PPPoE会话包括四种认证方式, IP会话包括五种认证方式, PPPoE会话 的四种认证方式均可以与 IP会话的五种认证方式进行相互转换。 In this embodiment, the PPPoE session process may not include an authentication process, or includes a Password Authentication Protocol (PAP) authentication, a Challenge-Handshake Authentication Protocol (CHAP) authentication, or an Extensible Authentication Protocol (Extensible Authentication). Protocol, EAP) authentication, etc. The IP session process may not include EAP authentication or EAP authentication. When the IP session does not include EAP authentication, the IP session process includes the Option 82 option or the Dynamic Host Configuration Protocol (DHCP) authentication that supports the PAP/CHAP mode. When an IP session includes EAP authentication, the EAP authentication includes EAP authentication carried on the Network Access Authentication Bearer Protocol (PANA), EAP authentication on the EAP over LAN (EAPoL) carried over the EAP, or EAP mode. DHCP authentication, etc. In summary, the PPPoE session includes four authentication modes, and the IP session includes five authentication modes. The four authentication modes of the PPPoE session can be mutually converted with the five authentication modes of the IP session.
参见图 5A, 本实施例中的系统包括用户侧的会话通信对端(或称为 申请者( Suppliant ) )、 会话中继、 网络侧的会话通信对端、 认证者、 认 证服务器和 DHCP服务器。 Referring to FIG. 5A, the system in this embodiment includes a session communication peer (or Applicant) on the user side, a session relay, a session communication peer on the network side, an authenticator, an authentication server, and a DHCP server.
其中,用户侧或网络侧的会话通信对端既可以是 PPP会话通信对端, 也可以是 IP会话通信对端。 The session communication peer end on the user side or the network side may be a PPP session communication peer end or an IP session communication peer end.
网络侧的会话通信对端用于通过会话中继与用户侧的会话通信对 端交互会话。 The session communication peer end on the network side is used to communicate with the user side through the session relay to communicate with the peer end session.
用户侧的会话通信对端可以位于 UE或 RG上 , 作为用户侧的会话通 信对端用于与会话中继进行交互, 以实现 PPPoE会话 (或 IP会话), 也作
为认证的申请方, 与会话中继进行交互, 实现接入认证。 本实施例中以The session communication peer end of the user side may be located on the UE or the RG, and the session communication peer end as the user side is used to interact with the session relay to implement the PPPoE session (or IP session), For the authenticated applicant, it interacts with the session relay to implement access authentication. In this embodiment,
Suppliant位于 UE上为例进行说明。 Suppliant is located on the UE as an example.
会话中继,用于与 Suppliant进行交互以实现 PPPoE会话 (或 IP会话), 以及根据 Suppliant的 MAC地址与网络侧的会话通信对端进行交互以实 现 IP会话(或 PPPoE会话), 并进行 PPPoE会话与 IP会话之间的转换, 即 从 PPPoE会话中得到需要实现 IP会话时的信息并发送给 IP会话中连接的 设备 , 以及从 IP会话中得到需要实现 PPPoE会话时的信息并发送给 PPPoE会话中连接的设备。 其中, 由会话中继代替 Suppliant获得网络侧 的会话通信对端发送的第一 IP地址, 会话中继可以将该第一 IP地址发送 给 Suppliant。 或者, 会话中继为 Suppliant分配第二 IP地址, 并建立第二 IP地址与第一 IP地址的对应关系, 当收到 Suppliant发送的报文时, 将报 文中的第二 IP地址转换为对应的第一 IP地址并发送给网络侧的会话通信 对端 , 以及将网络侧的会话通信对端发送的报文中的第一 IP地址转换为 对应的第二 IP地址并发送给 Suppliant。 Session relay, used to interact with Suppliant to implement a PPPoE session (or IP session), and interact with the network side session communication peer according to the Suppliant MAC address to implement an IP session (or PPPoE session) and perform a PPPoE session The conversion between the IP session and the PPPoE session is obtained from the PPPoE session and sent to the connected device in the IP session, and the information about the PPPoE session needs to be obtained from the IP session and sent to the PPPoE session. Connected device. The session relay replaces the Suppliant to obtain the first IP address sent by the peer of the session communication on the network side, and the session relay can send the first IP address to the Suppliant. Alternatively, the session relay allocates a second IP address to the Suppliant, and establishes a correspondence between the second IP address and the first IP address. When receiving the packet sent by the Suppliant, the second IP address in the packet is converted into a corresponding The first IP address is sent to the session communication peer on the network side, and the first IP address in the packet sent by the session communication peer on the network side is converted into a corresponding second IP address and sent to the Suppliant.
认证者用于会话的认证过程, 通过网络侧的会话通信对端与会话中 继进行交互, 以及与认证服务器进行认证交互。 网络侧的会话通信对端 和认证者可均位于 AN或 IP边缘设备等物理实体上,或者, 网络侧的会话 通信对端和认证者位于不同的物理实体上, 此时, 网络侧的会话通信对 端比认证者靠近 Suppliant。 本实施例以网络侧的会话通信对端和认证者 均位于 IP边缘设备上为例进行说明。 在 DHCP认证中, 认证者为 DHCP 认证者;在承载在 PANA的 EAP认证中,认证者为 PAN A认证代理( PAA )。 认证服务器用于根据认证者发送的认证信息对 Suppliant进行认证。 DHCP服务器用于分配 IP地址。由网络侧的会话通信对端对 DHCP服务器 进行选择并与其交互。 网络侧的会话通信对端、 认证者、 认证服务器和 DHCP服务器之间的交互过程为现有技术, 在此不作详述。 The authenticator uses the authentication process of the session, interacts with the session relay through the session communication peer on the network side, and performs authentication interaction with the authentication server. The session communication peers and the authenticators on the network side may both be located on physical entities such as ANs or IP edge devices, or the session communication peers on the network side and the authenticators are located on different physical entities. At this time, session communication on the network side The opposite end is closer to the Suppliant than the certifier. In this embodiment, the session communication peer end and the authenticator on the network side are all located on the IP edge device as an example. In DHCP authentication, the authenticator is a DHCP authenticator; in the EAP authentication carried in PANA, the authenticator is a PAN A authentication proxy (PAA). The authentication server is used to authenticate Suppliant based on the authentication information sent by the authenticator. The DHCP server is used to assign an IP address. The DHCP server is selected and interacted with by the session communication peer on the network side. The interaction process between the session communication peer, the authenticator, the authentication server, and the DHCP server on the network side is prior art and will not be described in detail herein.
会话中继可以是一种逻辑实体, 存在于其它设备中, 其它设备可以 有多种, 如 RG、 接入节点 (Access Node, AN )、 IP边缘设备等。 系统
中的哪个设备为 IP会话与 PPPoE会话的转折点, 会话中继就在哪个设备 上。如 Suppliant到 RG应用 PPPoE会话, RG到 AN及以上设备应用 IP会话, 则会话中继位于 RG上; 如 Suppliant到 AN应用 PPPoE会话, AN到 IP边缘 设备及以上设备应用 IP会话, 则会话中继位于 AN上; 如 Suppliant到 IP边 缘设备应用 PPPoE会话, IP边缘设备到 SP或其它 IP边缘设备应用 IP会话, 则会话中继位于 IP边缘设备上 , 会话中继与 IP边缘设备的交互即为会话 中继与 IP边缘设备内部的其它模块之间的交互。 The session relay can be a logical entity and exists in other devices. There can be multiple other devices, such as an RG, an access node (AN), an IP edge device, and the like. System Which device is the turning point of the IP session and the PPPoE session, and which device the session relay is on. If the Suppliant to RG applies the PPPoE session, the RG to the AN and the above device apply the IP session, then the session relay is located on the RG; if the Suppliant to the AN applies the PPPoE session, the AN to the IP edge device and the above device applies the IP session, the session relay On the AN; if the Suppliant to the IP edge device applies the PPPoE session, the IP edge device applies the IP session to the SP or other IP edge device, the session relay is located on the IP edge device, and the interaction between the session relay and the IP edge device is the session. The interaction between the trunk and other modules inside the IP edge device.
会话中继也可以是一种物理实体 ,独立存在于 UE与 IP边缘设备之间 的任一位置。 系统中的哪两个设备为 IP会话与 PPPoE会话的转折点, 会 话中继就在哪个设备之前。 如 Suppliant到 RG应用 PPPoE会话, AN到 IP 边缘设备及以上设备应用 IP会话, 则会话中继在 RG与 AN之间; 如 Suppliant到 AN应用 PPPoE会话, IP边缘设备到 SP应用 IP会话, 则会话中 继在 AN与 IP边缘设备之间。 The session relay can also be a physical entity that exists independently at any location between the UE and the IP edge device. Which two devices in the system are the turning point of the IP session and the PPPoE session, and the session is in front of which device. If the Suppliant to RG applies the PPPoE session, the AN to the IP edge device and the above device apply the IP session, the session relay is between the RG and the AN; if the Suppliant to the AN applies the PPPoE session, the IP edge device to the SP applies the IP session, then the session The trunk is between the AN and the IP edge device.
参见图 5B , 本发明实施例中的会话中继包括 PPP会话接口单元 11、 IP会话接口单元 12和会话转换单元 13。 Referring to FIG. 5B, the session relay in the embodiment of the present invention includes a PPP session interface unit 11, an IP session interface unit 12, and a session conversion unit 13.
PPP会话接口单元 11 , 用于与 PPP会话通信对端交互点到点协议 PPPoE会话。 当与 Suppliant交互 PPPoE会话时, Suppliant为 PPP会话通信 对端; 当与网络侧交互 PPPoE会话时, 网络侧包括 PPP会话通信对端。 The PPP session interface unit 11 is configured to exchange a point-to-point protocol PPPoE session with the PPP session communication peer. When interacting with Suppliant in a PPPoE session, Suppliant is the PPP session communication peer; when interacting with the network side PPPoE session, the network side includes the PPP session communication peer.
IP会话接口单元 12 , 用于与 IP会话通信对端交互 IP会话。 当与 Suppliant交互 IP会话时, Suppliant为 IP会话通信对端; 当与网络侧交互 IP 会话时, 网络侧包括 IP会话通信对端。 The IP session interface unit 12 is configured to exchange an IP session with the IP session communication peer. When interacting with Suppliant IP session, Suppliant is the IP session communication peer; when interacting with the network side IP session, the network side includes the IP session communication peer.
会话转换单元 13 , 用于将 PPPoE会话中需要由 IP会话通信对端处理 的信息以 IP会话形式发送给 IP会话通信对端 ,将 IP会话中需要由 PPP会话 通信对端处理的信息以 PPPoE会话形式发送给 PPP会话通信对端。 The session conversion unit 13 is configured to send the information that needs to be processed by the IP session communication peer in the PPPoE session to the IP session communication peer in the form of an IP session, and the PPPoE session is used in the IP session to be processed by the PPP session communication peer. The form is sent to the PPP session communication peer.
会话中继包括认证中继 ( Authentication Relay, AR ), AR用于在会 话认证阶段中对 PPPoE会话和 IP会话进行认证转换; AR代理 Suppliant, 可以利用 Suppliant的 MAC地址标识与认证者间通过 IP会话 (或 PPP会
话), 最终完成用户认证或设备认证; 通常认证中继位于会话中继中, 认证中继也可和会话中继分离, 本实施例以认证中继位于会话中继中为 例进行说明。 The session relay includes an authentication relay (AR). The AR is used to perform authentication and conversion on the PPPoE session and the IP session in the session authentication phase. The AR proxy Suppliant can use the IP address of the Suppliant to identify the IP session with the authenticator. (or PPP will Then, the user authentication or the device authentication is finally completed. Generally, the authentication relay is located in the session relay, and the authentication relay is also separated from the session relay. In this embodiment, the authentication relay is located in the session relay as an example.
当会话中继存在于其它设备实体中时, PPP会话接口单元 11和 IP会 话接口单元 12即为其它设备实体内的接口单元。 When the session relay exists in other device entities, the PPP session interface unit 11 and the IP session interface unit 12 are interface units in other device entities.
PPPoE会话与 IP会话之间的转换过程包括 PPPoE会话到 IP会话的转 换和 IP会话到 PPPoE会话的转换。 参见图 6, PPPoE会话到 IP会话转换的 主要方法流程如下: The conversion process between the PPPoE session and the IP session includes the conversion of the PPPoE session to the IP session and the conversion of the IP session to the PPPoE session. Referring to Figure 6, the main method of PPPoE session to IP session conversion is as follows:
步骤 601 : Suppliant发起 PPPoE会话的创建过程, 并与会话中继进行 交互, 实现和完成 PPPoE发现阶段, 即创建 PPPoE会话。 Step 601: The Suppliant initiates a PPPoE session creation process and interacts with the session relay to implement and complete the PPPoE discovery phase, that is, to create a PPPoE session.
步骤 602:实现并完成链路建立阶段,及建立标准 PPP会话。 Suppliant 与会话中继进行链路控制协议 ( Link Control Protocol , LCP )协商。 Step 602: Implement and complete the link establishment phase, and establish a standard PPP session. Suppliant negotiates with the Session Relay for Link Control Protocol (LCP).
步骤 603:会话中继与 IP边缘设备进行交互,进入 IP会话的创建过程。 步骤 604: Suppliant发起地址分配过程, 由会话中继代替 Suppliant 通过 IP边缘设备向 DHCP服务器请求获得 Suppliant的 IP地址, 会话中继 通过 IP边缘设备获得 DHCP服务器分配的 IP地址, 以及将 DHCP服务器分 配的第一 IP地址发送给 Suppliant。 或者, 会话中继为 Suppliant分配一个 第二 IP地址, 该第二 IP地址与 DHCP服务器分配的第一 IP地址——对应。 Step 603: The session relay interacts with the IP edge device to enter the IP session creation process. Step 604: Suppliant initiates an address allocation process, and the session relay replaces Suppliant to request the DHCP server to obtain the IP address of the Suppliant through the IP edge device, and the session relay obtains the IP address assigned by the DHCP server through the IP edge device, and allocates the DHCP server. The first IP address is sent to Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant, the second IP address corresponding to the first IP address assigned by the DHCP server.
步骤 605: 进入数据传输阶段。 Suppliant与会话中继之间传输 PPPoE 形式的数据,会话中继与 IP边缘设备之间传输以太网承载 IP协议 ( IP over Ethernet, IPoE )形式的数据。 由会话中继对两种形式的数据进行转换。 Step 605: Enter the data transmission phase. The data in the form of PPPoE is transmitted between the Suppliant and the session relay, and the data in the form of IP over Ethernet (IPoE) is transmitted between the session relay and the IP edge device. Two forms of data are converted by session relay.
步骤 606: 数据传输完毕后, 进入 PPPoE会话终止阶段, 首先是链路 终止阶段。 Suppliant发起 PPPoE会话的终止过程, 并与会话中继交互以 终止标准 PPP会话。 Step 606: After the data transmission is completed, the PPPoE session termination phase is entered, and the first is the link termination phase. Suppliant initiates the termination of the PPPoE session and interacts with the session relay to terminate the standard PPP session.
步骤 607: Suppliant或会话中继发送 PPPoE激活发现终止 (PPPoE Step 607: Suppliant or Session Relay Send PPPoE Activation Discovery Termination (PPPoE
Active Discovery Terminate, PADT )才艮文, 以终止 PPPoE会话。 Active Discovery Terminate (PADT) is used to terminate the PPPoE session.
步骤 608: 会话中继通过 IP边缘设备向 DHCP服务器发送 DHCP释放
( DHCP Release )报文, 以请求 DHCP服务器释放 Suppliant的 IP地址, IP 会话终止。 Step 608: The session relay sends a DHCP release to the DHCP server through the IP edge device. (DHCP Release) message to request the DHCP server to release the IP address of the Suppliant, and the IP session is terminated.
其中, 步骤 602与步骤 603是两个独立的操作过程, 无严格的先后顺 序。 Step 602 and step 603 are two independent operations, and there is no strict sequence.
下面对 PPPoE会话到 IP会话的转换过程的几种典型实例进行详细描 述。 Several typical examples of the PPPoE session to IP session conversion process are described in detail below.
参见图 7 , PPPoE会话不包括认证过程及 IP会话包括利用 Option 82 进行 DHCP认证时, PPPoE会话到 IP会话的转换方法流程如下: Referring to Figure 7, the PPPoE session does not include the authentication process and the IP session includes the Option 82 for DHCP authentication. The PPPoE session to IP session conversion method is as follows:
步骤 701 : PPPoE发现阶段的第一步, 即 PPPoE激活发现初始阶段 ( PPPoE Active Discovery Initiation, PADI ), 发起 PPPoE会话的创建过 程并创建 PPPoE会话。 Suppliant以广播方式发送 PADI报文, 其中会话标 识(ID )采用默认会话 ID如 0x0000。 若会话中继位于 AN之后, 则 AN将 接入环路标识(如接收端口号)以 TAG (标签)的形式添加到收到的 PADI 才艮文中, 并发送。 若会话中继位于 AN上, 则由 AN中除会话中继以外的 其它模块将接入环路标识发送给会话中继。 其中, 会话中继至少在该步 骤获得 Suppliant的 MAC地址。 Step 701: The first step of the PPPoE discovery phase, that is, the PPPoE Active Discovery Initiation (PADI), initiates a PPPoE session creation process, and creates a PPPoE session. Suppliant broadcasts PADI messages in a broadcast, where the session identifier (ID) uses the default session ID such as 0x0000. If the session relay is behind the AN, the AN adds the access loop identifier (such as the receiving port number) to the received PADI packet in the form of a TAG (tag) and sends it. If the session relay is located on the AN, the access loop identifier is sent to the session relay by the other module except the session relay in the AN. The session relay obtains the Suppliant MAC address at least in this step.
步骤 702: 进入 IP会话创建过程, 包括 DHCP认证和地址分配过程。 收到 PADI报文的会话中继向多个 IP边缘设备发送动态主机配置协议的 发现(DHCP Discover )报文, 或者, 会话中继向一个 IP边缘设备发送 DHCP Discover报文 , 由该 IP边缘设备将 DHCP Discover报文发送给其它 的 IP边缘设备。 其中, 会话中继将获得的接入环路标识以 Option 82的格 式插入到该 DHCP Discover报文中。 其中, 会话中继若位于 AN之后, 则从 PADI TAG中获得接入环路标识, 会话中继若位于 AN上, 则从 AN 内部获得接入环路标识。 其中, 会话中继利用获得的 Suppliant的 MAC地 址向 IP边缘设备发送 DHCP Discover报文。 Step 702: Enter an IP session creation process, including a DHCP authentication and address allocation process. The session relay that receives the PADI packet sends a DHCP Discover message to the IP edge device, or the session relay sends a DHCP Discover message to an IP edge device. The IP edge device sends the DHCP Discover message to the IP edge device. Send DHCP Discover messages to other IP edge devices. The access loop identifier obtained by the session relay is inserted into the DHCP Discover message in the format of Option 82. If the session relay is located after the AN, the access loop identifier is obtained from the PADI TAG. If the session relay is located on the AN, the access loop identifier is obtained from the AN. The session relay sends a DHCP Discover message to the IP edge device by using the obtained Suppliant MAC address.
步骤 703: IP边缘设备将 DHCP Discover报文转发给多个 DHCP服务 器以选择 DHCP服务器, IP边缘设备根据获得的接入环路标识进行认证,
并在认证成功后, IP边缘设备向会话中继返回动态主机配置协议确认 ( DHCP Offer )报文, 表示认证成功并同意进行后续关于地址分配的操 作。选择 IP边缘设备和 DHCP服务器的方式有多种, 如第一个返回 DHCP Offer报文的 DHCP服务器被确定为 IP边缘设备的后续 IP会话的对象, 以 及第一个返回 DHCP Offer报文的 IP边缘设备被确定为会话中继的后续 IP 会话的对象。 Step 703: The IP edge device forwards the DHCP Discover message to multiple DHCP servers to select a DHCP server, and the IP edge device performs authentication according to the obtained access loop identifier. After the authentication succeeds, the IP edge device returns a dynamic host configuration protocol (DHCP Offer) message to the session relay, indicating that the authentication succeeds and agrees to perform subsequent operations on address allocation. There are several ways to select an IP edge device and a DHCP server. For example, the first DHCP server that returns a DHCP Offer message is determined to be the object of the subsequent IP session of the IP edge device, and the IP edge of the first DHCP Offer message is returned. The device is determined to be the object of a subsequent IP session for the session relay.
步骤 704 : 进入 PPPoE发现阶段的第二步, 即 PPPoE激活发现应答 ( PPPoE Active Discovery Offer, PADO ) 阶段。 会话中继响应 Suppliant 发送的 PADI报文, 即向 Suppliant发送 PADO报文, 在 PADO报文中, 以太 网帧中的源地址用会话中继的 MAC地址填充, 会话 ID仍用 0x0000填充。 Step 704: Enter the second step of the PPPoE discovery phase, that is, the PPPoE Active Discovery Offer (PADO) phase. The session relay responds to the PADI message sent by Suppliant, that is, sends a PADO message to Suppliant. In the PADO message, the source address in the Ethernet frame is filled with the MAC address of the session relay, and the session ID is still filled with 0x0000.
步骤 705: 进入 PPPoE发现阶段的第三步, 即 PPPoE激活发现请求 ( PPPoE Active Discovery Request, PADR ) 阶段。 Suppliant收到 PADO 报文后,如果收到多个会话中继的 PADO报文, 则依据 PADO报文的内容 或收到 PADO报文的时间顺序从多个会话中继中选择一个会话中继作为 后续会话的对象, 并向选择的会话中继发送单播的请求报文(即 PADR 才艮文 ) (其中会话 ID仍为 0x0000 )。 Step 705: Enter the third step of the PPPoE discovery phase, that is, the PPPoE Active Discovery Request (PADR) phase. After receiving the PADO message, Suppliant receives a PADO message from multiple session relays, and selects a session relay from multiple session relays according to the content of the PADO message or the time sequence of receiving the PADO message. The object of the subsequent session, and sends a unicast request message (that is, the PADR message) to the selected session relay (where the session ID is still 0x0000).
步骤 706: 进入 PPPoE发现阶段的最后一步, 即 PPPoE激活发现确认 ( PPPoE Active Discovery Session-confirmation, PADS )阶段。会话中继 收到 PADR报文后, 为 PPPoE会话分配一个唯一的会话进程 ID (本实施 例中称特定会话 ID ), 并向 Suppliant发送携带特定会话 ID的 PADS4艮文。 Step 706: Enter the final step of the PPPoE discovery phase, that is, the PPPoE Active Discovery Session-Confirmation (PADS) phase. After receiving the PADR packet, the session relay assigns a unique session process ID (referred to as a specific session ID in this embodiment) to the PPPoE session, and sends a PADS4 message carrying the specific session ID to Suppliant.
步骤 707: 进入链路建立阶段, 即创建标准 PPP会话。 Suppliant和会 话中继进行 LCP协商。 Step 707: Enter the link establishment phase, that is, create a standard PPP session. Suppliant and the session relay perform LCP negotiation.
步骤 708: 进入地址分配阶段。 Suppliant发送配置请求 ( Config-Request )报文给会话中继, 请求分配 IP地址(可表示为 IP@ )。 Step 708: Enter the address allocation phase. Suppliant sends a configuration request (Config-Request) message to the session relay, requesting the assignment of an IP address (which can be expressed as IP@).
Config-Request报文形如(0.0.0.0 ), 表示需要配置 IP地址。 The Config-Request packet is in the form of (0.0.0.0), indicating that an IP address needs to be configured.
步骤 709: 会话中继通过 IP边缘设备向选择的 DHCP服务器发送 DHCP请求( DHCP Request )报文 , 请求获得 Suppliant的第一 IP地址。
步骤 710 : DHCP服务器通过 IP边缘设备向会话中继发送 DHCP应答 ( DHCP Ack )报文, 其中 DHCP Ack报文携带分配给 Suppliant的第一 IP 地址。 Step 709: The session relay sends a DHCP Request message to the selected DHCP server through the IP edge device, and requests to obtain the first IP address of the Suppliant. Step 710: The DHCP server sends a DHCP Reply (DHCP Ack) message to the session relay through the IP edge device, where the DHCP Ack message carries the first IP address assigned to the Suppliant.
步骤 711 :会话中继向 Suppliant发送配置应答(Config-Nak)报文,将 DHCP服务器分配的第一 IP地址发送给 Suppliant。 或者, 会话中继为 Suppliant分配一个第二 IP地址,会话中继建立该第二 IP地址与 DHCP服务 器分配的第一 IP地址——对应关系。 Step 711: The session relay sends a configuration response (Config-Nak) message to the Suppliant, and sends the first IP address assigned by the DHCP server to the Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant, and the session relay establishes a correspondence between the second IP address and the first IP address assigned by the DHCP server.
其中, 会话中继发送 DHCP Request报文与会话中继为 Suppliant分配 一个第二 IP地址是两个独立的操作, 可同时进行。 The session relay sends a DHCP Request message and the session relay allocates a second IP address to the Suppliant. The two IP addresses are two independent operations, which can be performed simultaneously.
Suppliant和会话中继还可进一步进行 NCP协商中除地址分配以外的 操作, 如关于用户业务的配置参数的协商等。 有利于减少用户的操作。 Suppliant and session relay can further perform operations other than address allocation in NCP negotiation, such as negotiation of configuration parameters of user services. Helps reduce user operations.
步骤 712: 进入数据传输阶段。 Suppliant与会话中继之间传输 PPPoE 形式的数据, 会话中继与 IP边缘设备之间传输 IPoE形式的数据, 由会话 中继对数据形式进行转换 , 会话中继只需依据 PPPoE或 IPoE更改数据报 文的首部及尾部, 净荷部分不需要变更。 如, 需要从 PPPoE形式转换为 IPoE形式时, 从数据报文中删除 PPPoE首部及尾部; 如, 需要从 IPoE形 式转换为 PPPoE形式时, 在数据 4艮文中增加 PPPoE首部及尾部。 Step 712: Enter the data transmission phase. The data in the form of PPPoE is transmitted between the Suppliant and the session relay, and the data in the form of IPoE is transmitted between the session relay and the IP edge device, and the data format is converted by the session relay. The session relay only needs to change the datagram according to PPPoE or IPoE. The header and trailer of the text, the payload part does not need to be changed. For example, when you need to convert from PPPoE to IPoE, remove the PPPoE header and trailer from the data packet. For example, when you need to convert from IPoE to PPPoE, add PPPoE header and trailer to the data.
步骤 713: Suppliant和会话中继交互终止请求 ( Termination-Request ) 才艮文和终止应答 ( Termination- Ack )报文, 以终止链路 (即终止标准 PPP 会话)。 例如, 用户关机时, Suppliant发送 Termination-Request才艮文, 会 话中继发送 Termination- Ack报文。 用户欠费时, 会话中继发送 Termination-Request才艮文 , Suppliant发送 Termination- Ack才艮文。 Step 713: The Suppliant and the session relay terminate the request ( Termination-Request) and the Termination-Ack message to terminate the link (ie, terminate the standard PPP session). For example, when the user shuts down, Suppliant sends a Termination-Request message, and the session relay sends a Termination-Ack message. When the user owes a fee, the session relay sends a Termination-Request message, and Suppliant sends the Termination-Ack message.
步骤 714: Termination- Ack报文触发 Suppliant或会话中继发送 PPPoE 激活发现终止(PPPoE Active Discovery Terminate, PADT ) 4艮文, 以终 止 PPPoE会话。 即, 收到 Termination-Ack报文的装置发送 PADT报文。 Step 714: The Termination-Ack message triggers the Suppliant or the session relay to send a PPPoE Active Discovery Terminate (PADT) message to terminate the PPPoE session. That is, the device that receives the Termination-Ack message sends a PADT message.
步骤 715: 会话中继通过 IP边缘设备向 DHCP服务器发送 DHCP释放 ( DHCP Release )报文以请求释放 Suppliant的 IP地址 , 终止 IP会话。
其中, 步骤 702和步骤 703必须在步骤 701和 709之间完成。 Step 715: The session relay sends a DHCP Release (DHCP Release) message to the DHCP server through the IP edge device to request to release the IP address of the Suppliant, and terminate the IP session. Among them, step 702 and step 703 must be completed between steps 701 and 709.
在步骤 707和步骤 708之间,可增加认证阶段,进行 PAP认证或 CHAP 认证。 PAP认证为两次握手认证, 口令为明文。 PAP认证过程如下: 被 认证方发送用户名和口令到认证方, 认证方查看是否有此用户, 口令是 否正确, 然后发送相应的响应。 CHAP认证为三次握手认证, 口令为密 文(密钥)。 CHAP认证由认证方发送一些随机产生的报文并发送给被认 证方; 被认证方用自己的口令字通过信息 -摘要算法 5 ( Message-Digest Algorithm 5 , MD5 )算法进行加密, 并向认证方返回密文; 认证方用自 己保存的口令字及随机报文用 MD5算法加密, 比较二者的密文, 根据比 较结果返回相应的响应。 本实施例中 Suppliant采用任何用户名和密码, 会话中继均默认 Suppliant认证成功。 Between step 707 and step 708, an authentication phase may be added to perform PAP authentication or CHAP authentication. The PAP authentication is a two-way handshake authentication, and the password is plain text. The PAP authentication process is as follows: The authenticated party sends the username and password to the authenticator, and the authenticator checks to see if the user has the password, and then sends the corresponding response. CHAP authentication is three-way handshake authentication, and the password is ciphertext (key). CHAP authentication is performed by the authenticator to send some randomly generated packets to the authenticated party. The authenticated party encrypts with its own password through the Message-Digest Algorithm 5 (MD5) algorithm and authenticates to the authenticator. Returning the ciphertext; the authenticator encrypts the password and the random message saved by itself with the MD5 algorithm, compares the ciphertext of the two, and returns the corresponding response according to the comparison result. In this embodiment, Suppliant uses any username and password, and session relays default to Suppliant authentication.
本实施例描述了不包括认证过程的 PPPoE会话到包括 DHCP认证的 IP会话的转换过程, 不包括认证过程的 PPPoE会话到包括其它认证方式 的 IP会话的转换过程与本实施例的流程类似, 可参照执行, 在此不再赘 述。 This embodiment describes a process of converting a PPPoE session that does not include an authentication process to an IP session that includes DHCP authentication. The process of converting a PPPoE session that does not include the authentication process to an IP session that includes other authentication modes is similar to the process of this embodiment. Refer to the implementation, and will not repeat them here.
DHCP认证时 , PPPoE会话到 IP会话的转换方法参见图 8所示, 具体流程 如下: For DHCP authentication, the method for converting a PPPoE session to an IP session is shown in Figure 8. The specific process is as follows:
步骤 801: Suppliant和会话中继交互以执行 PPPoE发现阶段处理过 程, 具体过程参见步骤 701、 704、 705和 706。 Step 801: The Suppliant interacts with the session relay to perform the PPPoE discovery phase processing process. For details, refer to steps 701, 704, 705, and 706.
步骤 802:进入链路建立阶段,即 Suppliant和会话中继进行 LCP协商。 步骤 803: 进入 IP会话创建阶段。 收到 PADI报文的会话中继向 IP边 缘设备和 DHCP服务器发送 DHCP Discover报文, 其中 DHCP Discover报 文中携带的认证选项 ( auth-proto Option )表明采用 Chap认证。 Step 802: Enter the link establishment phase, that is, Suppliant and the session relay perform LCP negotiation. Step 803: Enter the IP session creation phase. The session relay that receives the PADI packet sends a DHCP Discover message to the IP edge device and the DHCP server. The authentication option ( auth-proto Option ) carried in the DHCP Discover message indicates that Chap authentication is used.
步骤 804: IP边缘设备返回 DHCP Offer报文给会话中继, 在 DHCP Step 804: The IP edge device returns a DHCP Offer message to the session relay, in DHCP.
Offer报文的认证选项中携带 Chap挑战字 (Chap-Challenge)认证信息。 第 一个回复 DHCP Offer报文的 DHCP服务器和 IP边缘设备为选定的后续会
话对象。 The authentication option of the Offer message carries the Chap Challenge message (Chap-Challenge) authentication information. The first DHCP server and IP edge device that reply to the DHCP Offer message are selected follow-up sessions. Word object.
步骤 805: 会话中继将接收到的 DHCP Offer中的 Chap-Challenge携带 在 PPP LCP才艮文中, 发送给 Suppliant。 Step 805: The session relay carries the Chap-Challenge in the received DHCP Offer in the PPP LCP message and sends it to Suppliant.
步骤 806: Suppliant对 Chap-Challenge进行处理后, 通过 PPP LCP才艮 文回复 Chap应答 (Chap-Response)给会话中继。 Step 806: After Suppliant processes the Chap-Challenge, the PPP LCP responds with a Chap response (Chap-Response) to the session relay.
步骤 807 : 会话中继发送 DHCP Request^艮文给 IP边缘设备, 并向 DHCP服务器请求 Suppliant的 IP地址, 其中, DHCP Request报文的认证 选项携带 Chap-Response认证信息。 Step 807: The session relay sends a DHCP Request message to the IP edge device, and requests the IP address of the Suppliant from the DHCP server. The authentication option of the DHCP Request message carries the Chap-Response authentication information.
步骤 808: IP边缘设备根据收到的 DHCP Request报文中的 Chap-Response对 Suppliant进行认证, 并在认证成功后, 由 DHCP服务器 通过 IP边缘设备向会话中继返回 DHCP应答(DHCP Ack )报文, 其中 DHCP应答(DHCP Ack )报文携带分配给 Suppliant的第一 IP地址, 会话 中继记录下分配给 Suppliant的 IP地址。 Step 808: The IP edge device authenticates the Suppliant according to the Chap-Response in the received DHCP Request message, and after the authentication succeeds, the DHCP server returns a DHCP response (DHCP Ack) message to the session relay through the IP edge device. The DHCP Reply (DHCP Ack) message carries the first IP address assigned to the Suppliant, and the session relay records the IP address assigned to the Suppliant.
步骤 809:会话中继通过 PPP LCP报文通知 Suppliant, Chap认证成功。 步骤 810 : 在认证成功后, 进入地址分配阶段。 Suppliant发送 Step 809: The session relay notifies Suppliant through the PPP LCP message, and the Chap authentication succeeds. Step 810: After the authentication is successful, enter the address allocation phase. Sent by Suppliant
Config-Request报文给会话中继, 请求配置 IP地址。 The Config-Request packet is sent to the session relay to request the configuration of an IP address.
步骤 811 : 会话中继向 Suppliant返回 Config-Nak报文, 将记录下的 DHCP服务器分配的第一 IP地址携带给 Suppliant。 或者, 会话中继为 Suppliant分配一个第二 IP地址并携带在 Config-Nak4艮文中, 该第二 IP地 址与 DHCP服务器分配的第一 IP地址——对应。 Step 811: The session relay returns a Config-Nak message to the Suppliant, and carries the first IP address assigned by the recorded DHCP server to the Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant and carries it in the Config-Nak4 message, the second IP address corresponding to the first IP address assigned by the DHCP server.
Suppliant和会话中继还可进一步进行关于用户业务的 NCP协商。 步骤 812: 进入数据传输阶段。 Suppliant与会话中继之间传输 PPPoE 形式的数据, 会话中继与 IP边缘设备之间传输 IPoE形式的数据, 由会话 中继对数据形式进行转换 , 会话中继只需依据 PPPoE或 IPoE更改数据报 文的首部及尾部,净荷部分不需要变更。其中,会话中继将来自 Suppliant 的数据 4艮文中的第二 IP地址转换为对应的第一 IP地址后发送给 IP边缘设 备, 以及将来自 IP边缘设备的数据报文中的第一 IP地址转换为对应的第
二 IP地址后发送给 Suppliant。 Suppliant and session relay can further perform NCP negotiation on user services. Step 812: Enter the data transmission phase. The data in the form of PPPoE is transmitted between the Suppliant and the session relay, and the data in the form of IPoE is transmitted between the session relay and the IP edge device, and the data format is converted by the session relay. The session relay only needs to change the datagram according to PPPoE or IPoE. The head and tail of the text, the payload part does not need to be changed. The session relay converts the second IP address in the data from the Suppliant to the corresponding first IP address, sends the IP address to the IP edge device, and converts the first IP address in the data packet from the IP edge device. For the corresponding number The second IP address is sent to Suppliant.
步骤 813: Suppliant和会话中继交互终止请求 ( Termination-Request ) 才艮文和终止应答 ( Termination- Ack )报文, 以终止标准 PPP会话。 Step 813: Suppliant and Session Relay Interrupt Request ( Termination-Request) and Termination-Ack messages are terminated to terminate the standard PPP session.
步骤 814:当标准 PPP会话终止时 , Termination- Ack报文触发 Suppliant 或会话中继发送 PADT报文, 以终止 PPPoE会话。 Step 814: When the standard PPP session is terminated, the Termination-Ack message triggers the Suppliant or the session relay to send a PADT message to terminate the PPPoE session.
步骤 815: 会话中继通过 IP边缘设备向 DHCP服务器发送 DHCP释放 ( DHCP Release )报文以请求释放 Suppliant的 IP地址, 终止 IP会话。 Step 815: The session relay sends a DHCP Release (DHCP Release) message to the DHCP server through the IP edge device to request to release the IP address of the Suppliant, and terminate the IP session.
其中, 步骤 803发生在步骤 801的开始阶段之后, 步骤 805发生在步 骤 802之后。 Wherein step 803 occurs after the beginning of step 801 and step 805 occurs after step 802.
参见图 9A, PPPoE会话包括认证过程及 IP会话包括 EAP认证时, Referring to FIG. 9A, the PPPoE session includes an authentication process and the IP session includes EAP authentication.
PPPoE会话到 IP会话的转换方法流程如下: The process of converting a PPPoE session to an IP session is as follows:
步骤 900 A: Suppliant和会话中继交互以进行 PPPoE发现阶段。 Step 900 A: Suppliant interacts with the session relay to perform the PPPoE discovery phase.
步骤 900B: 进入链路建立阶段, 即 Suppliant和会话中继进行 LCP协 商。 Step 900B: Enter the link establishment phase, that is, Suppliant and session relay perform LCP negotiation.
步骤 900C: 进入 EAP认证启动阶段。 会话中继根据获得的 Suppliant 的 MAC地址与 IP边缘设备交互以完成 EAP认证启动。 Step 900C: Enter the EAP authentication startup phase. The session relay interacts with the IP edge device based on the obtained Suppliant's MAC address to complete the EAP authentication.
步骤 900D: 进入 PPPoE会话的认证阶段和 IP会话的 EAP认证阶段。 Step 900D: Enter the authentication phase of the PPPoE session and the EAP authentication phase of the IP session.
Suppliant与 IP边缘设备通过会话中继进行交互, 由会话中继将来自Suppliant interacts with the IP edge device through session relay, which will come from the session relay
Suppliant的基于 PPP的报文转换为基于 IP的报文并发送给 IP边缘设备,以 及将来自 IP边缘设备的基于 IP的报文转换为基于 PPP的报文并发送给The PPP-based packet of Suppliant is converted into an IP-based packet and sent to the IP edge device, and the IP-based packet from the IP edge device is converted into a PPP-based packet and sent to the packet.
Suppliant, 由 IP边缘设备根据收到的报文和本地保存的信息对 Suppliant 进行认证。 Suppliant, the IP edge device authenticates Suppliant based on received messages and locally saved information.
步骤 900E: 在认证成功后, 进入 PPPoE会话的地址分配阶段和 IP会 话的 DHCP地址分配阶段。 Suppliant与 DHCP服务器通过会话中继和 IP边 缘设备进行交互, 由 DHCP服务器为 Suppliant分配 IP地址, 并发送给会 话中继。 会话中继将 DHCP服务器分配的第一 IP地址发送给 Suppliant。 或者,会话中继为 Suppliant分配一个第二 IP地址,该第二 IP地址与 DHCP
服务器分配的第一 IP地址——对应。 Step 900E: After the authentication succeeds, enter the address allocation phase of the PPPoE session and the DHCP address allocation phase of the IP session. Suppliant interacts with the DHCP server through the session relay and the IP edge device. The DHCP server assigns an IP address to the Suppliant and sends it to the session relay. The session relay sends the first IP address assigned by the DHCP server to the Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant, the second IP address and DHCP. The first IP address assigned by the server - corresponding.
步骤 900F:进入数据传输阶段。 Suppliant与会话中继之间传输 PPPoE 会话形式的数据报文 , 会话中继与 IP边缘设备之间传输 IPoE会话形式的 数据报文, 由会话中继对数据报文形式进行转换, 会话中继只需依据 PPPoE或 IPoE更改数据报文的首部及尾部, 净荷部分不需要变更。 Step 900F: Enter the data transmission phase. The data packet in the form of a PPPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of an IPoE session is transmitted between the session relay and the IP edge device. The session relay converts the data packet form, and the session relay only The header and trailer of the data message need to be changed according to PPPoE or IPoE. The payload part does not need to be changed.
步骤 900G: 进入链路终止阶段。 Suppliant和会话中继交互以终止标 准 PPP会话。 Step 900G: Enter the link termination phase. Suppliant interacts with the session relay to terminate the standard PPP session.
步骤 900H: 进入 PPPoE会话终止阶段。 Suppliant或会话中继发送 PADT报文 , 以终止 PPPoE会话。 Step 900H: Enter the PPPoE session termination phase. The Suppliant or Session Relay sends a PADT message to terminate the PPPoE session.
步骤 9001: 进入 IP会话终止阶段。 会话中继与 DHCP服务器通过 IP 边缘设备交互以终止 IP会话。 Step 9001: Enter the IP session termination phase. The session relay interacts with the DHCP server through the IP edge device to terminate the IP session.
下面对几种关于 PPPoE会话和 IP会话的常用认证方法的会话转换过 程进行详细描述。 The following is a detailed description of several session conversion procedures for common authentication methods for PPPoE sessions and IP sessions.
参见图 9B , PPPoE会话包括 CHAP认证及 IP会话包括承载在 PAN A上 的 EAP认证时, PPPoE会话到 IP会话的转换方法流程如下: Referring to FIG. 9B, when the PPPoE session includes the CHAP authentication and the IP session includes the EAP authentication carried on the PAN A, the process of converting the PPPoE session to the IP session is as follows:
步骤 901 : Suppliant和会话中继交互以进行 PPPoE发现阶段, 具体过 程参见步骤 701、 704、 705和 706。 Step 901: The Suppliant interacts with the session relay to perform the PPPoE discovery phase. For the specific process, refer to steps 701, 704, 705, and 706.
步骤 902:进入链路建立阶段,即 Suppliant和会话中继进行 LCP协商。 步骤 903 : 进入 EAP认证启动阶段。 会话中继向 IP边缘设备发送 PANA客户启动报文(PANA-Client-Initiation ), 来选择提供认证授权服 务的 PAN A认证代理(PANA Authentication Agent, PAA ), 并且表明采 用承载在 PAN A上的 EAP认证, 其中 PAA位于 IP边缘设备上。 Step 902: Enter the link establishment phase, that is, the Suppliant and the session relay perform LCP negotiation. Step 903: Enter the EAP authentication startup phase. The session relay sends a PANA Client Initiation message (PANA-Client-Initiation) to the IP edge device to select a PAN Authentication Agent (PAA) that provides the authentication and authorization service, and indicates that the EAP carried on the PAN A is adopted. Authentication, where the PAA is located on the IP edge device.
步骤 904: 选择的 PAA与会话中继进行报文交互, 以完成 EAP认证 启动阶段。 具体操作包括: PAA向会话中继发送 PANA认证请求 ( PANA-Auth-Request )报文, 表明本地可以提供的认证授权服务, 并 通过 PANA-Auth-Request报文向会话中继发送本地使用的局部 IP 地 址; 会话中继发送 PANA认证答复( PANA- Auth- Answer ) 4艮文来响应
PAA。 其中, 将 S位置为 1。 Step 904: The selected PAA interacts with the session relay to complete the EAP authentication startup phase. The specific operations include: The PAA sends a PANA-Auth-Request message to the session relay, indicating that the local authentication service can be provided, and sends the locally used local part to the session relay through the PANA-Auth-Request message. IP address; session relay sends PANA authentication reply (PANA- Auth- Answer) PAA. Among them, the S position is 1.
步骤 905: 进入 EAP认证阶段。 PAA向会话中继发送 EAP身份请求 (EAP-Request/Identity) 报文, 以告知 EAP身份 ( Identity ) , 该 EAP-Request/Identity才艮文由 PANA- Auth-Request才艮文 7 载。 Step 905: Enter the EAP authentication phase. The PAA sends an EAP-Request/Identity message to the session relay to inform the EAP identity. The EAP-Request/Identity message is sent by the PANA-Auth-Request packet.
步骤 906: 会话中继将 Suppliant的媒体接入控制 ( Media Access Step 906: Session Relaying Suppliant Media Access Control (Media Access
Control, MAC )地址与 EAP Identity绑定。 由于一方会话采用 EAP认证, 而另一方会话未采用 EAP认证, 所以需要进行 MAC地址与 EAP Identity 的绑定。其中,会话中继在与 Suppliant建立初始连接时既已获得 Suppliant 的 MAC地址。 Control, MAC) address is bound to EAP Identity. Since one session uses EAP authentication and the other session does not use EAP authentication, the MAC address needs to be bound to EAP Identity. Among them, the session relay has obtained the Suppliant's MAC address when establishing the initial connection with Suppliant.
步骤 907: 会话 中 继 向 PAA发送承载 EAP身 份应 答。 Step 907: The bearer sends an EAP identity reply to the PAA in the session.
( EAP -Response/Identity )才艮文的 PAN A- Auth- Answer才艮文。 ( EAP -Response/Identity ) is the PAN A- Auth- Answer of the text.
步骤 908: PAA向会话中继发送承载 EAP MD5挑战请求 (EAP-Request/MD5 Challenge)才艮文的 PANA-Auth-Request才艮文。 Step 908: The PAA sends a PANA-Auth-Request message carrying the EAP MD5 Challenge Request (EAP-Request/MD5 Challenge) to the session relay.
步骤 909: 会话中继将 EAP-Request/MD5 Challenge转换为 Chap-Challenge, 以及将 PANA-Auth-Request报文转换为PPP LCP才艮文, 并将承载 Chap-Challenge的 PPP LCP才艮文发送给 Suppliant。 Step 909: The session relay converts the EAP-Request/MD5 Challenge into a Chap-Challenge, and converts the PANA-Auth-Request packet into a PPP LCP packet, and sends the PPP LCP carrying the Chap-Challenge to the message. Suppliant.
步骤 910: Suppliant对 Chap-Challenge进行处理后, 通过 PPP LCP才艮 文回复 Chap-Response给会话中继。 Step 910: After Suppliant processes the Chap-Challenge, the PPP LCP replies to Chap-Response to relay the session.
步骤 911: 会话中继将 Chap-Response转换为 EAP MD5挑战应答 ( EAP-Response/MD5 Challenge ) , 以及将 PPP LCP报文转换为 PANA-Auth-Answer才艮文,并将 载 EAP-Response/MD5 Challenge才艮文的 PANA-Auth-Answer报文发送给 PAA。 Step 911: The session relay converts the Chap-Response into an EAP-MD5 challenge response (EAP-Response/MD5 Challenge), and converts the PPP LCP message into a PANA-Auth-Answer message, and carries the EAP-Response/MD5 The PANA-Auth-Answer message from Challenge is sent to the PAA.
步骤 912: PAA根据收到的 PANA-Auth-Answer报文对 Suppliant进行 认证, 并在认证成功后, 向会话中继回复 EAP认证成功 (EAP success ) ( 可进一步回复相应的 EAP衍生密钥 ), 将回复信息承载在 PANA-Auth-Request 4艮文中发送给会话中 继。 会话中继发送 PANA-Auth-Answer报文来响应 PAA。 其中, 将 C位置为 1, 表示认证结
束。 Step 912: The PAA authenticates the Suppliant according to the received PANA-Auth-Answer message, and after the authentication succeeds, the EAP success is successfully replied to the session relay (the EAP derivative key may be further replied). The reply information is carried in the PANA-Auth-Request 4 message and sent to the session relay. The session relay sends a PANA-Auth-Answer message in response to the PAA. Where the C position is 1, indicating the authentication knot Bunch.
步骤 913:会话中继通过 PPP LCP报文通知 Suppliant, Chap认证成功。 步骤 914: 进入地址分配阶段。 Suppliant发送 Config-Request报文给 会话中继, 请求配置 IP地址。 Step 913: The session relay notifies Suppliant through the PPP LCP message, and the Chap authentication succeeds. Step 914: Enter the address allocation phase. Suppliant sends a Config-Request message to the session relay, requesting the configuration of an IP address.
步骤 915: 会话中继发起标准的 DHCP过程, 与 DHCP服务器交互, 以获得 DHCP服务器为 Suppliant分配的 IP地址 , 具体过程参见步骤 803、 Step 915: The session relay initiates a standard DHCP process, and interacts with the DHCP server to obtain an IP address assigned by the DHCP server to the Suppliant. For details, see Step 803.
804、 807和 808。 804, 807 and 808.
步骤 916: 会话中继向 Suppliant返回 Config-Nak报文, 将记录下的 DHCP服务器分配的 IP地址携带给 Suppliant。或者, 会话中继为 Suppliant 分配一个第二 IP地址并携带在 Config-Nak4艮文中,该第二 IP地址与 DHCP 服务器分配的 IP地址——对应。 Step 916: The session relay returns a Config-Nak message to Suppliant, and carries the IP address assigned by the recorded DHCP server to Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant and carries it in the Config-Nak4 message, the second IP address corresponding to the IP address assigned by the DHCP server.
Suppliant和会话中继还可进一步进行关于用于业务配置的 NCP协商 过程。 Suppliant and Session Relay can further make an NCP negotiation process for service configuration.
步骤 917: 进入数据传输阶段。 Suppliant与会话中继之间传输 PPPoE 会话形式的数据报文, 会话中继与 IP边缘设备之间传输 IPoE会话形式的 数据报文, 由会话中继对数据报文形式进行转换, 会话中继只需依据 PPPoE或 IPoE更改数据报文的首部及尾部 , 净荷部分不需要变更。 Step 917: Enter the data transfer phase. The data packet in the form of a PPPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of an IPoE session is transmitted between the session relay and the IP edge device. The session relay converts the data packet form, and the session relay only The header and trailer of the data message need to be changed according to PPPoE or IPoE. The payload part does not need to be changed.
步骤 918: Suppliant和会话中继交互 Termination-Re quest才艮文和 Termination- Ack才艮文, 以终止标准 PPP会话。 Step 918: Suppliant interacts with the session relay Termination-Request and Termination-Ack to terminate the standard PPP session.
步骤 919:当标准 PPP会话终止时 , Termination- Ack报文触发 Suppliant 或会话中继发送 PADT4艮文, 以终止 PPPoE会话。 Step 919: When the standard PPP session is terminated, the Termination-Ack message triggers the Suppliant or the session relay to send the PADT4 message to terminate the PPPoE session.
步 骤 920 : 会话 中 继 向 PAA发 送 PANA 终 止 请 求 ( PANA-Termination-Request ) 4艮文, 以及 PAA返回 PANA终答复止 (PANA-Termination- Answer) 4艮文, 以终止 PAN A会话。 Step 920: In the session, the PANA-Termination-Request (PANA-Termination-Request) message is sent to the PAA, and the PAA returns a PANA-Termination-Answer message to terminate the PAN A session.
步骤 921 : 会话中继通过 IP边缘设备向 DHCP服务器发送 DHCP Step 921: The session relay sends DHCP to the DHCP server through the IP edge device.
Release才艮文以请求释放 Suppliant的 IP地址。 Release will request the release of Suppliant's IP address.
其中, 步骤 906与步骤 907是两个独立的操作, 无严格的执行先后。
上述三个实施例描述了包括 Chap认证的 PPPoE会话到包括 DHCP认 的 PPPoE会话到包括其它认证方式的 IP会话的转换过程与上述三个实施 例的流程类似, 可参照执行, 在此不再赘述。 Step 906 and step 907 are two independent operations, and there is no strict execution sequence. The foregoing three embodiments describe that the process of converting a PPPoE session including a Chap authentication to a PPPoE session including a DHCP authentication to an IP session including other authentication modes is similar to the process of the foregoing three embodiments, and may be referred to for execution, and details are not described herein again. .
PAP认证与 Chap认证的区别在于 PAP认证是两次握手认证, Chap认 证是三次握手认证, 包括 PAP认证的 PPPoE会话到包括各种认证的 IP会 话的转换过程与包括 Chap认证的 PPPoE会话到包括各种认证的 IP会话的 转换过程类似, 可参照执行, 在此不再赘述。 The difference between the PAP authentication and the Chap authentication is that the PAP authentication is a two-way handshake authentication, and the Chap authentication is a three-way handshake authentication, including a PAP-authenticated PPPoE session to a IP session including various authentications, and a PPPoE session including Chap authentication. The conversion process of the authenticated IP session is similar, and can be referred to for execution, and details are not described herein again.
参见图 10, PPPoE会话包括 EAP认证及 IP会话包括承载在 PAN A上的 EAP认证时, PPPoE会话到 IP会话的转换方法流程如下: Referring to FIG. 10, when the PPPoE session includes the EAP authentication and the IP session includes the EAP authentication carried on the PAN A, the PPPoE session to the IP session conversion method is as follows:
步骤 1001 : Suppliant和会话中继交互以进行 PPPoE发现阶段, 具体 过程参见步骤 701、 704、 705和 706。 Step 1001: The Suppliant interacts with the session relay to perform the PPPoE discovery phase. For details, refer to steps 701, 704, 705, and 706.
步骤 1002: 进入链路建立阶段, 即 Suppliant和会话中继进行 LCP协 商。 Step 1002: Enter the link establishment phase, that is, Suppliant and session relay perform LCP negotiation.
步骤 1003 : 进入认证阶段。 会话中继向 IP边缘设备发送 Step 1003: Enter the authentication phase. Session relay sends to IP edge device
PAN A-Client-Initiation报文 , 来选择提供认证授权服务的 PA A , PAA位于 IP边缘设备上。 The PAN A-Client-Initiation message is used to select the PA A that provides the authentication and authorization service. The PAA is located on the IP edge device.
步骤 1004: 选择的 PAA与会话中继进行报文交互, 以进入 EAP认证 启动阶段。 具体操作包括: PAA向会话中继发送 PANA-Auth-Request报 文, 表明本地可以提供认证授权服务, 并通过 PANA-Auth-Request报文 向会话中继发送本地使用的局部 IP 地址; 会话中继发送 P ANA- Auth- Answer才艮文来响应 P AA。 Step 1004: The selected PAA interacts with the session relay to enter the EAP authentication startup phase. The specific operations include: The PAA sends a PANA-Auth-Request packet to the session relay, indicating that the local authentication and authorization service can be provided, and the locally used local IP address is sent to the session relay through the PANA-Auth-Request packet; Send P ANA- Auth- Answer to respond to P AA.
步骤 1005: PAA向会话中继发送 EAP身份请求(EAP-Request/Identity) 才艮文, 以告知 EAP Identity, 该 EAP-Request/Identity 文承载在 PANA-Auth-Request才艮文上。 Step 1005: The PAA sends an EAP Identity Request (EAP-Request/Identity) to the session relay to notify the EAP Identity, and the EAP-Request/Identity text is carried on the PANA-Auth-Request packet.
步骤 1006: 会话中继将 PAN A- Auth-Request报文转换为 PPP LCP才艮 文 , 以及将承载 EAP-Request/Identity的 PPP LCP才艮文发送给 Suppliant。
步骤 1007: Suppliant发送承载 EAP-Response/Identity的 PPP LCP才艮文 给会话中继。 Step 1006: The session relay converts the PAN A-Auth-Request packet into a PPP LCP packet, and sends the PPP LCP packet carrying the EAP-Request/Identity to the Suppliant. Step 1007: Suppliant sends a PPP LCP carrying EAP-Response/Identity to the session relay.
步骤 1008: 会话中继将 PPP LCP报文转换为 PANA-Auth-Answer报 文 , 以及将 载 EAP-Response/Identity的 PANA-Auth-Answer才艮文发送给 PAA。 Step 1008: The session relay converts the PPP LCP message into a PANA-Auth-Answer message, and sends the PANA-Auth-Answer message carrying the EAP-Response/Identity to the PAA.
步骤 1009: 进行 EAP的认证方法(EAP Method)协商, 以及认证方法 交互的过程。 具体过程包括: Suppliant和会话中继之间均采用 PPP LCP 才艮文承载 EAP进行交互, 在会话中继和 PAA之间均采用 PANA报文承载 EAP进行交互, 直到 EAP认证过程结束。 当 PPP会话和 IP会话均采用 EAP 认证方式时, 认证方法有多种, 如通过 MD5算法进行认证等。 Step 1009: Perform an EAP Method negotiation and an authentication method interaction process. The specific process includes: The PPP LCP is used to carry the EAP interaction between the Suppliant and the session relay. The PANA packet is used to carry the EAP interaction between the session relay and the PAA until the EAP authentication process ends. When both the PPP session and the IP session adopt the EAP authentication mode, there are multiple authentication methods, such as authentication through the MD5 algorithm.
步骤 1010: PAA根据收到的 PAN A-Auth- Answer报文对 Suppliant进行 认证, 并在认证成功时, 向会话中继回复 EAP认证成功 (EAP success ) 和相应的 EAP衍生密钥, 将两者承载在 PANA- Auth-Request报文中发送 给会话中继。 会话中继发送 PANA-Auth-Answer报文来响应 PAA。 Step 1010: The PAA authenticates the Suppliant according to the received PAN A-Auth- Answer message, and when the authentication succeeds, returns the EAP success (EAP success) and the corresponding EAP derived key to the session relay. The bearer is sent to the session relay in the PANA-Auth-Request message. The session relay sends a PANA-Auth-Answer message in response to the PAA.
步骤 1011:会话中继将 EAP认证成功( EAP success ) 4艮文封装在 PPP Step 1011: The session relay encapsulates the EAP authentication (EAP success) in the PPP.
LCP报文中并发送给 Suppliant。 The LCP message is sent to Suppliant.
步骤 1012: 进入地址分配阶段。 Suppliant发送 Config-Request报文给 会话中继, 请求配置 IP地址。 Step 1012: Enter the address allocation phase. Suppliant sends a Config-Request message to the session relay, requesting the configuration of an IP address.
步骤 1013: 会话中继发起标准的 DHCP过程, 与 DHCP服务器交互, 以获得 DHCP服务器为 Suppliant分配的 IP地址 , 具体过程参见步骤 803、 804、 807和 808。 Step 1013: The session relay initiates a standard DHCP process, and interacts with the DHCP server to obtain an IP address assigned by the DHCP server to the Suppliant. For details, refer to steps 803, 804, 807, and 808.
其中,步骤 1012和步骤 1013是两个独立的过程,无严格的执行先后。 步骤 1014: 会话中继向 Suppliant返回 Config-Nak报文, 将记录下的 DHCP服务器分配的 IP地址携带给 Suppliant。或者, 会话中继为 Suppliant 分配一个第二 IP地址,该第二 IP地址与 DHCP服务器分配的 IP地址——对 应。 Step 1012 and step 1013 are two independent processes, and there is no strict execution sequence. Step 1014: The session relay returns a Config-Nak message to Suppliant, and carries the IP address assigned by the recorded DHCP server to Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant, which corresponds to the IP address assigned by the DHCP server.
Suppliant和会话中继还可进一步进行关于用户业务的 NCP协商。
步骤 1015:进入数据传输阶段。 Suppliant与会话中继之间传输 PPPoE 会话形式的数据报文, 会话中继与 IP边缘设备之间传输 IPoE会话形式的 数据报文, 由会话中继对数据报文形式进行转换, 会话中继只需依据 PPPoE或 IPoE更改数据报文的首部及尾部 , 净荷部分不需要变更。 Suppliant and session relay can further perform NCP negotiation on user services. Step 1015: Enter the data transmission phase. The data packet in the form of a PPPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of an IPoE session is transmitted between the session relay and the IP edge device. The session relay converts the data packet form, and the session relay only The header and trailer of the data message need to be changed according to PPPoE or IPoE. The payload part does not need to be changed.
步骤 1016: Suppliant与会话中继交互 Termination-Re quest才艮文和 Step 1016: Suppliant interacts with the session relay Termination-Re quest
Termination- Ack才艮文, 以终止标准 PPP会话。 Termination-Ack is used to terminate the standard PPP session.
步骤 1017: 当标准 PPP会话终止时, Termination- Ack才艮文触发 Suppliant或会话中继发送 PADT才艮文 , 以终止 PPPoE会话。 Step 1017: When the standard PPP session is terminated, the Termination-Ack triggers the Suppliant or the session relay to send the PADT packet to terminate the PPPoE session.
步骤 1018:会话中继向 PAA发送 PANA-Termination-Request报文 , 以 及 PAA返回 PANA-Termination-Answer才艮文, 完成 PAN A会话的终止。 Step 1018: The session relay sends a PANA-Termination-Request message to the PAA, and the PAA returns a PANA-Termination-Answer message to complete the termination of the PAN A session.
步骤 1019: 会话中继通过 IP边缘设备向 DHCP服务器发送 DHCP Release才艮文以请求释放 Suppliant的 IP地址。 Step 1019: The session relay sends a DHCP Release message to the DHCP server through the IP edge device to request to release the IP address of the Suppliant.
DHCP认证时 , PPPoE会话到 IP会话的转换方法流程如下: During DHCP authentication, the process of converting a PPPoE session to an IP session is as follows:
步骤 1101 : Suppliant和会话中继交互以进行 PPPoE发现阶段, 具体 过程参见步骤 701、 704、 705和 706。 Step 1101: The Suppliant interacts with the session relay to perform the PPPoE discovery phase. For details, refer to steps 701, 704, 705, and 706.
步骤 1102: 进入链路建立阶段, 即 Suppliant和会话中继进行 LCP协 商。 Step 1102: Enter the link establishment phase, that is, Suppliant and the session relay perform LCP negotiation.
步骤 1103: 会话中继发送 DHCP Discover报文给 DHCP认证者(位于 IP边缘设备上)和 DHCP服务器,来选择提供认证授权服务的 DHCP认证 者和 DHCP服务器, 并通过认证选项表明会话中继支持的认证模式。 其 中,会话中继通过获得的 Suppliant的 MAC地址与 DHCP认证者进行交互。 Step 1103: The session relay sends a DHCP Discover message to the DHCP authenticator (located on the IP edge device) and the DHCP server to select a DHCP authenticator and a DHCP server that provide the authentication and authorization service, and indicates the session relay support through the authentication option. Authentication mode. Among them, the session relay interacts with the DHCP authenticator through the obtained Suppliant MAC address.
步骤 1104: DHCP服务器返回 DHCP Offer报文。 DHCP认证者收到 DHCP Offer报文后, 添加认证选项表明本地支持的认证模式, 记录下 DHCP服务器为会话中继提供的未租借的 IP地址, 并可将其替换为一个 供 Suppliant本地使用的局部 IP地址 , 然后向会话中继转发携带局部 IP 地址的 DHCP Offer报文。
步骤 1105: 会话中继发送 DHCP Request报文来响应 DHCP认证者的 DHCP Offer,其中包含 DHCP认证者支持的认证模式及 DHCP认证者提供 的 IP地址 , 表明已经选择能支持相应认证模式的 DHCP认证者并接受了 该 DHCP认证者提供的 IP地址。 Step 1104: The DHCP server returns a DHCP Offer message. After receiving the DHCP Offer message, the DHCP Authenticator adds the authentication option to indicate the locally supported authentication mode, records the untenant IP address provided by the DHCP server for the session relay, and replaces it with a local part for Suppliant. The IP address is then forwarded to the session to forward the DHCP Offer message carrying the local IP address. Step 1105: The session relay sends a DHCP Request message to respond to the DHCP Offeror's DHCP Offer, which includes the authentication mode supported by the DHCP authenticator and the IP address provided by the DHCP authenticator, indicating that the DHCP authenticator that can support the corresponding authentication mode has been selected. And accepted the IP address provided by the DHCP Authenticator.
步骤 1106: DHCP认证者接收到 DHCP Request报文后, 向会话中继 发送承载 E AP-Request/Identity 4艮文的 DHCP Ack才艮文。 Step 1106: After receiving the DHCP Request message, the DHCP Authenticator sends a DHCP Ack message carrying the EAP-Request/Identity 4 message to the session relay.
步骤 1107:会话中继将 DHCP报文转换为 PPP LCP报文, 以及将承载 EAP-Request/Identity的 PPP LCP才艮文发送给 Suppliant。 Step 1107: The session relay converts the DHCP packet into a PPP LCP packet, and sends the PPP LCP packet carrying the EAP-Request/Identity to the Suppliant.
步骤 1108: Suppliant发送承载 EAP-Response/Identit 的 PPP LCP才艮 文给会话中继。 Step 1108: Suppliant sends a PPP LCP carrying EAP-Response/Identit to the session relay.
步骤 1109: 会话中继将 PPP LCP报文转换为 DHCP Request报文, 以 及将承载 EAP-Response/Identity的 DHCP Request才艮文发送给 DHCP认证 者。 Step 1109: The session relay converts the PPP LCP packet into a DHCP Request message, and sends the DHCP Request message carrying the EAP-Response/Identity to the DHCP authenticator.
步骤 1110: 进行 EAP Method协商, 以及认证方法交互的过程。 具体 过程包括: Suppliant和会话中继之间均采用 PPP LCP报文承载 EAP进行 交互,在会话中继和 DHCP认证者之间均采用 DHCP报文承载 EAP进行交 互, 直到 EAP认证过程结束。 Step 1110: Perform EAP Method negotiation and the process of authenticating the method. The specific process includes: The PPP LCP packet is used to carry the EAP between the Suppliant and the session relay. The session relay and the DHCP Authenticator use the DHCP packet to carry the EAP to communicate with each other until the EAP authentication process ends.
步骤 1111 : DHCP认证者根据收到的 DHCP Request报文对 Suppliant 进行认证, 并在认证成功时, 向会话中继回复 EAP success (或者 EAP success和相应的 EAP衍生密钥), 将其承载在 DHCP Ack报文中, 并在 DHCP Ack4艮文中携带 DHCP服务器为 Suppliant分配第一 IP地址发送给 会话中继。 Step 1111: The DHCP authenticator authenticates the Suppliant according to the received DHCP Request message, and when the authentication succeeds, replies to the session relay with EAP success (or EAP success and corresponding EAP derived key), and carries it in DHCP. In the Ack message, and carrying the DHCP server in the DHCP Ack4 message, the first IP address is assigned to the Suppliant and sent to the session relay.
步骤 1112: 会话中继将 EAP success报文封装在 PPP LCP报文中并发 送给 Suppliant。 Step 1112: The session relay encapsulates the EAP success packet in the PPP LCP packet and sends it to the Suppliant.
步骤 1113: 进入地址分配阶段。 Suppliant发送 Config-Request报文给 会话中继, 请求配置 IP地址。 Step 1113: Enter the address allocation phase. Suppliant sends a Config-Request message to the session relay, requesting the configuration of an IP address.
步骤 1114: 会话中继向 Suppliant返回 Config-Nak报文, 将记录下的
DHCP服务器分配的 IP地址并携带给 Suppliant。 或者, 会话中继为 Suppliant分配一个第二 IP地址, 该第二 IP地址与 DHCP服务器分配的 IP 地址 对应。 Step 1114: The session relay returns a Config-Nak message to the Suppliant, which will be recorded. The IP address assigned by the DHCP server is carried to Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant, the second IP address corresponding to the IP address assigned by the DHCP server.
Suppliant和会话中继还可进一步进行关于用户业务的 NCP协商。 步骤 1115:进入数据传输阶段。 Suppliant与会话中继之间传输 PPPoE 会话形式的数据 4艮文, 会话中继与 DHCP认证者之间传输 IPoE会话形式 的数据报文, 由会话中继对数据报文形式进行转换, 会话中继只需依据 PPPoE或 IPoE更改数据报文的首部及尾部 , 净荷部分不需要变更。 Suppliant and Session Relay can further perform NCP negotiation on user services. Step 1115: Enter the data transmission phase. The data in the form of a PPPoE session is transmitted between the Suppliant and the session relay, and the data message in the form of an IPoE session is transmitted between the session relay and the DHCP authenticator, and the data relay is converted by the session relay, and the session is relayed. Simply change the header and trailer of the data message according to PPPoE or IPoE. The payload does not need to be changed.
步骤 1116: Suppliant和会话中继交互 Termination-Re quest才艮文和 Termination- Ack才艮文, 以终止标准 PPP会话。 Step 1116: Suppliant interacts with the session relay Termination-Request and Termination-Ack to terminate the standard PPP session.
步骤 1117: 当标准 PPP会话终止时, Termination- Ack才艮文触发 Suppliant或会话中继发送 PADT才艮文 , 以终止 PPPoE会话。 Step 1117: When the standard PPP session is terminated, the Termination-Ack triggers the Suppliant or the session relay to send the PADT packet to terminate the PPPoE session.
Release报文以请求释放 Suppliant的 IP地址, 终止 IP会话。 The Release message terminates the IP session by requesting to release the IP address of Suppliant.
上述两个实施例描述了包括 EAP认证的 PPPoE会话到包括承载在 The above two embodiments describe a PPPoE session including EAP authentication to include
PANA的 EAP认证的 IP会话的转换过程, 以及描述了包括 EAP认证的 PPPoE会话到包括支持 EAP认证的 DHCP认证的 IP会话的转换过程,包括 E AP认证的 PPPoE会话到包括其它认证方式的 IP会话的转换过程与上述 两个实施例的流程类似, 可参照执行, 在此不再赘述。 PANA's EAP-authenticated IP session conversion process, and the conversion process from PPPoE session including EAP authentication to IP session including DHCP authentication supporting EAP authentication, including EAP-authenticated PPPoE session to IP session including other authentication methods The conversion process is similar to the process of the above two embodiments, and can be referred to for execution, and details are not described herein again.
以上实施例描述了 PPPoE会话到 IP会话的转换过程, 对应的, IP会 话到 PPPoE会话的转换过程参见图 12所示, 主要方法流程如下: The above embodiment describes the process of converting a PPPoE session to an IP session. Correspondingly, the conversion process of the IP session to the PPPoE session is shown in Figure 12. The main method flow is as follows:
步骤 1201 : Suppliant发起 IP会话的创建过程, 启动 IP会话的认证和 地址分配过程。 Step 1201: Suppliant initiates an IP session creation process, and initiates an IP session authentication and address allocation process.
步骤 1202 : 会话中继发起 PPPoE会话的创建过程, 并根据获得的 Suppliant的 MAC地址与 IP边缘设备进行交互, 实现和完成 PPPoE发现阶 段, 即创建 PPPoE会话。 Step 1202: The session relay initiates a PPPoE session creation process, and interacts with the IP edge device according to the obtained Suppliant MAC address to implement and complete the PPPoE discovery phase, that is, create a PPPoE session.
步骤 1203 : 进入 PPPoE会话的链路建立阶段, 创建标准 PPP会话,
即会话中继与 IP边缘设备进行 LCP协商。 Step 1203: Enter a link establishment phase of the PPPoE session, and create a standard PPP session. That is, the session relay and the IP edge device perform LCP negotiation.
步骤 1204: 会话中继回应 Suppliant的发起操作, 以完成 IP会话的认 证过程。 Step 1204: The session relay responds to the initiation operation of Suppliant to complete the authentication process of the IP session.
步骤 1205: 进入地址分配阶段。 Suppliant发起地址分配过程, 由会 话中继代替 Suppliant向 IP边缘设备(或 DHCP服务器)请求获得 Suppliant 的 IP地址。会话中继将 IP边缘设备(或 DHCP服务器)分配的第一 IP地址 发送给 Suppliant。 或者, 会话中继为 Suppliant分配一个第二 IP地址, 该 第二 IP地址与 IP边缘设备(或 DHCP服务器)分配的第一 IP地址——对应。 Step 1205: Enter the address allocation phase. Suppliant initiates the address allocation process, in which the session relay replaces Suppliant to request the IP edge device (or DHCP server) to obtain the Suppliant IP address. The session relay sends the first IP address assigned by the IP edge device (or DHCP server) to Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant, the second IP address corresponding to the first IP address assigned by the IP edge device (or DHCP server).
步骤 1206: 进入数据传输阶段。 Suppliant与会话中继之间传输 IPoE 会话形式的数据报文, 会话中继与 IP边缘设备之间传输 PPPoE会话形式 的数据报文。 Step 1206: Enter the data transfer phase. The data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of a PPPoE session is transmitted between the session relay and the IP edge device.
步骤 1207:数据传输完毕后, Suppliant向会话中继发送 DHCP Release 报文, 以请求释放本地的 IP地址, IP会话终止。 其中, Suppliant将会话 中继确定为 DHCP服务器。 Step 1207: After the data transmission is completed, Suppliant sends a DHCP Release message to the session relay to request to release the local IP address, and the IP session is terminated. Among them, Suppliant determines the session relay as a DHCP server.
步骤 1208: 进入 PPP会话的链路终止阶段。 会话中继与 IP边缘设备 交互以终止标准 PPP会话。 Step 1208: Enter a link termination phase of the PPP session. The session relay interacts with the IP edge device to terminate the standard PPP session.
步骤 1209: IP边缘设备或会话中继发送 PADT报文, 以终止 PPPoE 会话。 Step 1209: The IP edge device or the session relay sends a PADT packet to terminate the PPPoE session.
其中, 步骤 1202与步骤 1203是两个独立的操作过程, 无严格的先后 顺序。 Step 1202 and step 1203 are two independent operations, and there is no strict sequence.
下面对 IP会话到 PPPoE会话的转换过程的几种典型实例进行详细描 述。 Several typical examples of the conversion process from IP session to PPPoE session are described in detail below.
参见图 13 , PPPoE会话不包括认证过程及 IP会话包括利用 Option 82 进行 DHCP认证时, IP会话到 PPPoE会话的转换方法流程如下: Referring to Figure 13, the PPPoE session does not include the authentication process and the IP session includes the Option 82 for DHCP authentication. The process of converting the IP session to the PPPoE session is as follows:
步骤 1301 : Suppliant发送 DHCP Discover报文给会话中继, 以启动 Step 1301: Suppliant sends a DHCP Discover message to the session relay to start
DHCP认证和地址分配过程。 若会话中继位于 AN之后, 则 AN将接入环 路标识(如接收端口号)以 TAG的形式添加到收到的 PADI报文中, 并发
送。 若会话中继位于 AN上, 则由 AN中除会话中继以外的其它模块将接 入环路标识发送给会话中继。 DHCP authentication and address allocation process. If the session relay is located after the AN, the AN adds the access loop identifier (such as the receiving port number) to the received PADI packet in the form of TAG, and concurrently give away. If the session relay is located on the AN, the access loop identifier is sent to the session relay by the other module except the session relay in the AN.
步骤 1302: DHCP Discover报文触发会话中继以广播方式发送 PADI 报文(其中会话 ID为 0x0000 )。 其中, 会话中继将获得的 IP会话建立过 程报文的接入环路标识以 TAG的格式插入到该 PADI报文中。 其中, 会 话中继若位于 AN之后, 则从 Option 82中获得接入环路标识, 会话中继 若位于 AN上 , 则从 AN内部获得接入环路标识。 Step 1302: The DHCP Discover message triggers the session relay to broadcast the PADI message (the session ID is 0x0000). The access loop identifier of the IP session establishment process packet obtained by the session relay is inserted into the PADI packet in the format of the TAG. If the session relay is located after the AN, the access loop identifier is obtained from Option 82. If the session relay is located on the AN, the access loop identifier is obtained from the AN.
步骤 1303: IP边缘设备根据收到的 PADI报文中的接入环路标识检查 Suppliant的合法性,合法性检查通过后, IP边缘设备发送 PADO报文给会 话中继, 该 PADO报文的以太网帧中的源地址用 IP边缘设备的 MAC地址 填充。 Step 1303: The IP edge device checks the legality of the Suppliant according to the access loop identifier in the received PADI packet. After the validity check is performed, the IP edge device sends a PADO packet to the session relay, and the PADO packet is Ethernet. The source address in the net frame is filled with the MAC address of the IP edge device.
步骤 1304: 会话中继收到 PAD04艮文后, 如果收到多个 IP边缘设备 的 PADO报文,则依据 PADO报文的内容或收到 PADO报文的顺序从多个 IP边缘设备中选择一个 IP边缘设备作为后续会话的对象, 并向选择的 IP 边缘设备发送单播的 P ADR报文(其中会话 ID仍为 0x0000 ) 。 Step 1304: After receiving the PAD04 message, the session relay receives a PADO message from multiple IP edge devices, and selects one of the multiple IP edge devices according to the content of the PADO message or the order of receiving the PADO message. The IP edge device is the object of the subsequent session and sends a unicast P ADR message to the selected IP edge device (where the session ID is still 0x0000).
步骤 1305: IP边缘设备为 PPPoE会话分配一个唯一的会话进程 ID(即 特定会话 ID ), 并在向会话中继回复的 PADS4艮文中携带特定会话 ID。 Step 1305: The IP edge device allocates a unique session process ID (that is, a specific session ID) to the PPPoE session, and carries a specific session ID in the PADS4 message replied to the session relay.
步骤 1306 : 会话中继发送 DHCP Offe 艮文给 Suppliant, 在 DHCP Offer报文中用会话中继所在节点的 IP地址代替 DHCP服务器的地址。 Step 1306: The session relay sends a DHCP Offe message to Suppliant, and replaces the address of the DHCP server with the IP address of the node where the session relay is located in the DHCP Offer message.
步骤 1307: 进入链路建立阶段, 即会话中继和 IP边缘设备进行 LCP 协商。 Step 1307: Enter the link establishment phase, that is, the session relay and the IP edge device perform LCP negotiation.
步骤 1308: Suppliant发送 DHCP Request报文给会话中继, 以请求分 配 IP地址。 Step 1308: Suppliant sends a DHCP Request message to the session relay to request an IP address.
步骤 1309: 会话中继发送 Config-Request报文给 IP边缘设备, 以请求 为 Suppliant配置 IP地址。 Step 1309: The session relay sends a Config-Request message to the IP edge device to request an IP address for the Suppliant.
步骤 1310: IP边缘设备向会话中继返回 Config-Nak报文,并携带 PPP 过程分配的第一 IP地址。
会话中继和 IP边缘设备还可进一步进行关于用户业务的 NCP协商。 步骤 1311: 会话中继向 Suppliant返回携带分配给 Suppliant的第一 IP 地址的 DHCP Ack报文。或者, 会话中继为 Suppliant分配一个第二 IP地址 并携带在 DHCP Ack4艮文中, 该第二 IP地址与 PPP过程分配的 IP地址—— 对应。 Step 1310: The IP edge device returns a Config-Nak packet to the session relay, and carries the first IP address allocated by the PPP process. The session relay and IP edge device can further perform NCP negotiation on user services. Step 1311: The session relay returns a DHCP Ack message carrying the first IP address assigned to the Suppliant to the Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant and carries it in the DHCP Ack4 message, the second IP address corresponding to the IP address assigned by the PPP process.
步骤 1312:在认证和地址分配成功后,进入数据传输阶段。 Suppliant 与会话中继之间传输 IPoE会话形式的数据报文 , 会话中继与 IP边缘设备 之间传输 PPPoE会话形式的数据报文。 由会话中继进行 IPoE会话形式的 数据报文与 PPPoE会话形式的数据报文之间的转换, 会话中继只需依据 PPP或 IP更改数据报文的首部及尾部, 净荷部分不需变化。 Step 1312: After the authentication and address assignment are successful, the data transmission phase is entered. The data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of a PPPoE session is transmitted between the session relay and the IP edge device. The session relay performs the conversion between the data packet in the form of the IPoE session and the data packet in the PPPoE session format. The session relay only needs to change the header and the tail of the data packet according to the PPP or the IP, and the payload portion does not need to be changed.
步骤 1313 : 需要结束数据传输阶段时, Suppliant向会话中继发送 DHCP Release报文, 以请求释放 Suppliant的 IP地址。 Step 1313: When the data transmission phase needs to be ended, Suppliant sends a DHCP Release message to the session relay to request the release of the Suppliant IP address.
步骤 1314: 会话中继和 IP边缘设备交互 Termination-Request报文和 Termination- Ack才艮文, 以终止标准 PPP会话。 Step 1314: The session relay and the IP edge device exchange Termination-Request messages and Termination-Ack messages to terminate the standard PPP session.
步骤 1315 : 当标准 PPP会话终止时, Termination- Ack报文触发 IP边 缘设备或会话中继发送 PADT4艮文, 以终止 PPPoE会话。 Step 1315: When the standard PPP session is terminated, the Termination-Ack message triggers the IP edge device or the session relay to send the PADT4 message to terminate the PPPoE session.
在步骤 1307和步骤 1308之间, 可进行会话中继和 IP边缘设备之间的 PPP认证阶段, 会话中继采用预先在会话中继上设置的合法用户名和密 码, 通过 IP边缘设备取得认证的成功。 In step 1307 and step 1308, a PPP authentication phase between the session relay and the IP edge device may be performed. The session relay uses the legal user name and password set in advance on the session relay to obtain the authentication success through the IP edge device. .
其中, 步骤 1306发生在步骤 1301之后, 结束于步骤 1309之前。 的 DHCP认证时 , IP会话到 PPPoE会话的转换方法流程如下: Wherein step 1306 occurs after step 1301 and ends before step 1309. The process of converting the IP session to the PPPoE session is as follows:
步骤 1401 : Suppliant发送 DHCP Discover报文给会话中继, 以启动 Step 1401: Suppliant sends a DHCP Discover message to the session relay to start
DHCP认证和地址分配过程。其中 DHCP Discover报文中携带的认证选项 ( auth-proto Option )表明采用 Chap认证。 DHCP authentication and address allocation process. The authentication option ( auth-proto Option ) carried in the DHCP Discover message indicates that Chap authentication is used.
步骤 1402: 会话中继和 IP边缘设备进行 PPPoE发现阶段的交互, 具 体过程参见步骤 1302 -步骤 1305。
步骤 1403: 进入链路建立阶段, 会话中继和 IP边缘设备进行 LCP协 商。 Step 1402: The session relay and the IP edge device perform the interaction in the PPPoE discovery phase. For the specific process, refer to step 1302 - step 1305. Step 1403: Entering the link establishment phase, the session relay and the IP edge device perform LCP negotiation.
步骤 1404: IP边缘设备发送携带 Chap-Challenge认证信息的 PPP LCP 报文给会话中继。 Step 1404: The IP edge device sends a PPP LCP packet carrying the Chap-Challenge authentication information to the session relay.
步骤 1405 : 会话中继从 PPP LCP报文中获得 Chap-Challenge , 并将 Step 1405: The session relay obtains Chap-Challenge from the PPP LCP message, and
Chap-Challenge携带在 DHCP Offer报文中发送给 Suppliant。 The Chap-Challenge is sent to Suppliant in a DHCP Offer message.
步骤 1406: Suppliant向会话中继发送通过认证选项承载 Chap-Response才艮文的 DHCP Request才艮文 , 以向会话中继请求本地的 IP 地址。 Step 1406: Suppliant sends a DHCP Request message carrying the Chap-Response through the authentication option to the session relay to request the local IP address from the session relay.
步骤 1407: 会话中继从 DHCP Request中获得 Chap-Response , 并将 Step 1407: The session relay obtains Chap-Response from the DHCP Request, and
Chap-Response携带在 PPP LCP报文中发送给 IP边缘设备。 The Chap-Response is sent to the IP edge device in the PPP LCP packet.
步骤 1408: IP边缘设备根据 PPP LCP4艮文对 Suppliant进行认证, 并 在认证成功时, 通过发送 PPP LCP报文通知会话中继, Chap认证成功。 Step 1408: The IP edge device authenticates the Suppliant according to the PPP LCP4 text, and when the authentication succeeds, the PPP LCP packet is sent to notify the session relay, and the Chap authentication succeeds.
步骤 1409: 会话中继发送 Config-Request报文给 IP边缘设备, 以请求 为 Suppliant配置 IP地址。 Step 1409: The session relay sends a Config-Request message to the IP edge device to request an IP address for the Suppliant.
步骤 1410: IP边缘设备向会话中继返回 Config-Nak报文,并携带 PPP 过程分配的第一 IP地址, 由会话中继将 PPP过程分配的第一 IP地址发送 给 Suppliant。 或者, 由会话中继为 Suppliant分配一个第二 IP地址, 该第 二 IP地址与 PPP过程分配的第一 IP地址——对应。 Step 1410: The IP edge device returns a Config-Nak packet to the session relay, and carries the first IP address allocated by the PPP process, and the session relay relays the first IP address allocated by the PPP process to the Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant, the second IP address corresponding to the first IP address assigned by the PPP process.
会话中继和 IP边缘设备还可进一步进行关于用户业务的 NCP协商。 步骤 1411 :会话中继向 Suppliant返回 DHCP Ack报文,其中携带分配 给 Suppliant的 IP地址 , 表明 Chap认证成功。 Session relay and IP edge devices can further perform NCP negotiation on user services. Step 1411: The session relay returns a DHCP Ack message to the Suppliant, which carries the IP address assigned to the Suppliant, indicating that the Chap authentication succeeds.
步骤 1412:在认证和地址分配成功后,进入数据传输阶段。 Suppliant 与会话中继之间传输 IPoE会话形式的数据报文 , 会话中继与 IP边缘设备 之间传输 PPPoE会话形式的数据 4艮文。 由会话中继进行 IPoE会话形式的 数据 4艮文与 PPPoE形式的数据 4艮文之间的转换 , 会话中继只需依据 PPP 或 IP更改数据 4艮文的首部及尾部, 净荷部分不需变化。
步骤 1413 : 需要结束数据传输阶段时, Suppliant向会话中继发送 DHCP Release报文, 以请求释放 Suppliant的 IP地址。 Step 1412: After the authentication and address assignment are successful, the data transmission phase is entered. The data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data in the form of a PPPoE session is transmitted between the session relay and the IP edge device. The session relay performs the conversion between the data in the form of IPoE session and the data in the form of PPPoE. The session relay only needs to change the header and the tail of the data according to PPP or IP, and the payload portion does not need to be Variety. Step 1413: When the data transmission phase needs to be ended, Suppliant sends a DHCP Release message to the session relay to request to release the IP address of the Suppliant.
步骤 1414: 会话中继和 IP边缘设备交互 Termination-Request报文和 Termination- Ack才艮文, 以终止标准 PPP会话。 Step 1414: The session relay and the IP edge device exchange the Termination-Request message and the Termination-Ack message to terminate the standard PPP session.
步骤 1415 : 当标准 PPP会话终止时, Termination- Ack报文触发 IP边 缘设备或会话中继发送 PADT4艮文, 以终止 PPPoE会话。 Step 1415: When the standard PPP session is terminated, the Termination-Ack message triggers the IP edge device or the session relay to send the PADT4 message to terminate the PPPoE session.
上述两个实施例描述了包括 DHCP认证的 IP会话到不包括认证过程 的 PPPoE会话的转换过程, 以及描述了包括 DHCP认证的 IP会话到包括 Chap认证过程的 PPPoE会话的转换过程, 包括 DHCP认证的 IP会话到包 括其它认证过程的 PPPoE会话的转换过程与上述两个实施例的流程类 似, 可参照执行, 在此不再赘述。 The above two embodiments describe a conversion process from an IP session including DHCP authentication to a PPPoE session not including an authentication process, and a conversion process describing an IP session including DHCP authentication to a PPPoE session including a Chap authentication process, including DHCP authentication. The process of converting the IP session to the PPPoE session including the other authentication process is similar to the process of the foregoing two embodiments, and may be referred to for execution, and details are not described herein again.
参见图 15 A, PPPoE会话包括认证过程及 IP会话包括 EAP认证时, IP 会话到 PPPoE会话的转换方法流程如下: Referring to Figure 15A, the PPPoE session includes the authentication process and the IP session includes EAP authentication. The process of converting the IP session to the PPPoE session is as follows:
步骤 1500 A:进入 EAP认证启动阶段。 Suppliant发起 IP会话的创建过 程, 启动 IP会话的认证和地址分配过程。 Step 1500 A: Enter the EAP authentication startup phase. Suppliant initiates the creation of an IP session and initiates the authentication and address assignment process for the IP session.
步骤 1500B:进入 PPPoE发现阶段,即创建 PPPoE会话和 PPPoE会话。 会话中继发起 PPPoE会话的创建过程, 并根据获得的 Suppliant的 MAC地 址与 IP边缘设备进行交互, 实现和完成 PPPoE发现阶段。 Step 1500B: Enter the PPPoE discovery phase, that is, create a PPPoE session and a PPPoE session. The session relay initiates the PPPoE session creation process, and interacts with the IP edge device according to the obtained Suppliant MAC address to implement and complete the PPPoE discovery phase.
步骤 1500C:进入 PPPoE会话的链路建立阶段, 即会话中继与 IP边缘 设备进行 LCP协商。 Step 1500C: Enter the link establishment phase of the PPPoE session, that is, the session relay and the IP edge device perform LCP negotiation.
步骤 1500D: 进入 PPPoE会话的认证阶段和 IP会话的 EAP认证阶段。 Suppliant与 IP边缘设备通过会话中继进行交互, 由会话中继将来自 Suppliant的基于 IP的报文转换为基于 PPP的报文并发送给 IP边缘设备,以 及将来自 IP边缘设备的基于 PPP的报文转换为基于 IP的报文并发送给 Suppliant, 由 IP边缘设备根据收到的报文和本地保存的信息对 Suppliant 进行认证。 Step 1500D: Enter the authentication phase of the PPPoE session and the EAP authentication phase of the IP session. Suppliant interacts with IP edge devices through session relays, which converts IP-based packets from Suppliant into PPP-based messages and sends them to IP edge devices, as well as PPP-based packets from IP edge devices. The text is converted to an IP-based message and sent to Suppliant, which authenticates the Suppliant by the IP edge device based on the received message and the locally saved information.
步骤 1500E: 在认证成功后, 进入地址分配阶段。 Suppliant发起地
址分配过程 , 由会话中继代替 Suppliant向 IP边缘设备(或 DHCP服务器) 请求获得 Suppliant的 IP地址。 会话中继将 IP边缘设备(或 DHCP服务器) 分配的第一 IP地址发送给 Suppliant。 或者, 会话中继为 Suppliant分配一 个第二 IP地址,该第二 IP地址与 IP边缘设备 (或 DHCP服务器)分配的第 ― IP地址——对应。 Step 1500E: After the authentication is successful, enter the address allocation phase. Suppliant In the address allocation process, the session relay replaces the Suppliant to request the IP edge device (or DHCP server) to obtain the IP address of the Suppliant. The session relay sends the first IP address assigned by the IP edge device (or DHCP server) to the Suppliant. Alternatively, the session relay assigns a second IP address to the Suppliant, the second IP address corresponding to the IP address assigned by the IP edge device (or DHCP server).
步骤 1500F:进入数据传输阶段。 Suppliant与会话中继之间传输 IPoE 会话形式的数据报文 , 会话中继与 IP边缘设备之间传输 PPPoE会话形式 的数据报文。 Step 1500F: Enter the data transmission phase. The data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of a PPPoE session is transmitted between the session relay and the IP edge device.
步骤 1500G: 数据传输完毕后, Suppliant向会话中继发送 DHCP Release报文, 以请求释放本地的 IP地址, IP会话终止。 Step 1500G: After the data transmission is completed, Suppliant sends a DHCP Release message to the session relay to request to release the local IP address, and the IP session is terminated.
步骤 1500H: 进入链路终止阶段。 会话中继与 IP边缘设备交互以终 止 PPPoE会话。 Step 1500H: Enter the link termination phase. The session relay interacts with the IP edge device to terminate the PPPoE session.
步骤 15001: IP边缘设备或会话中继发送 PADT4艮文, 以终止 PPPoE 会话。 Step 15001: The IP edge device or session relay sends a PADT4 message to terminate the PPPoE session.
下面对几种关于 PPPoE会话和 IP会话的常用认证方法的会话转换过 程进行详细描述。 The following is a detailed description of several session conversion procedures for common authentication methods for PPPoE sessions and IP sessions.
参见图 15B , PPPoE会话包括 CHAP认证及 IP会话包括承载在 EAPoL 上的 EAP认证时 , IP会话到 PPPoE会话的转换方法流程如下: Referring to FIG. 15B, when the PPPoE session includes the CHAP authentication and the IP session includes the EAP authentication carried on the EAPoL, the process of converting the IP session to the PPPoE session is as follows:
步骤 1501 : Suppliant发送 EAPoL启动( EAPoL-St会话中继 t )报文给 会话中继, 以启动 EAP认证。 其中, EAPoL-St会话中继 t报文表明采用承 载在 EAPoL上的 EAP认证。 Step 1501: Suppliant sends an EAPoL start (EAPoL-St session relay t) message to the session relay to start EAP authentication. The EAPoL-St session relay t message indicates that the EAP authentication carried on the EAPoL is adopted.
步骤 1502: 会话中继和 IP边缘设备进行 PPPoE发现阶段的交互, 具 体过程参见步骤 1302 -步骤 1305。 Step 1502: The session relay and the IP edge device perform the PPPoE discovery phase interaction. For the specific process, refer to step 1302 - step 1305.
步骤 1503: 进入链路建立阶段, 会话中继和 IP边缘设备进行 LCP协 商。 Step 1503: Enter the link establishment phase, and the session relay and the IP edge device perform LCP negotiation.
步骤 1504 : 进入认证阶段。 IP边缘设备发送携带 Chap-Challenge认 证信息的 PPP LCP4艮文给会话中继。
步骤 1505: 会话中继发送 EAP Request/Identity报文给 Suppliant, 以 及 Suppliant返回 EAP-Response/Identity才艮文, 其中, EAP Request/Identity 才艮文和 EAP-Response/Identity才艮文均承载在 EAPol 艮文上。 Step 1504: Enter the authentication phase. The IP edge device sends the PPP LCP4 message carrying the Chap-Challenge authentication information to the session relay. Step 1505: The session relay sends an EAP Request/Identity message to the Suppliant, and the Suppliant returns an EAP-Response/Identity message, where the EAP Request/Identity message and the EAP-Response/Identity message are both carried in the EAPol. On the text.
步骤 1506: 会话中继将 PPPoE会话 ID与 EAP Identity绑定。 Step 1506: The session relay binds the PPPoE session ID to the EAP Identity.
步骤 1507: 会话中继将 Chap-Challenge转换为 EAP-Request/MD5 Step 1507: Session Relay converts Chap-Challenge to EAP-Request/MD5
Challenge , 以及将 PPP LCP才艮文转换为 EAPoL才艮文, 并将 载 EAP-Request/MD5 Challenge的 EAPol 艮文发送给 Suppliant。 Challenge, and convert the PPP LCP essay into EAPoL essay, and send the EAPol essay containing EAP-Request/MD5 Challenge to Suppliant.
步骤 1508 : Suppliant通 过 EAPoL 4艮文返 回 处理后 的 EAP-Response/MD5 Challenge给会话中继。 Step 1508: Suppliant returns the processed EAP-Response/MD5 Challenge to the session relay through the EAPoL 4 message.
步骤 1509: 会话中继将 EAP-Response/MD5 Challenge转换为 Step 1509: Session Relay converts the EAP-Response/MD5 Challenge to
Chap-Response , 以及将 EAPoL报文转换为 PPP LCP报文, 并将承载 Chap-Response的 PPP LCP4艮文发送给 IP边缘设备。 Chap-Response, and convert the EAPoL packet into a PPP LCP packet, and send the PPP LCP4 packet carrying the Chap-Response to the IP edge device.
步骤 1510: IP边缘设备根据收到的 PPP LCP报文进行认证, 并在认 证成功时, 通过 PPP LCP报文通知会话中继, Chap认证成功。 Step 1510: The IP edge device performs authentication according to the received PPP LCP packet, and when the authentication succeeds, the PPP LCP packet is used to notify the session relay, and the Chap authentication succeeds.
步錄 1511 :会话中继生成 EAP success, 并将 EAP success通过 EAPoL 才艮文发送给 Suppliant。 Step 1511: The session relay generates an EAP success and sends the EAP success to the Suppliant via the EAPoL message.
步骤 1512 : 进入地址分配阶段。 Suppliant向会话中继发送 DHCP Discover才艮文, 以启动 DHCP地址分配过程。 Step 1512: Enter the address allocation phase. Suppliant sends a DHCP Discover message to the session relay to initiate the DHCP address allocation process.
步骤 1513: DHCP Discover报文触发会话中继发送 Config-Request报 文给 IP边缘设备, 以请求配置 IP地址。 Step 1513: The DHCP Discover message triggers the session relay to send a Config-Request message to the IP edge device to request an IP address.
步骤 1514:会话中继返回 DHCP Offer报文给 Suppliant,以响应 DHCP Discover报文。 Step 1514: The session relay returns a DHCP Offer message to the Suppliant in response to the DHCP Discover message.
其中, 会话中继发送 Config-Request报文与会话中继返回 DHCP Offer报文给 Suppliant是两个独立的操作, 可同时进行。 The session relay sends a Config-Request message and the session relay returns a DHCP Offer message to Suppliant, which is two independent operations, which can be performed simultaneously.
步骤 1515: Suppliant向会话中继发送 DHCP Request报文, 以请求获 得 IP地址。 Step 1515: Suppliant sends a DHCP Request message to the session relay to request an IP address.
步骤 1516: IP边缘设备向会话中继返回 Config-Nak报文,将 PPP过程
分配的第一 IP地址带给会话中继。 Step 1516: The IP edge device returns a Config-Nak packet to the session relay, and the PPP process is performed. The assigned first IP address is brought to the session relay.
步骤 1517: 会话中继将 PPP过程分配的 IP地址通过 DHCP ACK报文 发送给 Suppliant。 或者, 会话中继为 Suppliant分配一个第二 IP地址并携 带在 DHCP ACK4艮文中, 该第二 IP地址与 PPP过程分配的 IP地址——对 应。 Step 1517: The session relay sends the IP address assigned by the PPP process to the Suppliant through the DHCP ACK message. Alternatively, the session relay assigns a second IP address to the Suppliant and carries it in the DHCP ACK4 message, the second IP address corresponding to the IP address assigned by the PPP process.
IP边缘设备和会话中继还可进一步进行关于用于业务的 NCP协商。 步骤 1518:在认证和地址分配成功后,进入数据传输阶段。 Suppliant 与会话中继之间传输 IPoE会话形式的数据报文 , 会话中继与 IP边缘设备 之间传输 PPPoE会话形式的数据报文。 由会话中继进行 IPoE会话形式的 数据报文与 PPPoE会话形式的数据报文之间的转换, 会话中继只需依据 PPP或 IP更改数据 4艮文的首部及尾部, 净荷部分不需变化。 IP edge devices and session relays can further make NCP negotiation for services. Step 1518: After the authentication and address assignment are successful, the data transmission phase is entered. The data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of a PPPoE session is transmitted between the session relay and the IP edge device. The session relay performs the conversion between the data packet in the form of the IPoE session and the data packet in the PPPoE session format. The session relay only needs to change the header and the tail of the data according to the PPP or the IP, and the payload portion does not need to be changed. .
步骤 1519 : 需要结束数据传输阶段时, Suppliant向会话中继发送 DHCP Release报文, 以请求释放 Suppliant的 IP地址。 Step 1519: When the data transmission phase needs to be ended, Suppliant sends a DHCP Release message to the session relay to request the release of the Suppliant IP address.
步骤 1520: 会话中继和 IP边缘设备交互 Termination-Request报文和 Termination- Ack才艮文, 以终止标准 PPP会话。 Step 1520: The session relay and the IP edge device exchange Termination-Request packets and Termination-Ack messages to terminate the standard PPP session.
步骤 1521: 当标准 PPP会话终止时 , Termination- Ack报文触发 IP边 缘设备或会话中继发送 PADT4艮文, 以终止 PPPoE会话。 Step 1521: When the standard PPP session is terminated, the Termination-Ack message triggers the IP edge device or the session relay to send the PADT4 message to terminate the PPPoE session.
参见图 16 , PPPoE会话包括 EAP认证及 IP会话包括承载在 EAPoL上 的 E AP认证时, IP会话到 PPPoE会话的转换方法流程如下: Referring to Figure 16, when the PPPoE session includes the EAP authentication and the IP session includes the EAP authentication carried on the EAPoL, the process of converting the IP session to the PPPoE session is as follows:
步骤 1601 : Suppliant发送 EAPoL-St会话中继 t报文给会话中继, 以启 动 EAP认证。 Step 1601: Suppliant sends an EAPoL-St session relay t message to the session relay to start EAP authentication.
步骤 1602: 会话中继和 IP边缘设备进行 PPPoE发现阶段的交互, 具 体过程参见步骤 1302 -步骤 1305。 Step 1602: The session relay and the IP edge device perform the PPPoE discovery phase interaction. For the specific process, refer to step 1302 - step 1305.
步骤 1603: 进入链路建立阶段, 会话中继和 IP边缘设备进行 LCP协 商。 Step 1603: Enter the link establishment phase, and the session relay and the IP edge device perform LCP negotiation.
步骤 1604 : 进入认证阶段。 IP边缘设备向会话中继发送承载 EAP-Request/Identity的 PPP LCP才艮文。
步骤 1605: 会话中继将 PPP LCP报文转换为 EAPoL报文, 在 EAPoL 才艮文中携带 EAP-Request/Identity并发送给 Suppliant。 Step 1604: Enter the authentication phase. The IP edge device sends the PPP LCP carrying the EAP-Request/Identity to the session relay. Step 1605: The session relay converts the PPP LCP packet into an EAPoL packet, and carries the EAP-Request/Identity in the EAPoL packet and sends it to the Suppliant.
步骤 1606: Suppliant发送承载 EAP-Response/Identity的 EAPol 艮文给 会话中继。 Step 1606: Suppliant sends an EAPol message carrying EAP-Response/Identity to the session relay.
步骤 1607: 会话中继将 EAPoL报文转换为 PPP LCP才艮文, 并在 PPP Step 1607: The session relay converts the EAPoL packet into a PPP LCP packet, and in the PPP
LCP才艮文中携带 EAP- Response/Identity, 发送给 IP边缘设备。 The LCP carries the EAP-Response/Identity and sends it to the IP edge device.
步骤 1608: 进行 EAP Method协商, 以及认证方法交换的过程。 具体 包括: Suppliant和会话中继之间均采用 EAPoL报文承载 EAP进行交互, 在会话中继和 IP边缘设备之间均采用 PPP LCP报文承载 EAP进行交互, 直到 EAP认证过程结束。 Step 1608: Perform EAP Method negotiation and the process of authentication method exchange. The method includes: Between the Suppliant and the session relay, the EAPoL packet is used to carry the EAP, and the PPP LCP packet is used to carry the EAP interaction between the session relay and the IP edge device until the EAP authentication process ends.
步骤 1609: IP边缘设备根据收到的 PPP LCP报文进行认证, 并在认 证成功时 , 将 EAP success封装在 PPP LCP才艮文中发送给会话中继 , 通知 会话中继认证成功。 Step 1609: The IP edge device performs authentication according to the received PPP LCP packet, and when the authentication succeeds, the EAP success is encapsulated in the PPP LCP packet and sent to the session relay, and the session relay authentication is notified.
步骤 1610: 会话中继将 PPP LCP报文转换为 EAPoL报文, 并将 EAP success携带在 802. lx才艮文中发送给 Suppliant。 Step 1610: The session relay converts the PPP LCP packet into an EAPoL packet, and sends the EAP success to the Suppliant in the 802. lx message.
步骤 1611: 进入地址分配阶段。 Suppliant向会话中继发送 DHCP Discover才艮文, 以启动 DHCP地址分配过程。 Step 1611: Enter the address allocation phase. Suppliant sends a DHCP Discover message to the session relay to initiate the DHCP address allocation process.
步骤 1612: DHCP Discover报文触发会话中继发送 Config-Request报 文给 IP边缘设备, 以请求配置 IP地址。 Step 1612: The DHCP Discover message triggers the session relay to send a Config-Request message to the IP edge device to request an IP address.
步骤 1613:会话中继返回 DHCP Offer报文给 Suppliant,以响应 DHCP Step 1613: The session relay returns a DHCP Offer message to Suppliant in response to DHCP.
Discover报文。 Discover message.
步骤 1614: Suppliant向会话中继发送 DHCP Request报文, 以请求获 得 IP地址。 Step 1614: Suppliant sends a DHCP Request message to the session relay to request an IP address.
步骤 1615: IP边缘设备向会话中继返回 Config-Nak报文,将 PPP过程 分配的 IP地址带给会话中继。 Step 1615: The IP edge device returns a Config-Nak packet to the session relay, and brings the IP address assigned by the PPP process to the session relay.
步骤 1616: 会话中继将 PPP过程分配的 IP地址通过 DHCP ACK报文 发送给 Suppliant。 或者, 会话中继为 Suppliant分配一个第二 IP地址并携
带在 DHCP ACK4艮文中, 该第二 IP地址与 PPP过程分配的 IP地址——对 应。 Step 1616: The session relay sends the IP address assigned by the PPP process to the Suppliant through the DHCP ACK message. Or, the session relay assigns a second IP address to the Suppliant and carries In the DHCP ACK4 message, the second IP address corresponds to the IP address assigned by the PPP process.
IP边缘设备和会话中继还可进一步进行 NCP协商的其它操作。 The IP edge device and the session relay can further perform other operations of NCP negotiation.
步骤 1617:在认证和地址分配成功后,进入数据传输阶段。 Suppliant 与会话中继之间传输 IPoE会话形式的数据报文, 会话中继与 IP边缘设备 之间传输 PPPoE会话形式的数据报文。 由会话中继进行 IPoE会话形式的 数据报文与 PPPoE会话形式的数据报文之间的转换, 会话中继只需依据 PPP或 IP更改数据 4艮文的首部及尾部 , 净荷部分不需变化。 Step 1617: After the authentication and address assignment are successful, the data transmission phase is entered. The data packet in the form of an IPoE session is transmitted between the Suppliant and the session relay, and the data packet in the form of a PPPoE session is transmitted between the session relay and the IP edge device. The session relay performs the conversion between the data packet in the form of the IPoE session and the data packet in the PPPoE session format. The session relay only needs to change the header and the tail of the data according to the PPP or the IP, and the payload portion does not need to be changed. .
步骤 1618 : 需要结束数据传输阶段时, Suppliant向会话中继发送 DHCP Release报文, 以请求释放 Suppliant的 IP地址。 Step 1618: When the data transmission phase needs to be ended, Suppliant sends a DHCP Release message to the session relay to request the release of the Suppliant IP address.
步骤 1619: 会话中继和 IP边缘设备交互 Termination-Request报文和 Termination- Ack才艮文, 以终止标准 PPP会话。 Step 1619: The session relay and the IP edge device exchange the Termination-Request message and the Termination-Ack message to terminate the standard PPP session.
步骤 1620 : 当标准 PPP会话终止时, Termination- Ack报文触发 IP边 缘设备或会话中继发送 PADT4艮文, 以终止 PPPoE会话。 Step 1620: When the standard PPP session is terminated, the Termination-Ack message triggers the IP edge device or the session relay to send a PADT4 message to terminate the PPPoE session.
上述两个实施例描述了包括承载在 EAPoL上的 EAP认证的 IP会话到 包括 Chap认证过程的 PPPoE会话的转换过程, 以及描述了包括承载在 EAPoL上的 EAP认证的 IP会话到包括 EAP认证过程的 PPPoE会话的转换 过程, 包括 E AP认证的 IP会话到 PPPoE会话的转换过程与上述两个实施 例的流程类似, 可参照执行, 在此不再赘述。 The above two embodiments describe a conversion process including an EAP-authenticated IP session carried on the EAPoL to a PPPoE session including a Chap authentication process, and an IP session including EAP authentication carried on the EAPoL to include an EAP authentication process. The conversion process of the PPPoE session, including the EAP-authenticated IP session to the PPPoE session, is similar to the process of the foregoing two embodiments, and can be referred to for execution.
以上实施例描述了 PPPoE会话与 IP会话之间的转换过程, PPPoA会 话与 IP会话之间的转换过程可参照执行, 在此不再赘述。 是认证转换, 使应用不同协议的 UE和网络侧之间实现数据传输, 以及 UE在应用不同协议的网络之漫游过程中,其业务不中断,可增强用户体 验。 并且, 本发明实施例清楚的描述了包括 4种认证方式的 PPP会话与包 括 5种认证方式的 IP会话的转换方法 , 使各种情况下的 PPP会话和 IP会话 均可实现相互转换, 保持数据传输。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到 本发明可以通过硬件实现, 也可以可借助软件加必要的通用硬件平台的 方式来实现基于这样的理解, 本发明的技术方案可以以软件产品的形式 体现出来, 该软件产品可以存储在一个非易失性存储介质 (可以是The above embodiment describes the conversion process between the PPPoE session and the IP session. The conversion process between the PPPoA session and the IP session can be referred to for execution, and details are not described herein again. It is an authentication conversion, which enables data transmission between the UE and the network side that apply different protocols, and the UE does not interrupt the service during the roaming process of the network using different protocols, which can enhance the user experience. Moreover, the embodiment of the present invention clearly describes a PPP session including four authentication modes and a conversion method of an IP session including five authentication modes, so that PPP sessions and IP sessions in various situations can be mutually converted, and data is maintained. transmission. Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by hardware, or can be implemented by means of software plus necessary general hardware platform, and the technical solution of the present invention. It can be embodied in the form of a software product that can be stored in a non-volatile storage medium (may be
CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一台计算机 设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个 实施例所述的方法。 A CD-ROM, a USB flash drive, a removable hard disk, etc., includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
总之, 以上所述仅为本发明的较佳实施例而已, 并非用于限定本发 明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同 替换、 改进等, 均应包含在本发明的保护范围之内。
In summary, the above description is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
Claims
1、 一种通信系统会话连接方法, 其特征在于, 该方法用于建立点 到点协议 PPP会话通信对端到互联网协议 IP会话通信对端的会话连接, 该方法包括如下步骤: A communication system session connection method, characterized in that the method is used for establishing a session connection of a PPP session communication peer to an Internet Protocol IP session communication peer, the method comprising the following steps:
通过 PPP会话与 PPP会话通信对端进行会话通信; Performing session communication with the PPP session communication peer through the PPP session;
通过 IP会话与 IP会话通信对端进行会话通信; Session communication with the IP session communication peer through the IP session;
将 PPP会话中需要由 IP会话通信对端处理的信息以 IP会话形式转发 给 IP会话通信对端 , 将 IP会话中需要由 PPP会话通信对端处理的信息以 PPP会话形式转发给 PPP会话通信对端。 The information that needs to be processed by the IP session communication peer in the PPP session is forwarded to the IP session communication peer in the form of an IP session, and the information that needs to be processed by the PPP session communication peer in the IP session is forwarded to the PPP session communication pair in the form of a PPP session. end.
2、 如权利要求 1所述的方法, 其特征在于, 2. The method of claim 1 wherein:
与 PPP会话通信对端之间的会话通信包括 PPP会话创建过程中的 PPP会话认证阶段, 该 PPP会话认证阶段包括密码认证协议 PAP认证方 式、 挑战握手协议 Chap认证方式或可扩展认证协议 EAP认证方式; 和 / 或 The session communication between the peers and the peers of the PPP session includes the PPP session authentication phase in the PPP session creation process. The PPP session authentication phase includes the password authentication protocol PAP authentication mode, the challenge handshake protocol Chap authentication mode, or the scalable authentication protocol EAP authentication mode. ; and / or
与 IP会话通信对端之间的会话通信包括 IP会话创建过程中的 IP会话 Session communication with the IP session communication peer includes IP session during IP session creation
3、 如权利要求 2所述的方法, 其特征在于, 在所述 IP会话认证阶段 中, 3. The method of claim 2, wherein in the IP session authentication phase,
所述 DHCP认证方式包括采用 82选项的 DHCP认证方式、 采用 The DHCP authentication mode includes the DHCP authentication mode using the 82 option.
PAP/Chap模式的 DHCP认证方式; DHCP authentication mode in PAP/Chap mode;
所述 EAP认证方式包括采用 EAP模式的 DHCP认证方式、 承载在 PANA上的 EAP认证方式或承载在局域网上的 EAP认证方式; 其中, The EAP authentication mode includes an EAP mode DHCP authentication mode, an EAP authentication mode carried on the PANA, or an EAP authentication mode carried on the local area network;
4、 如权利要求 3所述的转换方法, 其特征在于, 在所述 DHCP认证 方式中,与 IP会话通信对端通过 DHCP发现 Discover报文中的 DHCP认证 选项交互支持的认证方式; 其中,
当 DHCP Discover报文未包括认证选项时,表示采用 82选项的 DHCP 认证方式;当 DHCP Discover才艮文包括认证选项且认证选项为 Chap或 PAP 模式时, 表示采用 Chap模式或 PAP模式的 DHCP认证方式; 当 DHCP Discover报文包括认证选项且认证选项为 EAP模式时 , 表示采用 EAP模 式的 DHCP认证方式。 The conversion method according to claim 3, wherein in the DHCP authentication mode, the authentication mode supported by the DHCP authentication option in the Discover message is detected by the peer of the IP session communication; When the DHCP Discover message does not include the authentication option, it indicates that the DHCP authentication mode is adopted. If the DHCP Discover message includes the authentication option and the authentication option is Chap or PAP mode, it indicates that the DHCP authentication mode is in Chap mode or PAP mode. When the DHCP Discover message includes the authentication option and the authentication option is EAP mode, it indicates that the DHCP authentication mode is adopted in EAP mode.
5、 如权利要求 2所述的转换方法, 其特征在于, 如果所述 PPP会话 创建阶段采用的认证方式与所述 IP会话创建阶段采用的认证方式不匹 配, 将 PPP会话创建采用的认证方式转换为 IP会话创建阶段采用的认证 方式, 以及将 IP会话创建阶段采用的认证方式转换为 PPP会话创建阶段 采用的认证方式。 The conversion method according to claim 2, wherein if the authentication mode adopted in the PPP session creation phase does not match the authentication mode adopted in the IP session creation phase, the authentication mode used in the PPP session creation is converted. The authentication mode used in the IP session creation phase and the authentication mode adopted in the IP session creation phase are converted to the authentication mode used in the PPP session creation phase.
6、 如权利要求 2至 4任一项所述的方法, 其特征在于, 如果所述 IP 会话创建阶段和所述 PPP会话创建阶段中仅有一方会话创建阶段包括 EAP认证方式, 在进行认证方式转换前, 与仅有一方会话创建阶段的会 话通信对端交互 EAP身份, 并将另一方会话通信对端的 MAC地址和 EAP 身份绑定。 The method according to any one of claims 2 to 4, wherein, if only one of the session creation phases of the IP session creation phase and the PPP session creation phase includes an EAP authentication mode, the authentication mode is performed. Before the conversion, the peer communication session with the peer-only session creation phase interacts with the EAP identity, and binds the MAC address of the other party's session communication peer to the EAP identity.
7、 如权利要求 2至 4任一项所述的方法, 其特征在于, 如果所述 IP 会话创建阶段和所述 PPP会话创建阶段中仅 IP会话创建阶段包括认证阶 段, 代替 PPP会话通信对端与 IP会话通信对端交互以完成认证阶段。 The method according to any one of claims 2 to 4, wherein, if the IP session creation phase and the PPP session creation phase only include an authentication phase, instead of a PPP session communication peer Communicate with the IP session communication peer to complete the authentication phase.
8、 如权利要求 2至 4任一项所述的方法, 其特征在于, 当所述 IP会 话通信对端位于网络侧时, The method according to any one of claims 2 to 4, wherein when the IP conference communication peer is located on the network side,
如果所述 IP会话创建阶段采用 82选项的 DHCP认证方式, 进行携带 接入环路标识的 PPP会话报文与以 82选项的格式携带接入环路标识的 IP 会话 4艮文之间的转换, 以便网络侧中的认证服务器根据接入环路标识对 PPP会话通信对端进行认证; If the IP session creation phase adopts the DHCP authentication mode of the 82 option, the PPP session packet carrying the access loop identifier and the IP session carrying the access loop identifier in the format of the 82 option are converted. The authentication server in the network side authenticates the PPP session communication peer according to the access loop identifier.
如果所述 IP会话创建阶段采用 PAP/Chap模式进行 DHCP认证, 对网 络侧中认证服务器发送的 Chap挑战字进行处理, 并回复 Chap响应, 以便 认证服务器根据 Chap响应中的认证信息进行认证;
如果所述 IP会话创建阶段采用 EAP认证方式, 根据网络侧中认证服 务器发送的 EAP请求返回 EAP响应, 以便认证服务器根据 EAP响应中的 认证信息进行认证。 If the IP session creation phase adopts the PAP/Chap mode for DHCP authentication, the Chap challenge word sent by the authentication server in the network side is processed, and the Chap response is returned, so that the authentication server performs authentication according to the authentication information in the Chap response. If the EAP authentication mode is adopted in the IP session creation phase, the EAP response is returned according to the EAP request sent by the authentication server in the network side, so that the authentication server performs authentication according to the authentication information in the EAP response.
9、 如权利要求 2至 4任一项所述的方法, 其特征在于, 会话创建阶 段包括地址分配阶段, 其中, 代替用户侧的会话通信对端向网络侧中的 The method according to any one of claims 2 to 4, wherein the session creation phase comprises an address allocation phase, wherein: instead of the user-side session communication peer to the network side
DHCP服务器请求并获得第一 IP地址; 为用户侧的会话通信对端分配第 二 IP地址, 并建立第二 IP地址与第一 IP地址的对应关系; The DHCP server requests and obtains the first IP address; assigns a second IP address to the session communication peer end on the user side, and establishes a correspondence between the second IP address and the first IP address;
当向用户侧的会话通信对端分配第二 IP地址后将来自用户侧的会 话通信对端的 4艮文中的第二 IP地址转换为对应的第一 IP地址后转发给网 络侧的会话通信对端, 以及将来自网络侧的会话通信对端的报文中的第 一 IP地址转换为对应的第二 IP地址后转发给用户侧的会话通信对端。 After the second IP address is assigned to the session communication peer of the user side, the second IP address of the session communication peer end of the user side is converted into the corresponding first IP address, and then forwarded to the session communication peer end of the network side. And converting the first IP address in the packet from the session communication peer end of the network side to the corresponding second IP address, and then forwarding the message to the session communication peer end of the user side.
10、 如权利要求 2所述的方法, 其特征在于, PPP的会话创建阶段包 括: 10. The method of claim 2, wherein the session creation phase of the PPP comprises:
以太网承载点到点协议 PPPoE发现阶段: 与 PPP会话通信对端建立 连接, 并获得 PPP会话标识; Ethernet bears the point-to-point protocol PPPoE discovery phase: establishes a connection with the PPP session communication peer, and obtains the PPP session identifier;
链路建立阶段: 与 PPP会话通信对端进行链路控制协议 LCP协商; 其中, 所述 PPPoE发现阶段包括步骤: Link establishment phase: Perform link control protocol LCP negotiation with the PPP session communication peer; wherein the PPPoE discovery phase includes the following steps:
通过 PPPoE激活发现初始 PADI报文和 PPPoE激活发现确认 PADO才艮 文与 PPP会话通信对端建立连接, 并彼此确定为后续会话对象, 其中用 本地的 MAC地址填充 PADO报文的源地址; The initial PADI message and the PPPoE activation discovery are confirmed by the PPPoE activation. The PADO session establishes a connection with the PPP session communication peer and determines each other as a subsequent session object, wherein the source address of the PADO packet is filled with the local MAC address.
与 PPP会话通信对端通过 PPPoE激活发现请求 PADR报文和 PADS报 文交互 PPP会话标识。 The peer with the PPP session communicates with the PPPoE to discover the request. The PADR packet and the PADS packet exchange PPP session identifier.
11、 一种中继装置, 其特征在于, 包括: 11. A relay device, comprising:
点到点协议 PPP会话接口单元,用于与 PPP会话通信对端交互点到点 协议 PPP会话; Point-to-point protocol PPP session interface unit, used to communicate with the PPP session peer-to-peer point-to-point protocol PPP session;
互联网协议 IP会话接口单元, 用于与 IP会话通信对端交互 IP会话; 会话转换单元, 用于将 ppp会话中需要由 IP会话通信对端处理的信
息以 IP会话形式发送给 IP会话通信对端,将 IP会话中需要由 PPP会话通信 对端处理的信息以 PPP会话形式发送给 PPP会话通信对端。 An internet protocol IP session interface unit, configured to exchange an IP session with an IP session communication peer; a session conversion unit, configured to process a letter in the ppp session that needs to be processed by the IP session communication peer The information is sent to the IP session communication peer in the form of an IP session, and the information that needs to be processed by the PPP session communication peer in the IP session is sent to the PPP session communication peer in the form of a PPP session.
12、 如权利要求 11所述的装置, 其特征在于, 所述会话转换单元包 括认证中继 AR, AR用于 PPP会话和 IP会话中认证阶段的转换, 其中, 所 述认证阶段的转换包括如下任意一种: The apparatus according to claim 11, wherein the session conversion unit includes an authentication relay AR, and the AR is used for conversion of an authentication phase in a PPP session and an IP session, where the conversion of the authentication phase includes the following Any one:
如果所述 PPP会话创建阶段采用的认证方式与所述 IP会话创建阶段 采用的认证方式不匹配, 将 PPP会话创建采用的认证方式转换为 IP会话 创建阶段采用的认证方式, 以及将 IP会话创建阶段采用的认证方式转换 为 PPP会话创建阶段采用的认证方式; If the authentication mode adopted in the PPP session creation phase does not match the authentication mode used in the IP session creation phase, the authentication mode used in the PPP session creation is converted to the authentication mode adopted in the IP session creation phase, and the IP session creation phase is adopted. The adopted authentication mode is converted to the authentication mode adopted in the PPP session creation phase;
如果所述 IP会话创建阶段和所述 PPP会话创建阶段中仅 IP会话创建 阶段包括认证阶段, 代替 PPP会话通信对端与 IP会话通信对端交互以完 成认证阶段; If the IP session creation phase and the PPP session creation phase include the authentication phase, the PPP session communication peer and the IP session communication peer interaction are performed to complete the authentication phase;
如果所述 IP会话创建阶段和所述 PPP会话创建阶段中仅有一方会话 创建阶段包括 EAP认证方式, 在进行认证方式转换前, 与仅有一方会话 创建阶段的会话通信对端交互 EAP身份, 并将另一方会话通信对端的 MAC地址和 EAP身份绑定。 If only one of the session creation phases of the IP session creation phase and the PPP session creation phase includes the EAP authentication mode, the session communication peer interacts with the EAP identity only before the authentication mode is changed, and Bind the MAC address of the other party's session communication peer to the EAP identity.
13、 如权利要求 11所述中继装置, 其特征在于, 所述中继装置为逻 辑装置, 存在于家庭网关、 接入节点 AN或 IP边缘设备中; 或者 The relay device according to claim 11, wherein the relay device is a logical device and exists in a home gateway, an access node AN, or an IP edge device; or
所述中继装置为物理实体, 位于用户设备和 IP边缘设备之间。 The relay device is a physical entity located between the user equipment and the IP edge device.
14、 一种通信系统, 其特征在于, 所述通信系统包括如权利要求 11 至 13任一项所述的中继装置。 A communication system, characterized in that the communication system comprises the relay device according to any one of claims 11 to 13.
15、 一种计算机可读介质, 该计算机可读介质具有计算机可执行指 令, 用于执行如权利要求 1至 10任一项所述的步骤。
A computer readable medium having computer executable instructions for performing the steps of any one of claims 1 to 10.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101438973A CN101365238B (en) | 2007-08-06 | 2007-08-06 | Session converting method and apparatus |
CN200710143897.3 | 2007-08-06 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2009018774A1 true WO2009018774A1 (en) | 2009-02-12 |
Family
ID=40340966
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2008/071900 WO2009018774A1 (en) | 2007-08-06 | 2008-08-06 | A session connection method,apparatus and system in communication system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101365238B (en) |
WO (1) | WO2009018774A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984186A (en) * | 2011-09-05 | 2013-03-20 | 中兴通讯股份有限公司 | A method and an apparatus for establishing a session |
EP3035643A4 (en) * | 2013-08-15 | 2016-08-03 | Huawei Device Co Ltd | MODEM CONNECTION METHOD AND BROADBAND DEVICE |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101854339B (en) * | 2009-04-03 | 2014-07-09 | 华为技术有限公司 | Information transmission implementation method, module and transmission network node |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003015315A1 (en) * | 2001-08-09 | 2003-02-20 | Initium Co., Ltd. | Handover/roaming mechanism supporting system in a short-range wireless network based on the bluetooch |
CN1471277A (en) * | 2002-06-26 | 2004-01-28 | 三星电子株式会社 | Packet data processing equipment in packet data communication system |
CN1482806A (en) * | 2002-09-13 | 2004-03-17 | 深圳市中兴通讯股份有限公司 | Method for supporting asymmetrie digital subscriber line access in embedded operating system |
WO2006056288A1 (en) * | 2004-11-26 | 2006-06-01 | Siemens Schweiz Ag | Method for configuring a device using dhcp via pppoe |
US7088737B1 (en) * | 2000-10-27 | 2006-08-08 | Redback Networks Inc. | Method and apparatus for combining packets having different protocol encapsulations within a circuit |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6892233B1 (en) * | 2000-05-04 | 2005-05-10 | Nortel Networks Limited | Optical communication network and method of remotely managing multiplexers |
CN100589374C (en) * | 2004-07-08 | 2010-02-10 | 中兴通讯股份有限公司 | A Method of Preventing IP Address Leakage When Using Point-to-Point Protocol |
CN100502332C (en) * | 2004-09-01 | 2009-06-17 | 中兴通讯股份有限公司 | A Method of Improving Session Capacity of Broadband Access Server Point-to-Point Protocol |
US7961683B2 (en) * | 2004-09-30 | 2011-06-14 | Alcatel-Lucent Usa Inc. | Active session mobility solution for point-to-point protocol |
-
2007
- 2007-08-06 CN CN2007101438973A patent/CN101365238B/en not_active Expired - Fee Related
-
2008
- 2008-08-06 WO PCT/CN2008/071900 patent/WO2009018774A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7088737B1 (en) * | 2000-10-27 | 2006-08-08 | Redback Networks Inc. | Method and apparatus for combining packets having different protocol encapsulations within a circuit |
WO2003015315A1 (en) * | 2001-08-09 | 2003-02-20 | Initium Co., Ltd. | Handover/roaming mechanism supporting system in a short-range wireless network based on the bluetooch |
CN1471277A (en) * | 2002-06-26 | 2004-01-28 | 三星电子株式会社 | Packet data processing equipment in packet data communication system |
CN1482806A (en) * | 2002-09-13 | 2004-03-17 | 深圳市中兴通讯股份有限公司 | Method for supporting asymmetrie digital subscriber line access in embedded operating system |
WO2006056288A1 (en) * | 2004-11-26 | 2006-06-01 | Siemens Schweiz Ag | Method for configuring a device using dhcp via pppoe |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984186A (en) * | 2011-09-05 | 2013-03-20 | 中兴通讯股份有限公司 | A method and an apparatus for establishing a session |
EP3035643A4 (en) * | 2013-08-15 | 2016-08-03 | Huawei Device Co Ltd | MODEM CONNECTION METHOD AND BROADBAND DEVICE |
US10009290B2 (en) | 2013-08-15 | 2018-06-26 | Huawei Device Co., Ltd. | Method and broadband device for modem dial-up |
Also Published As
Publication number | Publication date |
---|---|
CN101365238A (en) | 2009-02-11 |
CN101365238B (en) | 2013-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4865805B2 (en) | Method and apparatus for supporting different authentication certificates | |
CN110958272B (en) | Identity authentication method, identity authentication system and related equipment | |
WO2014117525A1 (en) | Method and device for handling authentication of static user terminal | |
WO2007000120A1 (en) | An authentication access system, method and server | |
WO2008106881A1 (en) | A ppp access method, corresponding system and access node device | |
CN100574195C (en) | Safety access method and system thereof based on DHCP | |
US8495713B2 (en) | Systems and methods for host authentication | |
WO2012034413A1 (en) | Method for dual stack user management and broadband access server | |
WO2014101449A1 (en) | Method for controlling access point in wireless local area network, and communication system | |
US7715562B2 (en) | System and method for access authentication in a mobile wireless network | |
WO2010000157A1 (en) | Configuration method, device and system for access device | |
WO2006063511A1 (en) | A method for realizing the synchronous authentication among the different authentication control devices | |
CN101547158B (en) | PADT message interaction method and device in PPPoE session | |
US8458773B2 (en) | Method, device, and system for authentication | |
WO2009018774A1 (en) | A session connection method,apparatus and system in communication system | |
AU2004214282B2 (en) | Terminating a session in a network | |
EP4312406A1 (en) | Separate pfcp session model for network access by residential gateways | |
CN102143601B (en) | Broadband access processing method, radio access network (RAN) and communication system | |
JP2006019934A (en) | Call switching method for packet switching network | |
CN102577299B (en) | The Access Network authentication information bearing protocol simplified | |
WO2009089773A1 (en) | Multi-host access authentication method and system for wimax network | |
WO2012022212A1 (en) | Method, apparatus and system for user equipment access | |
WO2013034056A1 (en) | Method and system for processing location information | |
CN114070604B (en) | A New Network Authentication Method, Server and Storage Medium | |
CN117641618A (en) | A business processing method, device and storage medium |
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: 08783893 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: 08783893 Country of ref document: EP Kind code of ref document: A1 |