Background technology
Point-to-point protocol on the Ethernet (PPPoE) can make the PPPoE client computer by simple bridging device (such as, switch or hub) link on the access concentrator of far-end, by the PPPoE agreement, the PPPoE server can be realized the control of each PPPoE client computer and charging.
Fig. 1 illustrates the PPPoE server of prior art and the diagram that is connected of PPPoE client computer.Shown in (A) among Fig. 1, PPPoE server and PPPoE client computer are set up tunnel communication.In network environment, send message between PPPoE server and the PPPoE client computer, can need to encapsulate heading, and can further carry out PPPoE maximum receive unit (MRU) and consult, if PPPoE consults MRU and adds that the heading size afterwards of encapsulation is greater than maximum transmitting element (MTU), then can cause message at the intermediate equipment burst, to all network elements, processing burst is the operation in consuming time, an expensive source, simultaneously the Internet Transmission quality also there is damage, reduces communication efficiency.For example; shown in (B) among Fig. 1; in the wlan network environment, PPPoE server and PPPoE client computer are usually by intermediate equipment, namely; wireless controller (AC) and WAP (wireless access point) (AP); carry out control and configuration (CAPWAP) encapsulation of WAP (wireless access point), usually can greater than MTU, process therefore cause carrying out between AC and AP message fragment because PPPoE negotiation MRU adds CAPWAP encapsulated message head; serious AC and the AP efficient of reducing takies processor.
Summary of the invention
The object of the present invention is to provide a kind of maximum receive unit based on the point-to-point protocol on the Ethernet (PPPoE) (MRU) machinery of consultation, described method comprises: PPPoE server and wireless controller (AC) are consulted to make the two ends, tunnel must not carry out the MRU of message fragment; AC is forwarded to the PPPoE client computer with described MRU; The PPPoE client computer is confirmed described MRU, will confirm that via AC the result notifies the PPPoE server, and via AC the MRU of PPPoE client computer is sent to the PPPoE server; The PPPoE server is confirmed the MRU of PPPoE client computer, and will be confirmed that via AC the result notifies the PPPoE client computer; The MRU of the minimum among the MRU that PPPoE server and PPPoE client computer are all selected to confirm is to be used for message transmissions.
The step that PPPoE server and AC consult to make the two ends, tunnel must not carry out the MRU of Fragmentation can comprise: the PPPoE server sends link configuration agreement (LCP) the configuring request message of the predetermined MRU that carries the PPPoE server to AC; AC resolves LCP configuring request message with the predetermined MRU of the PPPoE server that obtains to carry; If the predetermined MRU of the PPPoE server that carries is greater than the predetermined MRU of AC, then AC tackles LCP configuring request message, send the LCP configuration negative response message of the predetermined MRU that carries AC to the PPPoE server, the PPPoE server is resolved the predetermined MRU of the AC that obtains to carry to LCP configuration negative response message, and sends the LCP configuring request message of the predetermined MRU that carries AC to AC.
AC can comprise the step that described MRU is forwarded to the PPPoE client computer: if the MRU that the LCP configuring request message that the PPPoE server sends to AC carries is not more than the predetermined MRU of AC, then AC with LCP configuring request message repeating to the PPPoE client computer.
The PPPoE client computer is confirmed described MRU, to confirm that via AC the result notifies the step of PPPoE server to comprise: the PPPoE client computer is resolved LCP configuring request message, if the MRU that carries is not more than the predetermined MRU of PPPoE client computer, then the PPPoE client computer sends LCP configure-ack message to confirm the described MRU that carries via AC to the PPPoE server, if the MRU that carries is greater than the predetermined MRU of PPPoE client computer, then the PPPoE client computer sends LCP configuration negative response message to deny the described MRU that carries via AC to the PPPoE server.
The PPPoE client computer can comprise the step that the MRU of PPPoE client computer sends to the PPPoE server via AC: the PPPoE client computer sends the LCP configuring request message of the predetermined MRU that carries the PPPoE client computer to the PPPoE server via AC.
The PPPoE server is confirmed the MRU of PPPoE client computer, and will confirm that via AC the result notifies the step of PPPoE client computer to comprise: the PPPoE server is also resolved LCP configuring request message, if the predetermined MRU of the PPPoE client computer of carrying is not more than the predetermined MRU of PPPoE server, then the PPPoE server sends LCP configure-ack message with the predetermined MRU of the PPPoE client computer confirming to carry via AC to the PPPoE client computer, if the predetermined MRU of the PPPoE client computer of carrying is greater than the predetermined MRU of PPPoE server, then the PPPoE server sends LCP configuration negative response message with the predetermined MRU of the PPPoE client computer denying carrying via AC to the PPPoE client computer.
The predetermined MRU of PPPoE server can be the maximum MRU that the PPPoE server allows, and the predetermined MRU of AC makes the two ends, tunnel must not carry out the maximum MRU of message fragment, and the predetermined MRU of PPPoE client computer can be the maximum MRU that the PPPoE client computer allows.
The maximum MRU that makes the two ends, tunnel must not carry out message fragment can equal the size that maximum transmitting element (MTU) deducts the heading of the anterior encapsulation of message.
Will be in ensuing description part set forth the present invention other aspect and/or advantage, some will be clearly by describing, and perhaps can learn through enforcement of the present invention.
Embodiment
Now, describe exemplary embodiment of the present invention in detail, its example represents in the accompanying drawings, and wherein, identical label represents identical parts all the time.
Fig. 2 is the diagram that illustrates according to an exemplary embodiment of the present invention based on the maximum receive unit machinery of consultation of PPPoE agreement.With reference to Fig. 2, can between PPPoE server and PPPoE client computer, set up the tunnel.
At operation S210, the PPPoE server sends link configuration agreement (LCP) configuring request (the LCP configuration Request) message of the predetermined MRU that carries the PPPoE server to AC.Here, the predetermined MRU of described PPPoE server can be the maximum MRU that the PPPoE server allows, but the invention is not restricted to this.
AC monitors LCP configuring request message and it is resolved the predetermined MRU of the PPPoE server that obtains to carry, if the predetermined MRU of the PPPoE server that carries is greater than the predetermined MRU of AC, then at operation S220, AC interception LCP configuring request message, send LCP configuration negative response (the LCP configuration Nak) message of the predetermined MRU that carries AC to the PPPoE server, with the supported MRU of notice PPPoE server.If the predetermined MRU of the PPPoE server that carries is not more than the predetermined MRU of AC, then AC operates S240.
Here, AC can be issued to flag bit at least one interface of AC and determine which interface to monitor up LCP configuring request message (namely by, by the LCP configuring request message of PPPoE server to the AC transmission), whether AC also can select the unlock interface monitor function, if unlock interface monitor function not, then AC can transmit message according to method of the prior art.In addition, AC also can arrange the maximum MRU (that is, the predetermined MRU of AC) that message fragment is not carried out at assurance two ends, tunnel, and this maximum MRU equals the size that MTU deducts the heading of the anterior encapsulation of message.Fig. 3 illustrates the according to an exemplary embodiment of the present invention diagram of CAPWAP encapsulation PPPoE message.As shown in Figure 3, only as example, maximum MRU equals MTU-60 (IP head)-8 (User Datagram Protoco (UDP) (UDP) head)-16 (CAPWAP)-28 (802.11)-3 (802.2 logic link controls (LLC))-5 (802.2 sub-network access protocal (SNAP))-8 (PPPoE)=MTU-128 (byte).Because regular traffic IP head is 20 bytes, MTU can be 1480 bytes, therefore MRU can be set to MTU-88 (byte), i.e. 1412 bytes, but should be understood that to the invention is not restricted to this, those skilled in the art can arrange maximum MRU according to actual conditions and needs.
At operation S230, the PPPoE server receives LCP configuration negative response message and it is resolved the predetermined MRU of the AC that obtains to carry, and sends the LCP configuring request message of the predetermined MRU that carries AC to AC.
AC monitors LCP configuring request message and it is resolved, because the MRU that carries is not more than the predetermined MRU of AC (under present case, the MRU that carries equals the predetermined MRU of AC), thus the operation S240, AC with LCP configuring request message repeating to the PPPoE client computer.
The PPPoE client computer receives LCP configuring request message and it is resolved, at operation S250, if the MRU that carries is not more than the predetermined MRU of PPPoE client computer, then the PPPoE client computer sends LCP configure-ack (LCP configuration ACK) message to confirm the MRU of this negotiation via AC to the PPPoE server, that is the MRU that, carries; If the MRU that carries is greater than the predetermined MRU of PPPoE client computer, then the PPPoE client computer sends LCP configuration negative response (LCP configuration Nak) message to deny the MRU of this negotiation via AC to the PPPoE server.Here, the predetermined MRU of described PPPoE client computer can be the maximum MRU that the PPPoE client computer allows, but the invention is not restricted to this.
At operation S260, the PPPoE client computer sends LCP configuring request (the LCP configuration Request) message of the predetermined MRU that carries the PPPoE client computer to the PPPoE server via AC.
The PPPoE server receives LCP configuring request message and it is resolved, at operation S270, if the predetermined MRU of the PPPoE client computer of carrying is not more than the predetermined MRU of PPPoE server, then the PPPoE server sends LCP configure-ack (LCP configuration ACK) message to confirm the MRU of this negotiation via AC to the PPPoE client computer, that is the predetermined MRU of the PPPoE client computer of, carrying; If the predetermined MRU of the PPPoE client computer of carrying is greater than the predetermined MRU of PPPoE server, then the PPPoE server sends LCP configuration negative response (LCP configuration Nak) message to deny the MRU of this negotiation via AC to the PPPoE client computer.
Through after the aforesaid operations, the MRU between PPPoE server and the PPPoE client computer consults complete, and PPPoE server and PPPoE client computer both sides all select minimum MRU among the MRU of the negotiation confirmed, with for subsequently message transmissions.
Should understand, also can have AP in the tunnel between PPPoE server and the PPPoE client computer, namely, AC can be forwarded to first AP with message, is further transmitted by AP again, perhaps first forwards the packet to AC by AP, further transmitted by AC again, do not repeat them here.In addition, the PPPoE that passes through the tunnel for every needs is professional, can adopt similar scheme to solve.
According to exemplary embodiment of the present invention, monitor and do link MRU negotiation by AC, can make PPPoE server in the existing network and PPPoE client computer in the situation that complete unaware AC (PPPoE server and PPPoE client computer are all thought each other direct communication), solve the problem that the PPPoE link passes through CAPWAP tunnel, and can improve link transmission efficient by making on the link each network element not need to process burst.
Although illustrated and described the present invention with reference to certain exemplary embodiments, but it will be apparent to one skilled in the art that the various changes that in the situation that does not break away from the spirit and scope of the present invention that scope limits by claim and equivalent thereof, can make on form and the details.