CN104125191B - Processing method, equipment and the system of point-to-point protocol based on Ethernet - Google Patents
Processing method, equipment and the system of point-to-point protocol based on Ethernet Download PDFInfo
- Publication number
- CN104125191B CN104125191B CN201310141854.7A CN201310141854A CN104125191B CN 104125191 B CN104125191 B CN 104125191B CN 201310141854 A CN201310141854 A CN 201310141854A CN 104125191 B CN104125191 B CN 104125191B
- Authority
- CN
- China
- Prior art keywords
- pppoe
- message
- control
- information
- session
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 51
- 238000012545 processing Methods 0.000 claims description 24
- 238000004806 packaging method and process Methods 0.000 claims description 8
- 238000012546 transfer Methods 0.000 claims description 5
- 238000000926 separation method Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 22
- 238000010586 diagram Methods 0.000 description 14
- 238000005538 encapsulation Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 6
- 238000013475 authorization Methods 0.000 description 5
- 238000012217 deletion Methods 0.000 description 5
- 230000037430 deletion Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 235000014510 cooky Nutrition 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Processing method, equipment and the system of point-to-point protocol based on Ethernet.The present invention provides a kind of PPPoE processing method, equipment and system.This method includes forwarding unit and receives the PPPoE control messages that pppoe client is sent;PPPoE control messages are sent to control device by the forwarding unit;The forwarding unit receives the first information that the control device is sent, and the first information controls message distribution by the control device for the information needed for the pppoe client sends the first PPPoE data messages according to the PPPoE;The first information is sent to the pppoe client by the forwarding unit.The embodiment of the present invention can be realized supports PPPoE under the scene for controlling and forwarding separation, and then can realize PPPoE in SDN equipment.
Description
Technical Field
The present invention relates to communications technologies, and in particular, to a method, a device, and a system for processing a Point-to-Point protocol over Ethernet (PPPoE) based on an Ethernet.
Background
Software Defined Networking (SDN) may provide an open Network interface, providing Network development related applications for Network equipment vendors, Network operators, or third parties. An open flow protocol (OF) is a key technology OF the SDN, the OF is a framework based on control and forwarding separation, and includes an OF controller and an OF switch, the OF controller may be responsible for processing various protocols, running applications, and providing a programming interface to the outside; the OF controller may issue a flow table (flow table) to the OF switch, and the OF switch forwards based on the flow table.
PPPoE is a protocol widely used by network operators, and is currently implemented within a single device. The current OF does not support the service processing OF PPPoE yet, so that PPPoE cannot be supported in the SDN-based network device.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a device, and a system for processing PPPoE, so as to solve the problem that PPPoE cannot be supported in a scenario where control and forwarding are separated.
In a first aspect, a method for processing PPPoE is provided, including:
the forwarding equipment receives a PPPoE control message sent by a PPPoE client;
the forwarding equipment sends the PPPoE control message to control equipment;
the forwarding equipment receives first information sent by the control equipment, the first information is information required by the PPPoE client side for sending a first PPPoE data message, and the control equipment distributes the first information according to the PPPoE control message;
and the forwarding equipment sends the first information to the PPPoE client.
With reference to the first aspect, in a first possible implementation manner of the first aspect,
the forwarding equipment sends the PPPoE control message to control equipment according to the received first flow table;
and the forwarding equipment sends the first information to the PPPoE client according to the received second flow table.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect,
the PPPoE control message comprises a control message applied to a PPPoE discovery phase, and the first information comprises a first session identification ID;
or,
the PPPoE control message comprises a control message applied to a PPPoE session stage, and the first information comprises a first IP address;
or,
the PPPoE control message comprises a control message applied to a PPPoE discovery phase and a control message applied to a PPPoE session phase, and the first information comprises a first session identification ID and a first IP address.
With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the sending the PPPoE control packet to the control device specifically includes:
packaging the PPPoE control message into an open flow OF message;
and sending the OF message to the control equipment.
With reference to the first aspect or any one of the first to the second possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, after the sending the first information to the PPPoE client, the method further includes:
the forwarding equipment receives the first PPPoE data message sent by the PPPoE client;
the forwarding device determines whether the session ID of the first PPPoE data message is the first session ID, and determines whether the first PPPoE data message is encapsulated with an IP message;
when the session ID of the first PPPoE data packet is the first session ID and an IP packet is encapsulated in the first PPPoE data packet, the forwarding device decapsulates the first PPPoE data packet into a first public network data packet according to a received third flow table;
and the forwarding equipment sends the first public network data message to a public network according to the third flow table.
With reference to the first aspect or any one of the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect,
after sending the first information to the PPPoE client, the method further comprises:
the forwarding equipment receives a second public network data message from the public network;
the forwarding equipment determines whether the destination address of the second public network data message is the first IP address;
after determining that the destination address of the second public network data message is the first IP address, the forwarding device encapsulates the second public network data message into a second PPPoE data message according to a received fourth flow table;
and the forwarding equipment sends the second PPPoE data message to the PPPoE client according to the received fourth flow table.
With reference to the fourth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the first public network data packet includes:
an internet protocol IP message, an ethernet based internet protocol IPoE message, or an asynchronous transfer mode based internet protocol IPoA message.
In a second aspect, a method for processing PPPoE is provided, including:
the control equipment receives a PPPoE control message sent by the forwarding equipment;
the control equipment distributes first information to the PPPoE client according to the PPPoE control message, wherein the first information is information required by the PPPoE client to send a first PPPoE data message;
and the control equipment sends the first information to the forwarding equipment.
With reference to the second aspect, in a first possible implementation manner of the second aspect,
the PPPoE control message comprises a control message applied to a PPPoE discovery phase, and the first information comprises a first session identification ID;
or,
the PPPoE control message comprises a control message applied to a PPPoE session stage, and the first information comprises a first IP address;
or,
the PPPoE control message comprises a control message applied to a PPPoE discovery phase and a control message applied to a PPPoE session phase, and the first information comprises a first session identification ID and a first IP address.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the receiving a PPPoE control packet sent by a forwarding device includes:
and receiving an open flow OF message sent by forwarding equipment, wherein the OF message is obtained by encapsulating the PPPoE control message by the forwarding equipment.
In a third aspect, a forwarding device is provided, including:
the receiver is used for receiving a PPPoE control message sent by the PPPoE client;
the sender is used for sending the PPPoE control message received by the receiver to a control device;
the receiver is further configured to: receiving first information sent by the control equipment, wherein the first information is information required by the PPPoE client side for sending a first PPPoE data message, and the first information is distributed by the control equipment according to the PPPoE control message;
the transmitter is further configured to: and sending the first information received by the receiver to the PPPoE client.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the transmitter is specifically configured to:
sending the PPPoE control message received by the receiver to the control equipment according to the received first flow table;
and sending the first information to the PPPoE client according to the received second flow table.
With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect,
the PPPoE control message received by the receiver comprises a control message applied to a PPPoE discovery phase, and the first information received by the receiver comprises a first session identification ID;
or,
the PPPoE control message received by the receiver comprises a control message applied to a PPPoE session stage, and the first information received by the receiver comprises a first IP address;
or,
the PPPoE control message received by the receiver includes a control message applied to a PPPoE discovery phase and a control message applied to a PPPoE session phase, and the first information received by the receiver includes a first session identification ID and a first IP address.
With reference to the third aspect or the first possible implementation manner of the third aspect or the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the method further includes: a processor.
With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect,
the received processor is used for encapsulating the PPPoE control message received by the receiver into an open flow OF message before the sender sends the PPPoE control message;
the transmitter is specifically configured to send the OF packet to the control device.
With reference to the third possible implementation manner of the third aspect or the fourth possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect,
the receiver is further configured to receive the first PPPoE data packet sent by the PPPoE client;
the processor is configured to: determining whether the session ID of the first PPPoE data message is the first session ID, and determining whether the first PPPoE data message is encapsulated with an IP message; when the session ID of the first PPPoE data message is the first session ID and the IP message is encapsulated in the first PPPoE data message, decapsulating the first PPPoE data message into a first public network data message according to a received third flow table;
the transmitter is further configured to: and sending the first public network data message to a public network according to the third flow table.
With reference to any one of the third to fifth possible implementation manners of the third aspect, in a sixth possible implementation manner of the third aspect,
the receiver is further configured to: receiving a second public network data message from the public network;
the processor is configured to: determining whether the destination address of the second public network data message is the first IP address; after determining that the destination address of the second public network data message is the first IP address, packaging the second public network data message into a second PPPoE data message according to a received fourth flow table;
the transmitter is further configured to: and sending the second PPPoE data message to the PPPoE client according to the fourth flow table.
With reference to the fifth possible implementation manner of the third aspect, in a seventh possible implementation manner of the third aspect, the first public network data packet obtained by the processor includes:
an internet protocol IP message, an ethernet based internet protocol IPoE message, or an asynchronous transfer mode based internet protocol IPoA message.
In a fourth aspect, there is provided a control apparatus comprising:
the receiver is used for receiving the PPPoE control message sent by the forwarding equipment;
the processor is used for distributing first information to the PPPoE client according to the PPPoE control message received by the receiver, wherein the first information is information required by the PPPoE client for sending a first PPPoE data message;
and the transmitter is used for transmitting the first information obtained by the processor to the forwarding equipment.
With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect,
the PPPoE control message received by the receiver comprises a control message applied to a PPPoE discovery phase, and the first information obtained by the processor comprises a first session identification ID;
or,
the PPPoE control message received by the receiver comprises a control message applied to a PPPoE session stage, and the first information obtained by the processor comprises a first IP address;
or,
the PPPoE control message received by the receiver includes a control message applied to a PPPoE discovery phase and a control message applied to a PPPoE session phase, and the first information obtained by the processor includes a first session identification ID and a first IP address.
With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the receiver is specifically configured to:
and receiving an open flow OF message sent by forwarding equipment, wherein the OF message is obtained by encapsulating the PPPoE control message by the forwarding equipment.
In a fifth aspect, a PPPoE processing system is provided, including:
a forwarding device of any possible implementation manner of the third aspect or the third aspect, and a control device of any possible implementation manner of the fourth aspect or the fourth aspect.
According to the technical scheme, the PPPoE control message sent by the PPPoE client is sent to the control equipment through the forwarding equipment, and the first information which is distributed by the control equipment and is required by the PPPoE client for sending the first PPPoE data message is distributed to the PPPoE client, so that the PPPoE client can obtain the first information, and help is provided for the PPPoE client to realize the transmission of the PPPoE data message.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic diagram of PPPoE communication in an embodiment of the present invention;
fig. 2 is a schematic diagram of a PPPoE message in the embodiment of the present invention;
FIG. 3 is a flow chart diagram OF OF in an embodiment OF the present invention;
FIG. 4 is a diagram illustrating a structure of a matching field of a flow table according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an implementation OF OF supporting PPPoE in an embodiment OF the present invention;
FIG. 6 is a flowchart illustrating a PPPoE processing method according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a PPPoE processing method according to another embodiment of the present invention;
FIG. 8 is a flowchart illustrating a PPPoE processing method according to another embodiment of the present invention;
fig. 9 is a flowchart illustrating an embodiment of processing a data packet according to the present invention;
FIG. 10 is a flow chart illustrating another embodiment of processing a data packet according to the present invention;
fig. 11 is a schematic flow chart illustrating decapsulation of a data packet according to an embodiment of the present invention;
fig. 12 is a schematic diagram of a message format before and after decapsulation in the embodiment of the present invention;
fig. 13 is a schematic flow chart illustrating encapsulation of a data packet according to an embodiment of the present invention;
FIG. 14 is a diagram illustrating a message format before and after encapsulation according to an embodiment of the present invention;
FIG. 15 is a flowchart illustrating a PPPoE processing method according to another embodiment of the present invention;
fig. 16 is a schematic structural diagram of an embodiment of a forwarding device in the present invention;
fig. 17 is a schematic structural diagram of another embodiment of a forwarding device in accordance with the present invention;
FIG. 18 is a schematic structural diagram of an embodiment of a control apparatus according to the present invention;
fig. 19 is a schematic structural diagram of a PPPoE processing system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
PPPoE communication can be divided into two phases: a discovery (discovery) phase and a session (session) phase. The discovery phase is used for the PPPoE client and the PPPoE server to mutually acquire Media Access Control (MAC) addresses of opposite terminals, and the PPPoE server distributes session identification (session ID) for the PPPoE client; the session phase includes subsequent Link Control Protocol (LCP) negotiation, Network Control Protocol (NCP) negotiation, authentication and authorization, user data packet transmission and reception, and the like.
Referring to fig. 1, the Discovery phase includes interaction of a PPPoE Active Discovery Initiation (PADI) message, a PPPoE Active Discovery Offer (PADO) message, a PPPoE Active Discovery Request (PADR) message, and a PPPoE Active Discovery Session confirmation (PADS) message in the PPPoE negotiation process shown in fig. 1 to 4.
The session stage comprises a PPP negotiation process and a data message receiving and sending process after a user is online, wherein the PPP negotiation process comprises 5 LCP negotiation and 11 NCP negotiation, and the LCP negotiation process comprises 6-10 authentication and authorization. After the user is on line, the user can send or receive data messages to or from the network side. The PPPoE server may interact with an Authentication Authorization and Accounting (AAA) server at Authentication and Authorization.
As shown in fig. 2, the PPPoE packet includes a destination address (destination _ address), a source address (source _ address), and an ethernet type (ether _ type) at the ethernet header, and a PPPoE packet (pppoep) as a payload, and a check bit (checksum). The PPPoE packet includes a version (ver), a type (type), a code (code), a session ID (session _ ID), a length (length), and a PPP packet (PPP packet). The PPP packet includes a protocol (protocol), an IP packet (IP packet), and padding (padding). The length of each field is also shown in fig. 2.
In the discovery phase, the value of the ethertype (ethertype) field is 0x8863, and in the session phase, the value of the ethertype (ethertype) field is 0x 8864.
A code (code) field in the PPPoE message header indicates the type of the message, for example, the code of the PADI message is 0x09, the code of the PADO message is 0x07, etc.; in the session phase, code is 0.
The session ID may be used to identify a link and may be considered to correspond one-to-one with the IP address of the user.
The protocol field in the PPP packet header indicates the type of PPP packet, for example, 0xC021 indicates LCP packet, 0x8021 indicates NCP packet, and 0x0021 indicates IP packet.
Taking the example that the control device and the forwarding device are an OF controller and an OF switch, respectively, the OF switch may perform corresponding processing on a packet according to a flow table sent by the OF controller, as shown in fig. 3, the flow table structure diagram OF the OF is shown, and includes a matching field (match fields), a priority (priority), a count value (counts), an instruction (instructions), a timeout (timeouts), and cache data (cookies).
The basic structure of the flow table is a match-and-add operation, e.g., to support two-layer forwarding, the flow table may require that if the destination MAC address of a packet matches a specified MAC address, then the action is performed: and forwarding the data from the B port of the switch. At this time, a destination MAC address may be added to match fields (match fields) of the flow table as a designated MAC address, and a first instruction (instructions) is added to the instruction (instructions), where the first instruction is used to instruct "forward from the B port of the switch", and when the switch receives packets all having the destination MAC address as the designated MAC address, the packet may be forwarded from the B port of the switch.
As shown in fig. 4, the match fields include a type (type), a length (length), and an Openflow extension match field (oxm _ field), where the number of oxm _ fields may be multiple, and each oxm _ field may identify a specified field in one packet, so that the matched packet is processed by using an operation indicated by the instructions.
The current OF may match fields in the message including an ethernet header, an IP header, and a Multi-Protocol Label Switching (MPLS) header, but does not yet include PPPoE related fields.
In order to be able to support PPPoE, the openflow protocol and the associated controllers and switches need to support the following functions:
(1) the OF switch needs to be able to identify and forward the PPPoE control packet to the OF controller, and also needs to forward the PPPoE control packet returned by the OF controller to the CPE.
(2) The OF controller needs to be able to process a PPPoE control packet, including Session ID assignment, authentication and authorization (which may be implemented in cooperation with other servers), user IP address assignment, keep-alive (keep-alive) OF a link, and is able to issue a flow table to the OF switch to forward a user data packet (including encapsulation and decapsulation OF the PPPoE packet, etc.).
(3) The OF switch needs to be able to forward a PPPoE data packet according to a flow table, including encapsulation and decapsulation OF the PPPoE packet.
(4) The OF protocol needs to be able to identify the PPPoE protocol related fields and define the corresponding processing operations.
To implement OF support for PPPoE, a new oxm _ field definition can be added to the existing structure, for example, the definition OF oxm _ field is as follows:
the OFPXMT _ OFB _ PPPOE _ SESSION _ ID =40, and the OFPXMT _ OFB _ PPPOE _ PPP _ PROTO =41 are newly added definitions, and are used to match the SESSION ID field and the protocol field of the packet.
In addition, in order to support encapsulation and decapsulation OF a PPPoE packet header, the instructions portion OF the OF flow table needs to be extended, for example, the instructions are defined as follows:
here, the above-mentioned OFPAT _ PUSH _ PPPOE _ HEADER =28, and the OFPAT _ POP _ PPPOE _ HEADER =29 are newly added definitions for indicating the encapsulation and decapsulation operations, respectively.
Through the above extension, referring to fig. 5, the OF switch may send a PPPoE control packet sent by the PPPoE client to the OF controller, and the OF controller sends the PPPoE control packet to the PPPoE server, and the OF controller may send the session ID and the IP address assigned by the PPPoE server to the PPPoE client through the OF switch. The OF switch may decapsulate a PPPoE data packet sent by the PPPoE client into an Internet Protocol over Ethernet (IPoE) data packet based on Ethernet, and send the data packet to the network side, and encapsulate the IPoE data packet sent by the network side into the PPPoE data packet and send the PPPoE data packet to the PPPoE client. The OF switch can complete the above operations such as forwarding, encapsulation, decapsulation, and the like according to the flow table issued by the OF controller.
Fig. 6 is a flowchart illustrating an embodiment of a PPPoE processing method according to the present invention, including:
61: the forwarding equipment receives a PPPoE control message sent by a PPPoE client;
62: the forwarding equipment sends the PPPoE control message to control equipment;
63: the forwarding equipment receives first information sent by the control equipment, the first information is information required by the PPPoE client side for sending a first PPPoE data message, and the control equipment distributes the first information according to the PPPoE control message;
64: and the forwarding equipment sends the first information to the PPPoE client.
Alternatively,
the forwarding equipment sends the PPPoE control message to control equipment according to the received first flow table;
and the forwarding equipment sends the first information to the PPPoE client according to the received second flow table.
The first flow table and the second flow table may be sent by the control device, or may be sent by other devices.
Optionally, the PPPoE control packet includes a control packet applied to a PPPoE discovery phase, where the first information includes a first session identifier ID;
or,
the PPPoE control message comprises a control message applied to a PPPoE session stage, and the first information comprises a first IP address;
or,
the PPPoE control message comprises a control message applied to a PPPoE discovery phase and a control message applied to a PPPoE session phase, and the first information comprises a first session identification ID and a first IP address.
Optionally, the sending the PPPoE control packet to the control device specifically includes: encapsulating the PPPoE control message into an Open Flow (OF) message; and sending the OF message to the control equipment. That is to say, the PPPoE control message received by the control device is encapsulated in the OF message.
Since the forwarding device sends the first information to the PPPoE client, the PPPoE client can send the first PPPoE data packet based on the first information.
Optionally, after sending the first information to the PPPoE client, the method further includes:
the forwarding equipment receives the first PPPoE data message sent by the PPPoE client;
the forwarding device determines whether the session ID of the first PPPoE data message is the first session ID, and determines whether the first PPPoE data message is encapsulated with an IP message;
when the session ID of the first PPPoE data message is the first session ID and the IP message is encapsulated in the first PPPoE data message, the forwarding device decapsulates the first PPPoE data message into a first public network data message according to a received third flow table and the third flow table;
and the forwarding equipment sends the first public network data message to a public network.
Optionally, after sending the first information to the PPPoE client, the method further includes:
the forwarding equipment receives a second public network data message from the public network;
the forwarding equipment determines whether the destination address of the second public network data message is the first IP address;
after determining that the destination address of the second public network data message is the first IP address, the forwarding device encapsulates the second public network data message into a second PPPoE data message according to a received fourth flow table;
and the forwarding equipment sends the second PPPoE data message to the PPPoE client according to the fourth flow table.
Optionally, the method further includes:
the forwarding device receives a third flow table sent by the control device, the third flow table comprises a third matching domain and a third operation domain, the third matching domain comprises a session ID field and a protocol field, the numerical value of the session ID field is the value of the first session ID, the numerical value of the protocol field is the value indicating that the message is an IP message, and the operation of the third operation domain comprises decapsulating the message matched with the third matching domain into a public network data message and sending the public network data message to a network side. So as to realize the decapsulation of the first PPPoE data message into a first public network data message.
It should be noted that the third flow table in this embodiment may have multiple implementations, and the third flow table in this embodiment is only one of the multiple implementations. Further, a third flow table may be received from the control device, and may be received from another device.
Optionally, the method further includes:
the forwarding device receives a fourth flow table sent by the control device, the fourth flow table comprises a fourth matching field and a fourth operation field, the fourth matching field comprises a destination IP address field, the numerical value of the destination IP address field is the value of the first IP address, and the operation of the fourth operation field comprises packaging a message matched with the fourth matching field into a PPPoE data message and sending the PPPoE data message to the PPPoE client. So as to implement the above-mentioned encapsulation of the second public network data message into a second PPPoE data message.
It should be noted that the fourth flow table in this embodiment may have a plurality of implementation manners, and the fourth flow table in this embodiment is only one of the plurality of implementation manners. Further, the fourth flow table may be received from the control device, and may be received from another device.
Optionally, the first public network data packet includes:
internet Protocol (IP) packets, ethernet-based Internet Protocol (IPoE) packets, or Asynchronous Transfer Mode (ATM) -based Internet Protocol (IP over ATM, IPoA) packets.
Optionally, the second public network data packet includes: IP messages, IPoE messages, or IPoA messages.
Optionally, after the forwarding device completes the PPPoE negotiation and the PPP negotiation, the forwarding device receives the third flow table sent by the control device; or,
after receiving a first data packet sent by the PPPoE client and forwarding the first data packet to the control device, the forwarding device receives the third flow table sent by the control device, where the first data packet is forwarded to the control device by the forwarding device according to a first principle, where the first principle includes: the first data packet cannot be matched with a matching field of an existing flow table on the forwarding device, or the first data packet can be matched with a matching field of an existing flow table on the forwarding device, and the corresponding operation field indicates that the matched packet is sent to the control device.
Optionally, the receiving, by the forwarding device, a fourth flow table sent by the control device includes:
after the forwarding device completes PPPoE negotiation and PPP negotiation, receiving the fourth flow table sent by the control device; or,
the forwarding device receives the fourth flow table sent by the control device, wherein the fourth flow table is sent by the control device after receiving a first data message sent by a network side and to be sent to a PPPoE client; or,
after receiving a first data packet sent by a PPPoE client and forwarding the first data packet to a control device, the forwarding device receives the fourth flow table sent by the control device, where the first data packet is forwarded to the control device by the forwarding device according to a first principle, where the first principle includes: the first data packet cannot be matched with a matching field of an existing flow table on the forwarding device, or the first data packet can be matched with a matching field of an existing flow table on the forwarding device, and the corresponding operation field indicates that the matched packet is sent to the control device.
Optionally, the method further includes:
and the forwarding equipment receives a deletion instruction sent by the control equipment and deletes the stored flow table, wherein the deletion instruction is sent by the control equipment after detecting the link fault between the PPPoE server and the PPPoE client.
Accordingly, referring to fig. 7, a schematic flow chart of another embodiment includes:
71: the control equipment receives a PPPoE control message sent by the forwarding equipment;
72: the control equipment distributes first information to the PPPoE client according to the PPPoE control message, wherein the first information is information required by the PPPoE client to send a first PPPoE data message;
73: and the control equipment sends the first information to the forwarding equipment.
Optionally, the PPPoE control packet includes a control packet applied to a PPPoE discovery phase, where the first information includes a first session identifier ID;
or,
the PPPoE control message comprises a control message applied to a PPPoE session stage, and the first information comprises a first IP address;
or,
the PPPoE control message comprises a control message applied to a PPPoE discovery phase and a control message applied to a PPPoE session phase, and the first information comprises a first session identification ID and a first IP address.
Optionally, the receiving a PPPoE control packet sent by the forwarding device includes:
and receiving an open flow OF message sent by forwarding equipment, wherein the OF message is obtained by encapsulating the PPPoE control message by the forwarding equipment.
Optionally, the PPPoE control packet received by the control device is sent by the forwarding device according to a first flow table received from the control device.
Optionally, the method further includes:
the control device sends a third flow table to the forwarding device, the third flow table comprises a third matching field and a third operation field, the third matching field comprises a session ID field and a protocol field, the numerical value of the session ID field is the value of the first session ID, the numerical value of the protocol field is the value indicating that the message is an IP message, and the operation of the third operation field comprises decapsulating the message matched with the third matching field into a public network data message and sending the public network data message to a network side.
Optionally, the method further includes:
the control device sends a fourth flow table to the forwarding device, the fourth flow table comprises a fourth matching field and a fourth operation field, the fourth matching field comprises a destination IP address field, the numerical value of the destination IP address field is the value of the first IP address, and the operation of the fourth operation field comprises packaging the message matched with the fourth matching field into a PPPoE data message and sending the PPPoE data message to the PPPoE client.
Optionally, in the embodiment OF the present invention, the forwarding device may specifically be an OF switch, and the control device may specifically be an OF controller.
In this embodiment, the forwarding device forwards the PPPoE control packet sent by the PPPoE client to the control device, and sends the first information allocated by the control device to the PPPoE client, so that the forwarding device processes the related packet of the PPPoE, and supports the PPPoE in a scenario where control and forwarding are separated, thereby implementing the PPPoE on the SDN device.
Fig. 8 is a flowchart illustrating a PPPoE processing method according to another embodiment of the present invention, where a PPPoE client is a Customer Premise Equipment (CPE). The embodiment comprises the following steps:
81: the OF controller sends the first flow table to the OF switch.
The matching field of the first flow table includes an ethernet type field, or an ethernet type field and a protocol field, and is used to indicate that the packet to be matched is a control packet in a PPPoE negotiation or a control packet in a PPP protocol.
Specifically, the contents added in match field are used to indicate that:
OFPXMT _ OFB _ ETH _ TYPE is 0x 8863; or,
OFPXMT _ OFB _ ETH _ TYPE is 0x8864 and
OFPXMT _ OFB _ PPPOE _ PPP _ PROTO is 0xC021 or 0x 8021.
The content in the match field may adopt a Type Length Value (TLV) manner, and take the example that OFPXMT _ OFB _ PPPOE _ PPP _ PROTO is 0xC021, which may be specifically expressed as: the T field is added with a value corresponding to OFPXMT _ OFB _ PPPOE _ PPP _ PROTO (i.e. 41, although it is understood that other values may be defined), and the V field is added with 0xC 021.
In addition, actions may be added in the instruction domain instructions: and forwarding the message from an X interface, wherein the X interface is an interface connected with the OF controller.
Through the first flow chart, the OF switch can forward the control message during PPPoE negotiation and the control message during PPP negotiation to the OF controller.
82: after receiving a control message sent by the CPE during PPPoE negotiation, the OF switch encapsulates the control message into a first input message (packet _ in) and sends the first input message (packet _ in) to the OF controller.
83: the OF controller assigns a session ID, e.g., 1234, to the user and sends it to the CPE.
The OF controller may encapsulate the session ID in a first output packet (packet _ out), and the OF switch outputs the first output packet from the corresponding interface to the CPE according to an interface from which the first input packet comes.
84: the OF switch receives the LCP message or the NCP message sent by the CPE, encapsulates the LCP message or the NCP message into a second input message (packet _ in), and sends the second input message (packet _ in) to the controller.
85: the OF controller assigns an IP address, such as 100.1.1.2, to the user and sends it to the CPE.
The OF controller may encapsulate the IP address in a second output packet (packet _ out), and the OF switch outputs the second output packet from the corresponding interface to the CPE according to an interface from which the second input packet comes.
The first flow table indicates that the PPPoE control message, including the control message during PPPoE negotiation and the control message during PPP negotiation, is sent to the OF switch, so that the OF switch can complete the forwarding OF the PPPoE control message.
In addition, in the above flow, the OF controller may be located in the same physical device as the PPPoE server, or the OF controller supports an external PPPoE server through an Application Programming Interface (API), at this time, the OF controller may serve as the PPPoE server, and a message sent by the PPPoE server to the PPPoE client may be sent to the OF switch by the OF controller through a packet _ out message OF openflow, and then sent to the PPPoE client by the OF switch.
In the PPPoE negotiation process, the server and the client can mutually acquire the MAC address of the other party; and the PPPoE server distributes a session ID for the client, and the subsequent communication messages of both sides need to carry the session ID in the PPPoE message header.
In the LCP phase of PPPoE, the PPPoE server needs to complete user authentication and other operations, and in the NCP phase, PPPoE needs to assign an IP address to the server.
After completing the above operations, the PPPoE server can obtain the association relationship of the following information:
the user's MAC address, the user's IP address, the user's session ID, etc.
Through the above contents, PPPoE negotiation and PPP negotiation can be completed, and then the user can be on-line.
After the user is online, the OF switch needs to complete encapsulation or decapsulation OF the data packet. At this time, the OF controller also needs to issue a flow table for the OF switch, which is used to indicate the processing mode OF the OF switch on the data packet. The flow table indicating to process the data packet may be issued after the PPPoE negotiation and the PPP negotiation are completed, or may be issued after the first data packet is received.
Referring to fig. 9, a flow table for instructing to process a data packet is issued after the OF controller completes PPPoE negotiation and PPP negotiation, and includes:
91: and the CPE and the PPPoE server finish the on-line authentication of the user.
The specific contents can be found in 81-85.
92: the OF controller sends a third flow table to the OF switch;
the matching field of the third flow table comprises a session ID field and a protocol field, the numerical value of the session ID field is a designated value, the protocol field indicates that the message is an IP message, and the instruction field indicates that the decapsulation operation is performed on the message.
For example, match field is:
OFPXMT _ OFB _ PPPOE _ SESSION _ ID is 1234, and
OFPXMT _ OFB _ PPPOE _ PPP _ PROTO is 0x0021
When the specific TLV is expressed, two TLV entries may be included, where a value in the T field of one entry is 40, a value in the V field is 1234, a value in the T field of the other entry is 41, and a value in the V field is 0x 0021.
Instructions are:
the OFPAT _ POP _ PPPOE _ HEADER indicates that the action is decapsulation.
93: the OF controller sends a fourth flow table to the OF switch;
the matching field of the fourth flow table comprises a destination IP address, the destination IP address is a designated value, the designated value is the IP address of the PPPoE client, and the instruction field indicates that the message is packaged.
For example, match field is:
OFPXMT _ OFB _ IPV4_ DST is 100.1.1.2
Instructions are:
OFPAT _ PUSH _ PPPOE _ HEADER, i.e., indicates that the action is encapsulation.
After that time, the user can use the device,
94: the CPE sends a first datagram to the OF switch.
Alternatively, referring to fig. 10, issuing a flow table for instructing to process the data packet after the OF controller receives the first data packet includes:
101: and the CPE and the PPPoE server finish the on-line authentication of the user.
The specific contents can be found in 81-85.
102: the CPE sends a first datagram to the OF switch.
103: the OF switch transmits the data message to the OF controller.
104: the OF controller sends the third flow table to the OF switch.
The details of the third flow table may be found at 92.
105: the OF controller transmits the fourth flow table to the OF switch.
The details of the fourth stream table can be found in 93.
The fourth flow table may be sent before the OF switch receives the first data packet sent by the network side, or may be sent after receiving the first data packet sent by the network side.
The OF switch may perform corresponding processing on the data packet after acquiring the third flow table and the fourth flow table.
In addition, the first data packet may be forwarded to the control device by the forwarding device according to the following principle: and the forwarding equipment forwards the message which can not be processed or the message with the set type to the control equipment according to the flow table, wherein the message which can not be processed or the message with the set type comprises the first data message.
Referring to fig. 11, a process flow for the OF switch to decapsulate the data packet includes:
111: the OF switch receives a PPPoE message sent by the CPE.
112: the OF switch determines whether the ethernet type field OF the message is 0x8864, if so, executes 113, otherwise, executes 116.
113: the OF switch determines whether the session ID OF the packet is a specified value, if so, 114 is performed, otherwise, 116 is performed.
Where the specified value is that the OF controller is assigned to the CPE at PPPoE negotiation, e.g., 1234.
114: and the OF switch judges whether the protocol field OF the message is 0x0021, if so, the 115 is executed, and otherwise, the 116 is executed.
115: the OF switch decapsulates the PPPoE message into an IPoE message.
Referring to fig. 12, the PPPoE message is decapsulated into an IPoE message, and then the IPoE message may be sent to the network side.
116: the OF switch discards the packet or processes it per protocol. Wherein, the processing according to the protocol may refer to forwarding the message to the OF controller.
The decapsulation operation in this embodiment may be completed according to a plurality of flow tables, or may be completed according to one flow table. For example, in a flow table, the match field of the flow table indicates that the entries that need to be matched include: the ethernet TYPE field (OFPXMT _ OFB _ ETH _ TYPE) is 0x8864, the Session ID (Session _ ID) is a specified value, and the protocol field (OFPXMT _ OFB _ PPPOE _ PPP _ PROTO) is 0x0021, and when all of the above three match, a decapsulation operation is performed. For another example, when there are a plurality of flow tables, it may be: when the first flow table indicates that the ethernet TYPE field (OFPXMT _ OFB _ ETH _ TYPE) is matched to 0x8864, the operation performed is to process the second flow table, when the second flow table indicates that the Session ID (Session _ ID) is matched to a specified value, the operation performed is to process the third flow table, and when the third flow table indicates that the protocol field (OFPXMT _ OFB _ PPPOE _ PROTO) is matched to 0x0021, the operation performed is to decapsulate.
Referring to fig. 13, a process flow for encapsulating a data packet by an OF switch includes:
131: the OF switch receives an IPoE message sent by a network side.
132: the OF switch judges whether the destination IP address OF the message is a specified value, if so, executes 133, otherwise, executes 134.
The assigned value is the IP address, e.g., 100.1.1.2, assigned to the CPE by the OF controller after the PPP protocol is completed.
133: and the OF switch encapsulates the IPoE message into a PPPoE message.
Referring to fig. 14, the IPoE message is encapsulated into a PPPoE message, which may then be sent to the CPE. And the packaged session ID is determined by the corresponding relation between the IP address and the session ID which can be acquired after the user is authenticated online.
134: the OF switch discards the packet or processes it per protocol. Wherein, the processing according to the protocol may refer to forwarding the message to the OF controller.
In this embodiment, by extending the existing flow table, the OF switch can forward the PPPoE control packet, decapsulate the PPPoE data packet, and encapsulate the IPoE data packet.
Fig. 15 is a flowchart illustrating a PPPoE processing method according to another embodiment of the present invention, where the present embodiment is directed to a keep-alive mechanism. The PPP protocol defines a keep-alive (keep alive) mechanism, and the PPPoE server periodically sends keep-alive messages between the server and the client in order to support this function. And the keep-alive needs to be terminated in time after the link fails. Referring to fig. 15, it includes:
151: and the CPE and the PPPoE finish the on-line authentication of the user.
The specific contents can be found in 81-85.
152: the CPE and the OF switch normally communicate data packets.
Specific contents can be seen in fig. 9 or fig. 10, and the flows shown in fig. 11 and fig. 13.
153: keep-alive messages are interacted between the PPPoE server and the CPE.
154: and when the link between the CPE and the PPPoE server fails, the OF controller sends a deletion instruction to the OF switch so as to delete the flow table corresponding to the CPE and stop sending the keep-alive messages.
The PPPoE server may determine whether the link is faulty according to the receiving condition of the keep-alive message, for example, a PPPoE message indicating that the user is offline is detected, or the PPPoE message is not received after a set time, or a set number of PPPoE messages are not received. In addition, the interactive keep-alive message may include a session ID, if the PPPoE server finds that the message including a certain session ID does not receive a response, the PPPoE server may send a notification message OF a link failure corresponding to the session ID to the OF controller, and the OF controller may include the session ID in a deletion instruction according to the notification message, so as to instruct the OF switch to delete the flow table associated with the session ID. The OF switch may pre-configure an association relationship between the session ID and the user information, and may delete all flow tables OF the user associated with the session ID when receiving a deletion instruction including the session ID.
In the embodiment, the corresponding flow table is deleted after the link fails, so that the invalid flow table can be prevented from being stored, and the storage efficiency is improved.
Fig. 16 is a schematic structural diagram OF an embodiment OF the forwarding device OF the present invention, which may be specifically located in or be an OF switch, where the device 160 includes a receiver 161 and a transmitter 162; the receiver 161 is configured to receive a PPPoE control packet sent by a PPPoE client; the sender 162 is configured to send the PPPoE control packet received by the receiver to a control device; the receiver 161 is further configured to receive first information sent by the control device, where the first information is information required by the PPPoE client to send a first PPPoE data packet, and is distributed by the control device according to the PPPoE control packet; the sender is further configured to 162 send the first information received by the receiver to the PPPoE client
Optionally, the transmitter is specifically configured to:
sending the PPPoE control message received by the receiver to the control equipment according to the received first flow table;
and sending the first information to the PPPoE client according to the received second flow table.
The first flow table and the second flow table may be transmitted by the control device or may be transmitted by another device.
Optionally, the PPPoE control packet received by the receiver 161 includes a control packet applied to a PPPoE discovery phase, and the first information received by the receiver 161 includes a first session ID;
or,
the PPPoE control message received by the receiver 161 includes a control message applied to a PPPoE session stage, and the first information received by the receiver 161 includes a first IP address;
or,
the PPPoE control packet received by the receiver 161 includes a control packet applied to a PPPoE discovery phase and a control packet applied to a PPPoE session phase, and the first information received by the receiver 161 includes a first session identification ID and a first IP address.
Optionally, referring to fig. 17, the apparatus further includes: a processor 163.
Optionally, the processor 163 is configured to encapsulate the PPPoE control packet received by the receiver 161 as an open flow OF packet before the sender sends the PPPoE control packet; the transmitter 162 is specifically configured to transmit the OF packet to the control device. That is, the specific operation OF the transmitter 162 transmitting the PPPoE control message received by the receiver to the control device can be implemented by transmitting the OF message to the control device.
Optionally, the receiver 161 is further configured to receive a first PPPoE data packet sent by the PPPoE client; the processor 163 is configured to: determining whether the session ID of the first PPPoE data message is the first session ID, and determining whether the first PPPoE data message is encapsulated with an IP message; when the session ID of the first PPPoE data message is the first session ID and the IP message is encapsulated in the first PPPoE data message, decapsulating the first PPPoE data message into a first public network data message according to a received third flow table; the transmitter 162 is further configured to: and sending the first public network data message to a public network according to the third flow table.
Optionally, the receiver 161 is further configured to: receiving a second public network data message from the public network; the processor 163 is configured to: determining whether the destination address of the second public network data message is the first IP address; after determining that the destination address of the second public network data message is the first IP address, packaging the second public network data message into a second PPPoE data message according to a received fourth flow table; the transmitter 162 is further configured to: and sending the second PPPoE data message to the PPPoE client according to the fourth flow table.
Optionally, the receiver 161 is further configured to: receiving a third flow table sent by the control device, wherein the third flow table comprises a third matching field and a third operation field, the third matching field comprises a session ID field and a protocol field, the numerical value of the session ID field is the value of the first session ID, the numerical value of the protocol field is the value indicating that the message is an IP message, and the operation of the third operation field comprises decapsulating the message matched with the third matching field into a public network data message and sending the public network data message to a network side. So as to decapsulate the first PPPoE data packet into a first public network data packet.
It should be noted that the third flow table in this embodiment may have multiple implementations, and the third flow table in this embodiment is only one of the multiple implementations. Further, a third flow table may be received from the control device, and may be received from another device.
Optionally, the receiver 161 is further configured to: receiving a fourth flow table sent by the control device, where the fourth flow table includes a fourth matching field and a fourth operation field, the fourth matching field includes a destination IP address field, and a value of the destination IP address field is a value of the first IP address, and the operation of the fourth operation field includes encapsulating a packet matched with the fourth matching field into a PPPoE data packet and sending the PPPoE data packet to the PPPoE client. So as to encapsulate the second public network data message into a second PPPoE data message.
It should be noted that the fourth flow table in this embodiment may have a plurality of implementation manners, and the fourth flow table in this embodiment is only one of the plurality of implementation manners. Further, the fourth flow table may be received from the control device, and may be received from another device.
Optionally, the first public network data packet obtained by the processor 163 includes:
IP messages, IPoE messages or IPoA messages.
Optionally, the second public network data packet includes: IP messages, IPoE messages or IPoA messages.
Alternatively, in terms of hardware implementation, the above receiver and transmitter may be collectively referred to as a transceiver, and the processor may be a Central Processing Unit (CPU), a microprocessor, a single chip, or the like.
Optionally, the forwarding device in this embodiment is the forwarding device described in the embodiment corresponding to any one of fig. 1 to 15
In this embodiment, the forwarding device sends the PPPoE control packet sent by the PPPoE client to the control device, and distributes the first information distributed by the control device to the PPPoE client, so that the forwarding device can process the related packet of the PPPoE, support the PPPoE in a scenario where control and forwarding are separated, and further implement the PPPoE on the SDN device.
Fig. 18 is a schematic structural diagram OF another embodiment OF the control device OF the present invention, which may be specifically located in or be an OF controller, where the device 180 includes a receiver 181, a processor 182, and a transmitter 183; the receiver 181 is configured to receive a PPPoE control packet sent by the forwarding device; the processor 182 is configured to allocate first information to a PPPoE client according to the PPPoE control packet received by the receiver 181, where the first information is information required by the PPPoE client to send a first PPPoE data packet; the transmitter 183 is configured to transmit the first information obtained by the processor 182 to the forwarding device.
Optionally, the PPPoE control packet received by the receiver 181 includes a control packet applied to a PPPoE discovery phase, and the first information obtained by the processor 182 includes a first session ID;
or,
the PPPoE control packet received by the receiver 181 includes a control packet applied to a PPPoE session stage, and the first information obtained by the processor 182 includes a first IP address;
or,
the PPPoE control packet received by the receiver 181 includes a control packet applied to a PPPoE discovery phase and a control packet applied to a PPPoE session phase, and the first information obtained by the processor 182 includes a first session identifier ID and a first IP address.
Optionally, the receiver 181 is specifically configured to:
and receiving an OF message sent by forwarding equipment, wherein the OF message is obtained after the forwarding equipment encapsulates the PPPoE control message. That is to say, the PPPoE control packet received by the control device is encapsulated in the OF packet.
Optionally, the PPPoE control packet received by the receiver 181 is sent by the forwarding device according to a first flow table received from the control device. The first flow table may be received from another device.
Optionally, the transmitter 183 is further configured to:
and sending a third flow table to the forwarding device, wherein the third flow table comprises a third matching field and a third operation field, the third matching field comprises a session ID field and a protocol field, the numerical value of the session ID field is the value of the first session ID, the numerical value of the protocol field is the value indicating that the message is an IP message, and the operation of the third operation field comprises decapsulating the message matched with the third matching field into a public network data message and sending the public network data message to a network side. So as to decapsulate the first PPPoE data packet into a first public network data packet.
It should be noted that the third flow table in this embodiment may have multiple implementations, and the third flow table in this embodiment is only one of the multiple implementations. Further, a third flow table may be received from the control device, and may be received from another device.
Optionally, the transmitter 183 is further configured to:
and sending a fourth flow table to the forwarding equipment, wherein the fourth flow table comprises a fourth matching field and a fourth operation field, the fourth matching field comprises a destination IP address field, the numerical value of the destination IP address field is the value of the first IP address, and the operation of the fourth operation field comprises packaging the message matched with the fourth matching field into a PPPoE data message and sending the PPPoE data message to the PPPoE client. So as to encapsulate the second public network data message into a second PPPoE data message.
It should be noted that the fourth flow table in this embodiment may have a plurality of implementation manners, and the fourth flow table in this embodiment is only one of the plurality of implementation manners. Further, the fourth flow table may be received from the control device, and may be received from another device.
Alternatively, in hardware implementation, the receiver and the transmitter may be collectively referred to as a transceiver, and the processor may be a Central Processing Unit (CPU), a microprocessor, a single chip, or the like.
Alternatively, the control apparatus in the present embodiment may be the control apparatus described in the embodiment corresponding to any one of fig. 1 to 15.
In this embodiment, the forwarding device sends the PPPoE control packet sent by the PPPoE client to the control device, and distributes the first information distributed by the control device to the PPPoE client, so that the forwarding device can process the related packet of the PPPoE, support the PPPoE in a scenario where control and forwarding are separated, and further implement the PPPoE on the SDN device.
Fig. 19 is a schematic structural diagram of an embodiment of a PPPoE processing system of the present invention, where the system 190 includes a forwarding device 191 and a control device 192; the forwarding device may be as shown in fig. 16 or fig. 17 or may be the forwarding device described in the embodiment corresponding to any one of fig. 1 to 17, and the control device may be as shown in fig. 18 or may be the control device described in the embodiment corresponding to any one of fig. 1 to 15 or corresponding to fig. 18.
In this embodiment, the forwarding device sends the PPPoE control packet sent by the PPPoE client to the control device, and distributes the first information distributed by the control device to the PPPoE client, so that the forwarding device can process the related packet of the PPPoE, support the PPPoE in a scenario where control and forwarding are separated, and further implement the PPPoE on the SDN device.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (17)
1. A method for processing point-to-point protocol PPPoE based on Ethernet is characterized by comprising the following steps:
the forwarding equipment receives a PPPoE control message sent by a PPPoE client;
the forwarding equipment sends the PPPoE control message to control equipment;
the forwarding equipment receives first information sent by the control equipment, the first information is information required by the PPPoE client side for sending a first PPPoE data message, and the control equipment distributes the first information according to the PPPoE control message;
the forwarding equipment sends the first information to the PPPoE client;
wherein, the sending the PPPoE control packet to the control device specifically includes:
packaging the PPPoE control message into an open flow OF message;
and sending the OF message to the control equipment.
2. The method of claim 1,
the forwarding equipment sends the PPPoE control message to control equipment according to the received first flow table;
and the forwarding equipment sends the first information to the PPPoE client according to the received second flow table.
3. The method according to claim 1 or 2,
the PPPoE control message comprises a control message applied to a PPPoE discovery phase, and the first information comprises a first session identification ID;
or,
the PPPoE control message comprises a control message applied to a PPPoE session stage, and the first information comprises a first IP address;
or,
the PPPoE control message comprises a control message applied to a PPPoE discovery phase and a control message applied to a PPPoE session phase, and the first information comprises a first session identification ID and a first IP address.
4. The method of claim 3, wherein after sending the first information to the PPPoE client, the method further comprises:
the forwarding equipment receives the first PPPoE data message sent by the PPPoE client;
the forwarding device determines whether the session ID of the first PPPoE data message is the first session ID, and determines whether the first PPPoE data message is encapsulated with an IP message;
when the session ID of the first PPPoE data packet is the first session ID and the IP packet is encapsulated in the first PPPoE data packet, the forwarding device decapsulates the first PPPoE data packet into a first public network data packet according to a received third flow table;
and the forwarding equipment sends the first public network data message to a public network according to the third flow table.
5. The method of claim 3, wherein after sending the first information to the PPPoE client, the method further comprises:
the forwarding equipment receives a second public network data message from the public network;
the forwarding equipment determines whether the destination address of the second public network data message is the first IP address;
after determining that the destination address of the second public network data message is the first IP address, the forwarding device encapsulates the second public network data message into a second PPPoE data message according to a received fourth flow table;
and the forwarding equipment sends the second PPPoE data message to the PPPoE client according to the fourth flow table.
6. The method of claim 4, wherein the first public network data packet comprises:
an internet protocol IP message, an ethernet based internet protocol IPoE message, or an asynchronous transfer mode based internet protocol IPoA message.
7. A method for processing point-to-point protocol PPPoE based on Ethernet is characterized by comprising the following steps:
the control equipment receives a PPPoE control message sent by the forwarding equipment;
the control equipment distributes first information to the PPPoE client according to the PPPoE control message, wherein the first information is information required by the PPPoE client to send a first PPPoE data message;
the control equipment sends the first information to the forwarding equipment;
wherein, the receiving the PPPoE control packet sent by the forwarding device includes:
and receiving an open flow OF message sent by forwarding equipment, wherein the OF message is obtained by encapsulating the PPPoE control message by the forwarding equipment.
8. The method of claim 7,
the PPPoE control message comprises a control message applied to a PPPoE discovery phase, and the first information comprises a first session identification ID;
or,
the PPPoE control message comprises a control message applied to a PPPoE session stage, and the first information comprises a first IP address;
or,
the PPPoE control message comprises a control message applied to a PPPoE discovery phase and a control message applied to a PPPoE session phase, and the first information comprises a first session identification ID and a first IP address.
9. A forwarding device, comprising:
the receiver is used for receiving a PPPoE control message sent by the PPPoE client;
the sender is used for sending the PPPoE control message received by the receiver to a control device;
the receiver is further configured to: receiving first information sent by the control equipment, wherein the first information is information required by the PPPoE client side for sending a first PPPoE data message, and the first information is distributed by the control equipment according to the PPPoE control message;
the transmitter is further configured to: sending the first information received by the receiver to the PPPoE client;
further comprising: a processor;
the processor is configured to encapsulate the PPPoE control packet received by the receiver as an open flow OF packet before the sender sends the PPPoE control packet.
10. The apparatus of claim 9, wherein the transmitter is specifically configured to:
sending the PPPoE control message received by the receiver to the control equipment according to the received first flow table;
and sending the first information to the PPPoE client according to the received second flow table.
11. The apparatus according to claim 9 or 10,
the PPPoE control message received by the receiver comprises a control message applied to a PPPoE discovery phase, and the first information received by the receiver comprises a first session identification ID;
or,
the PPPoE control message received by the receiver comprises a control message applied to a PPPoE session stage, and the first information received by the receiver comprises a first IP address;
or,
the PPPoE control message received by the receiver comprises a control message applied to a PPPoE discovery phase and a control message applied to a PPPoE session phase, and the first information received by the receiver comprises a first session identification ID and a first IP address;
the transmitter is specifically configured to send the OF packet to the control device.
12. The apparatus of claim 11,
the receiver is further configured to receive the first PPPoE data packet sent by the PPPoE client;
the processor is configured to: determining whether the session ID of the first PPPoE data message is the first session ID, and determining whether the first PPPoE data message is encapsulated with an IP message; when the session ID of the first PPPoE data message is the first session ID and the IP message is encapsulated in the first PPPoE data message, decapsulating the first PPPoE data message into a first public network data message according to a received third flow table;
the transmitter is further configured to: and sending the first public network data message to a public network according to the third flow table.
13. The apparatus of claim 11,
the receiver is further configured to: receiving a second public network data message from the public network;
the processor is configured to: determining whether the destination address of the second public network data message is the first IP address; after determining that the destination address of the second public network data message is the first IP address, packaging the second public network data message into a second PPPoE data message according to a received fourth flow table;
the transmitter is further configured to: and sending the second PPPoE data message to the PPPoE client according to the fourth flow table.
14. The apparatus of claim 12, wherein the first public network data packet obtained by the processor comprises:
an internet protocol IP message, an ethernet based internet protocol IPoE message, or an asynchronous transfer mode based internet protocol IPoA message.
15. A control apparatus, characterized by comprising:
the receiver is used for receiving the PPPoE control message sent by the forwarding equipment;
the processor is used for distributing first information to the PPPoE client according to the PPPoE control message received by the receiver, wherein the first information is information required by the PPPoE client for sending a first PPPoE data message;
a transmitter, configured to send the first information obtained by the processor to the forwarding device;
wherein the receiver is specifically configured to:
and receiving an open flow OF message sent by forwarding equipment, wherein the OF message is obtained by encapsulating the PPPoE control message by the forwarding equipment.
16. The apparatus of claim 15,
the PPPoE control message received by the receiver comprises a control message applied to a PPPoE discovery phase, and the first information obtained by the processor comprises a first session identification ID;
or,
the PPPoE control message received by the receiver comprises a control message applied to a PPPoE session stage, and the first information obtained by the processor comprises a first IP address;
or,
the PPPoE control message received by the receiver includes a control message applied to a PPPoE discovery phase and a control message applied to a PPPoE session phase, and the first information obtained by the processor includes a first session identification ID and a first IP address.
17. A system for processing point-to-point protocol over ethernet, PPPoE, comprising:
the forwarding device of any one of claims 9 to 14; and the number of the first and second groups,
a control device according to claim 15 or 16.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310141854.7A CN104125191B (en) | 2013-04-23 | 2013-04-23 | Processing method, equipment and the system of point-to-point protocol based on Ethernet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310141854.7A CN104125191B (en) | 2013-04-23 | 2013-04-23 | Processing method, equipment and the system of point-to-point protocol based on Ethernet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104125191A CN104125191A (en) | 2014-10-29 |
CN104125191B true CN104125191B (en) | 2017-09-26 |
Family
ID=51770458
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310141854.7A Active CN104125191B (en) | 2013-04-23 | 2013-04-23 | Processing method, equipment and the system of point-to-point protocol based on Ethernet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104125191B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108566451B (en) * | 2014-03-11 | 2021-05-14 | 华为技术有限公司 | Message processing method, access controller and network node |
CN104539580B (en) * | 2014-12-02 | 2017-10-31 | 重庆旭贤科技发展有限公司 | The route control method independently selected based on the PPPoE users for shunting gateway |
CN104580146B (en) * | 2014-12-02 | 2017-10-31 | 重庆旭贤科技发展有限公司 | The route control system independently selected based on the PPPoE users for shunting gateway |
CN105871964B (en) * | 2015-01-23 | 2020-08-07 | 中兴通讯股份有限公司 | User Equipment (UE) processing method and device |
CN106961412B (en) * | 2016-01-11 | 2020-04-24 | 中国移动通信集团公司 | Message conversion method, device and system |
CN107948082A (en) * | 2016-10-12 | 2018-04-20 | 中国电信股份有限公司 | The processing method and system and agent apparatus of point-to-point protocol on Ethernet |
CN108259453B (en) | 2017-05-31 | 2020-03-06 | 新华三技术有限公司 | Message forwarding method and device |
CN108259633B (en) | 2017-05-31 | 2020-05-12 | 新华三技术有限公司 | Method, system and device for realizing management message three-layer communication |
CN107547338B (en) * | 2017-05-31 | 2020-12-29 | 新华三技术有限公司 | Message forwarding method and device |
CN109672594B (en) * | 2017-10-13 | 2021-12-03 | 中国电信股份有限公司 | IPoE message processing method and device and broadband remote access server |
CN109768905A (en) * | 2019-03-13 | 2019-05-17 | 深信服科技股份有限公司 | A kind of method, system, equipment and the storage medium of PPPoE message transmissions |
CN110943897A (en) * | 2019-10-08 | 2020-03-31 | 中移(杭州)信息技术有限公司 | PPPoE data message transmission method, device, equipment and storage medium |
CN111162976B (en) * | 2019-12-20 | 2021-03-02 | 北京邮电大学 | Campus network PPPoE proxy dialing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1486025A (en) * | 2003-08-22 | 2004-03-31 | 北京港湾网络有限公司 | Checking method of PPPoE L2 transparent transmission port-username binding |
CN1790985A (en) * | 2004-12-13 | 2006-06-21 | 华为技术有限公司 | Method for realizing synchronous identification between different identification control equipments |
CN101030876A (en) * | 2007-04-06 | 2007-09-05 | 中兴通讯股份有限公司 | Method for realizing PPPoE packet-broadcasting service |
CN101212398A (en) * | 2006-12-29 | 2008-07-02 | 王立刚 | Access system and method |
CN101257420A (en) * | 2007-03-02 | 2008-09-03 | 华为技术有限公司 | Point-to-point protocol accessing method, system as well as access node equipment |
CN101621515A (en) * | 2009-08-07 | 2010-01-06 | 中兴通讯股份有限公司 | Access method based on point-to-point protocol on Ethernet and exchanger |
CN102035867A (en) * | 2009-09-29 | 2011-04-27 | 重庆旭贤科技发展有限公司 | Multipath PPPoE (Point-to-Point Protocol over Ethernet) fusion gateway system |
CN103051539A (en) * | 2012-12-14 | 2013-04-17 | 中兴通讯股份有限公司 | DHT-based (distributed hash table-based) control network implementation method, system and network controller |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4791252B2 (en) * | 2006-05-22 | 2011-10-12 | 株式会社日立製作所 | Packet transfer device, packet transfer system, user terminal device, and packet transfer method |
-
2013
- 2013-04-23 CN CN201310141854.7A patent/CN104125191B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1486025A (en) * | 2003-08-22 | 2004-03-31 | 北京港湾网络有限公司 | Checking method of PPPoE L2 transparent transmission port-username binding |
CN1790985A (en) * | 2004-12-13 | 2006-06-21 | 华为技术有限公司 | Method for realizing synchronous identification between different identification control equipments |
CN101212398A (en) * | 2006-12-29 | 2008-07-02 | 王立刚 | Access system and method |
CN101257420A (en) * | 2007-03-02 | 2008-09-03 | 华为技术有限公司 | Point-to-point protocol accessing method, system as well as access node equipment |
CN101030876A (en) * | 2007-04-06 | 2007-09-05 | 中兴通讯股份有限公司 | Method for realizing PPPoE packet-broadcasting service |
CN101621515A (en) * | 2009-08-07 | 2010-01-06 | 中兴通讯股份有限公司 | Access method based on point-to-point protocol on Ethernet and exchanger |
CN102035867A (en) * | 2009-09-29 | 2011-04-27 | 重庆旭贤科技发展有限公司 | Multipath PPPoE (Point-to-Point Protocol over Ethernet) fusion gateway system |
CN103051539A (en) * | 2012-12-14 | 2013-04-17 | 中兴通讯股份有限公司 | DHT-based (distributed hash table-based) control network implementation method, system and network controller |
Non-Patent Citations (1)
Title |
---|
Omar Ei Ferkouss;Racha BenAli;Yues Lemieux;Cherkaoui Omar.Performance model for mapping processing tasks to openflow switch resources.《2012 IEEE Iternational Conference on Communications (ICC)》.2012,第1476-1481页. * |
Also Published As
Publication number | Publication date |
---|---|
CN104125191A (en) | 2014-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104125191B (en) | Processing method, equipment and the system of point-to-point protocol based on Ethernet | |
US11929925B2 (en) | Reliable generic routing encapsulation tunnels | |
US8908704B2 (en) | Switch with dual-function management port | |
US7483996B2 (en) | Techniques for migrating a point to point protocol to a protocol for an access network | |
US7733859B2 (en) | Apparatus and method for packet forwarding in layer 2 network | |
AU2011244044B2 (en) | Efficient encapsulation of packets transmitted on a packet-pseudowire over a Packet Switched Network | |
US8825829B2 (en) | Routing and service performance management in an application acceleration environment | |
US8634308B2 (en) | Path detection in trill networks | |
US11627077B2 (en) | Reliable overlay based on reliable transport layer | |
AU2011244044A1 (en) | Efficient encapsulation of packets transmitted on a packet-pseudowire over a Packet Switched Network | |
Leymann et al. | Huawei's GRE Tunnel Bonding Protocol | |
KR101140453B1 (en) | Circuit emulation over an ip interworking virtual leased line | |
US7761508B2 (en) | Access device-based fragmentation and interleaving support for tunneled communication sessions | |
JP3757863B2 (en) | Access network equipment | |
EP1686762A1 (en) | Communication protocol interface | |
CN101060456B (en) | Ethernet point-to-point protocol-based broad band access method and system | |
WO2014063612A1 (en) | Method for smart end node to access to trill network, smart end node and routing bridge | |
CN107689881A (en) | Message processing method and device | |
CN101030877B (en) | Method for realizing packet broadcasting service by point-to-point protocol | |
EP4287567A1 (en) | Data processing method, apparatus and chip | |
JP2002271417A (en) | Tunneling device | |
CN110943896B (en) | PPPoE data message transmission method, device, equipment and storage medium | |
US11032106B1 (en) | Layer 2 tunnel protocol (“L2TP”) node processing optimization using a dedicated hello channel keepalive mechanism | |
CN110505137B (en) | Function expansion type wired network device | |
Sarikaya et al. | Independent Submission N. Leymann Request for Comments: 8157 C. Heidemann Category: Informational Deutsche Telekom AG |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |