Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The inventor finds in realizing process of the present invention, after PPP connects foundation, whether normally connect in order to detect PPP, BAS and client Client send LCP (Link Control Protocol mutually, LCP) message, BAS sends LCP Echo Request (LCP echo request) message, and Client replys LCP Echo Reply (answer of LCP echo) message; Perhaps Client sends LCP EchoRequest message, and BAS replys LCP Echo Reply message.In this process, access device transparent transmission LCP message.
Therefore, in the embodiment of the invention, in the payload of the controlling links message of LCP, insert XDSL line speed information, realize that access device reports accurately the XDSL line speed to give BAS by access device.
Embodiment 1:
The embodiment of the invention 1 provides a kind of method that reports line speed information.
Fig. 1 is a kind of flow chart that reports the method for line speed information of the embodiment of the invention 1.The executive agent of this method is an access device, and as shown in Figure 1, this method comprises the steps:
Whether S101, detection XDSL line speed change.
Particularly, XDSL chip support in the access device detects the function that the XDSL line speed changes, for example this XDSL chip can periodically detect the XDSL line speed, and testing result is recorded in self or independently in the storage medium, thereby current XDSL line speed and the record of XDSL line speed (as recent record) before that obtains can be compared, whether change to judge the XDSL line speed.Wherein, this XDSL chip for example can adopt BCM (BroadcomCorporation, Botong company), Infineon (company of Infineon) nest plate.
S102, when detecting the XDSL line speed and change, in sending to the LCP message of BAS, insert the XDSL line speed information after changing.
Particularly, cause that reason that the XDSL line speed changes is including but not limited to following 2 reasons:
1, the XDSL terminal just activates, and the XDSL chip of access device and XDSL terminal also do not negotiate stable speed fully.2, XDSL line condition variation (as noise effect) causes line speed to change.
Particularly, the process of the XDSL line speed information after insert changing in sending to the LCP message of BAS specifically comprises: sending in the payload of LCP message of BAS and inserting label TAG, described TAG comprises tag types TAG_TYPE, tag length TAG_LENGTH and label value TAG_VALUE, wherein, described TAG_VALUE carry the up XDSL line speed information after the variation and change after descending XDSL line speed information.
Particularly, the LCP message comprises LCP Echo Reply message or LCP Echo Request message.But the embodiment of the invention 1 is not restricted to this, and those skilled in the art also can adopt self-defining other message, only need satisfy and all can support mutually or understand between BAS and the access device to get final product.
Particularly, the LCP message that being used to of sending between BAS and the client Client detected connectivity of link can be periodic transmission.Its cycle can dispose, and for example is configured to transmission in per 3 minutes once.If an end has sent LCP Echo Request message, the other end is replied LCP Echo Reply message and is got final product.Message is not all received the LCP Echo Reply message that the other end is replied if an end continuous several times (for example 3 times) sends LCP Echo Reply, and then transmitting terminal judgement ppp link has been interrupted.
S103, the described LCP message that has inserted the XDSL line speed information after the variation is sent to BAS.So that BAS can carry out QOS control to business according to (accurately promptly) the XDSL line speed after changing, guaranteed that the QOS function is accurate, the speed that the user is got access to is consistent with actual, makes professional normal.
S104, when detecting the XDSL line speed and not changing, in sending to the LCP message of BAS, do not insert XDSL line speed information, to give BAS, make BAS keep QOS control constant with this LCP message transmission.
Fig. 2 is the message format figure of payload field of the LCP message of the embodiment of the invention 1.As shown in Figure 2, access device can be in the payload of LCP Echo Reply that is transmitted to BAS or LCP Echo Request message inserts XDSL line speed information according to as shown in Figure 2 form.
Wherein, tag types TAG_TYPE takies 16bit, can be self-defined by supplier; Tag length TAG_LENGTH takies 16bit, the length of expression label substance; TAG_VALUE represents concrete label value, i.e. label substance.XDSL line speed information can be described in label substance.Particularly, XDSL line speed information uses %Up:xxxxxxkbps Down:xxxxxxkbps to describe, wherein, % is an information identifier, represent that its back is an XDSL line speed information, Up represents it is up XDSL line speed information, and Down represents it is descending XDSL line speed information, and the unit of speed is kbps.
Fig. 3 is a kind of group-network construction figure of the embodiment of the invention 1.Describe the technical problem of the embodiment of the invention 1 solution and the technique effect that reaches in detail below in conjunction with Fig. 3.
As shown in Figure 3, PPPOE Client can carry out the PPPOE dialing always before PPPOE does not set up, speed was also unstable but can transmit the PPPOE message when XDSL terminal had just activated, the PPPOE dial-up success, but it is not actual XDSL line speed after stable that access device reports the XDSL line speed information of BAS, therefore, BAS carries out QOS control according to the XDSL line speed value of mistake, the speed that can cause the user to get access to is inconsistent with reality, the XDSL chip that promptly causes speed that the user gets access to and access device is inconsistent with the final value of coming out of consulting of XDSL terminal, and may cause business undesired, for example show as data-bag lost, perhaps the generation of situation such as transmission rate reduction.
In addition, set up but in the scene that the deexcitation of XDSL circuit activates then again at PPPOE, XDSL activates back speed again and may change, if BAS still carries out QOS control according to XDSL line speed before, the speed that also can cause the user to get access to is inconsistent with reality, and may cause business undesired.
The method of the embodiment of the invention 1, by in the LCP message, inserting the XDSL line speed after changing and sending to BAS, can make BAS set up the accurate speed that the back obtains the XDSL circuit at PPPOE, solving BAS equipment can't obtain the accurate speed of XDSL circuit and cause professional abnormal problem, thereby can avoid or reduce the abnormal situation of above-mentioned business takes place, and the QOS function that guarantees BAS is accurate, improves user experience.
Embodiment 2:
The embodiment of the invention 2 provides a kind of method of obtaining line speed information.
Fig. 4 is the flow chart of the method for obtaining line speed information of the embodiment of the invention 2.The executive agent of this method is BAS Broadband Access Server BAS, and as shown in Figure 4, this method comprises:
The LCP LCP message that S401, reception access device send.
Particularly, the LCP message comprises LCP Echo Reply message or LCP Echo Request message.
S402, judge whether comprise XDSL line speed information in the described LCP message.
Particularly, the detailed process of S402 also can comprise: judge in the payload of described LCP Echo Reply message or LCP Echo Request message whether comprise TAG, wherein this TAG carries XDSL line speed information, and XDSL line speed information comprises up XDSL line speed information and descending XDSL line speed information.
S403, when comprising XDSL line speed information in the described LCP message, according to described XDSL line speed information, adjust service quality QOS control.
Particularly, the detailed process of S403 can comprise: extract the label value TAG_VALUE that the label TAG in the payload of described LCP message comprises, wherein said TAG_VALUE carries up XDSL line speed information and descending XDSL line speed information; According to described up XDSL line speed information and descending XDSL line speed information, refresh XDSL line speed record and adjust QOS control.
Particularly, BAS XDSL line speed information accurately does QOS control: promptly BAS can control the speed that the user obtains, and for example the speed of user's purchase is up X M, descending Y M, the actual speed rate of circuit is up A M, descending B M, wherein, M represents MBPS, BAS can be controlled at min (X to upstream rate so, A) M, downstream rate is controlled at min (Y, B) M.For example the downstream rate of user's purchase is 10M, can only carry 8M but circuit is actual, and BAS can because if BAS still sends the flow of 10M, have the flow of 2M to be lost by circuit the flow control of downlink message at 8M so so, and is professional just undesired.In addition, if having reported an error on the speed, the actual speed that can reach 10M of circuit for example, but the line speed of the mistake that reports only is 2M, the actual speed that obtains of user is 2M so, and is too far away with the 10M gap of client's purchase, influences user experience.
S404, when not comprising XDSL line speed information in the described LCP message, QOS control is remained unchanged.Particularly,, represent that promptly the XDSL line speed does not change, therefore need not to adjust QOS control when BAS finds not comprise XDSL line speed information in the LCP message.
The method of the embodiment of the invention 2, by whether comprising XDSL line speed information in the LCP message of judging the access device transmission, determine whether adjusting QOS control, owing to from the LCP message that access device sends, obtained XDSL line speed accurately, thereby the QOS function that can guarantee BAS is accurate, has reduced the generation of professional abnormal conditions effectively.
Embodiment 3:
The embodiment of the invention 3 provides the another kind of method that reports line speed information.
The embodiment of the invention 3 considers that access device and BAS generally adopt distributed system to handle the LCP message, be that a large amount of LCP messages is handled very little to performance impact, solve the very difficult problem of distinguishing the LCP message of different sessions of access device when having many PPPOE session case under the port simultaneously, access device adopts to issue in the LCP Echo Request of BAS and the LCP Echo Reply link maintenance message at all and all inserts rate information, issues BAS then.BAS judges whether the rate information value that TAG carries in LCP Echo Request or the LCP EchoReply link maintenance message changes, if the rate information of XDSL circuit changes, then adjusts QOS control, otherwise, keep QOS control constant.
Fig. 5 is the flow chart of the method that reports line speed information of the embodiment of the invention 3.The executive agent of this method is an access device, and as shown in Figure 5, this method comprises the steps:
S501, the current XDSL line speed of detection.
S502, in sending to the LCP message of BAS, insert current XDSL line speed information.
Particularly, the detailed process of S502 can comprise: insert the label TAG that comprises label value TAG_VALUE in the payload of the LCP message that sends to BAS, wherein, described TAG_VALUE carries current up XDSL line speed information and current descending XDSL line speed information.
S503, the described LCP message that has inserted current XDSL line speed information is sent to BAS.
The method difference is shown in method shown in the embodiment of the invention 3 and the embodiment 1, access device after detecting current XDSL line speed unlike judging that whether current XDSL line speed changes with respect to before speed record, but directly detected XDSL line speed is increased in the LCP message, report BAS then, judge by BAS whether line speed change has taken place.In other words, access device is issued at all and is all inserted rate information in the LCP Echo Request of BAS and the LCP Echo Reply link maintenance message and issue BAS then.By technique scheme, can make BAS obtain the line speed consistent in time, thereby can make the user obtain speed with actual coincidence, and avoid effectively or reduce professional abnormal situation with actual conditions, can promote the user experience effect.
Embodiment 4:
The embodiment of the invention 4 provides the another kind of method of obtaining line speed information.
Fig. 6 obtains the flow chart of the method for line speed information for the another kind of the embodiment of the invention 4.The executive agent of this method is BAS, and as shown in Figure 6, this method comprises the steps:
The LCP message that comprises XDSL line speed information that S601, reception access device send.Particularly, this LCP message comprises LCP Echo Reply or LCP Echo Request message.
The XDSL line speed information that comprises in S602, the described LCP message of extraction.Particularly, extract the TAG that comprises in the payload of LCP message, this TAG carries XDSL line speed information.
S603, judge whether described XDSL line speed information changes.
Particularly, rate information and recent rate information record that BAS takes out in the message compare, and see whether change.
S604, when described XDSL line speed information changes, adjust QOS control according to the XDSL line speed information after changing.
Particularly, the detailed process among the S604 can comprise: when described XDSL line speed information changes, refresh XDSL line speed record according to the XDSL line speed information after changing, and adjust QOS control.
S605, when described XDSL line speed information does not change, QOS control is remained unchanged.
The method that the embodiment of the invention 4 provides, the XDSL rate information that BAS carries by the LCP message that receives the access device transmission, and whether the XDSL rate information that relatively receives changes with the speed of judging the XDSL circuit with before speed record, and adjust QOS according to the rate information after changing and control, thereby can reduce professional abnormal situation takes place, the QOS function that guarantees BAS is accurate, improves user experience.
Embodiment 5:
The embodiment of the invention 5 provides a kind of access device.This access device for example comprises: DSLAM (Digital Subscriber Line Access Multiplexer, Digital Subscriber Line Access Multiplexer) and MSAN (Multi-Service Access Network, multi-service access node) etc.
Fig. 7 is the functional block diagram of a kind of access device of the embodiment of the invention 5.As shown in Figure 7, this access device 10 comprises:
Detecting unit 110 can be used to detect current XDSL line speed;
Processing unit 120 can be used for inserting described current XDSL line speed information at the LCP message that sends to BAS;
Transmitting element 130 can be used for the described LCP message that has inserted current XDSL line speed information is sent to BAS.
Alternatively, described processing unit 120, specifically can be used for inserting the label TAG that comprises label value TAG_VALUE at the payload of the LCP message that sends to BAS, wherein, described TAG_VALUE carries current up XDSL line speed information and current descending XDSL line speed information.
Fig. 7 A is the concrete function block diagram of the another kind of access device of the embodiment of the invention 5.Shown in Fig. 7 A, this access device 10 can further include:
Judging unit 140 is connected with described detecting unit 110, is used to judge whether described current XDSL line speed changes;
Described processing unit 120 is connected with described judging unit 140, also is used for when described current XDSL line speed changes, and inserts described current XDSL line speed information in sending to the LCP message of BAS.
The operation principle of the access device of the embodiment of the invention 5 and each unit that comprises thereof is introduced in preceding method embodiment, so do not give unnecessary details at this.
The access device of the embodiment of the invention 5 is by all inserting XDSL line speed information in the LCP message that sends to BAS at all, thereby can make BAS in time obtain the accurate speed of XDSL circuit, solve BAS equipment and can't obtain the accurate speed of XDSL circuit and cause professional abnormal problem.
Embodiment 6:
The embodiment of the invention 6 provides a kind of BAS Broadband Access Server.
Fig. 8 is the functional block diagram of a kind of BAS Broadband Access Server of the embodiment of the invention 6.As shown in Figure 8, this BAS Broadband Access Server 20 comprises:
Receiving element 210 can be used to receive the LCP message that access device sends;
First judging unit 220 can be used for judging whether described LCP message comprises XDSL line speed information;
Processing unit 230 can be used for when described LCP message comprises XDSL line speed information, according to described XDSL line speed information, adjusts QOS control.
Particularly, described processing unit comprises and obtains subelement 231 and adjust subelement 232;
The described subelement 231 that obtains can be used for extracting the label value TAG_VALUE that the label TAG of the payload of described LCP message comprises, and wherein said TAG_VALUE carries up XDSL line speed information and descending XDSL line speed information;
Described adjustment subelement 232 can be used for according to described up XDSL line speed information and descending XDSL line speed information, adjusts QOS control.
Fig. 8 A is the functional block diagram of the another kind of BAS Broadband Access Server of the embodiment of the invention 6.Shown in Fig. 8 A, this BAS Broadband Access Server 20 can further include:
Second judging unit 240 is connected with described first judging unit 220, is used to judge whether described XDSL line speed information changes;
Described processing unit 230 is connected with described second judging unit 240, is used for when described XDSL line speed information changes, and adjusts service quality QOS control according to the XDSL line speed information after changing.
The operation principle of the BAS Broadband Access Server of the embodiment of the invention 6 and each unit that comprises thereof is introduced in aforesaid method embodiment, does not give unnecessary details at this.
The BAS of the embodiment of the invention 6, whether comprise the XDSL rate information in the LCP message that receives by judgement, to know whether current line speed changes, and adjust QOS according to the rate information of XDSL accurately in the LCP message and control, can't obtain the accurate speed of XDSL circuit and cause professional abnormal problem thereby solve BAS equipment, guarantee that the QOS function of BAS is accurate.
Embodiment 7:
The embodiment of the invention 7 provides a kind of system that obtains line speed information.
Fig. 9 is a kind of functional block diagram that obtains the system of line speed information of the embodiment of the invention 7.As shown in Figure 9, this system 100 comprises:
Whether access device 200 is used to detect the XDSL line speed and changes; When detecting the XDSL line speed and change, in sending to the LCP message of BAS, insert the XDSL line speed information after changing; The described LCP message that has inserted the XDSL line speed information after the variation is sent to BAS;
BAS Broadband Access Server 300 is used to receive the lcp link control protocol message that access device sends; Judge and whether comprise XDSL line speed information in the described LCP message; When comprising XDSL line speed information in the described LCP message,, adjust QOS control according to described XDSL line speed information.
Below describe the course of work of the system of the embodiment of the invention 9 for example in detail.
In the embodiment of the invention 7, the XDSL chip support of access device detects the XDSL line speed and changes, line speed changes if access device detects XDSL, then access device is after receiving the LCP Echo Reply message that the PPPOE client is replied, perhaps access device is after receiving the LCP Echo Request message that the PPPOE client sends, in LCP Echo Reply or LCP Echo Request message, insert XDSL line speed information, and the LCP EchoReply or the LCP Echo Request message that will insert XDSL line speed information send to BAS.BAS refreshes XDSL line speed record and adjusts QOS control after receiving the LCP message of being with XDSL line speed information.
A kind of situation, access device is at first received the LCP Echo Request message that BAS sends after the rate variation.Signalling exchange flow chart in this case sees also Figure 10, and Figure 10 is a kind of Signalling exchange flow chart of the embodiment of the invention 9, and as shown in figure 10, this flow process comprises the steps:
S1001, BAS send LCP Echo Request message to access device.
S1002, access device are given Client with this LCP Echo Request message transmission.
S1003, Client send LCP Echo Reply message to access device.
S1004, because access device detects the XDSL line speed and changes, then access device inserts XDSL line speed information in this LCP Echo Reply message;
Particularly, access device inserts TAG in the payload of LCP Echo Reply message, and TAG has carried the XDSL line speed information after changing.
The LCP Echo Reply message that S1005, access device will insert XDSL line speed information sends to BAS.
S1006, BAS are after receiving the LCP Echo Reply message that comprises XDSL line speed information, the XDSL line speed information that comprises in the LCP Echo Reply message is taken out, refresh XDSL line speed record and adjust QOS control according to this XDSL line speed information.
Another kind of situation, the XDSL line speed changes the back access device and at first receives the LCP Echo Request message that the PPPOE client sends, Signalling exchange flow chart in this case sees also Figure 11, Figure 11 is the another kind of Signalling exchange flow chart of the embodiment of the invention 9, as shown in figure 11, this flow process comprises the steps:
S1101, Client send LCP Echo Request message to access device.
S1102, because access device detects the XDSL line speed changes, then access device inserts XDSL line speed information in LCPEcho Request message; For example, in the payload of LCP Echo Request message, insert the TAG of the XDSL line speed information after carrying variation.
The LCP Echo Request message that S1103, access device will insert XDSL line speed information sends to BAS.
S1104, BAS are behind the LCP EchoRequest message that receives the XDSL line speed information after comprising variation, the XDSL line speed information that comprises in the LCP Echo Request message is taken out, refresh XDSL line speed record and adjust QOS control according to the XDSL line speed information after this variation.
The system of the embodiment of the invention 7 can obtain XDSL speed accurately, has guaranteed that the QOS function is accurate.
Embodiment 8:
The embodiment of the invention 8 provides the another kind of system that obtains line speed information.
Figure 12 obtains the functional block diagram of the system of line speed information for the another kind of the embodiment of the invention 8.As shown in figure 12, this system 400 comprises:
Access device 500 is used to detect current XDSL line speed; In sending to the LCP message of BAS BAS Broadband Access Server, insert current XDSL line speed information; The described LCP message that has inserted current XDSL line speed information is sent to BAS;
BAS Broadband Access Server 600 is used to receive the LCP message that comprises XDSL line speed information that access device sends; Extract the XDSL line speed information that comprises in the described LCP message; Judge whether described XDSL line speed information changes; When described XDSL line speed information changes, adjust QOS control according to the XDSL line speed information after changing.
Below describe the course of work of the system of the embodiment of the invention 10 in detail.
In the embodiment of the invention 8, access device is issued in the LCP Echo Request of BAS and the LCP Echo Reply link maintenance message at all and is all inserted rate information, issues BAS then.
Figure 13 is a kind of Signalling exchange flow chart of the embodiment of the invention 8.As shown in figure 13, this flow process comprises the steps:
S1301, BAS send LCP Echo Request message to access device.
S1302, access device are given Client with this LCP Echo Request message transmission.
S1303, Client reply LCP Echo Reply message to access device.
S1304, access device insert the XDSL rate information in the LCP Echo Reply message that receives.
The LCP Echo Reply message that S1305, access device will insert the XDSL rate information sends to BAS.
S1306, BAS receive the LCP Echo Reply message that comprises the XDSL rate information that access device sends, and whether the XDSL rate information that the TAG that judges LCP Echo Reply message carries changes, when not changing, keep QOS control constant, when changing, adjust QOS control according to the XDSL rate information after changing.
S1307, Client send LCP Echo Request message to access device.
S1308, access device insert the XDSL rate information in the LCP Echo Request message that receives;
The LCP Echo Request message that S1309, access device will insert the XDSL rate information sends to BAS.
S1310, BAS receive the LCP EchoRequest message that comprises the XDSL rate information that access device sends, and whether the XDSL rate information that the TAG that judges LCP Echo Request message carries changes, when not changing, keep QOS control constant, when changing, adjust QOS control according to the XDSL rate information after changing.
S1311, BAS send LCP Echo Reply message to access device.
S1312, access device with this LCP Echo Reply message transmission to Client.
The system of the embodiment of the invention 8 can obtain XDSL speed accurately, has guaranteed that the QOS function is accurate, has reduced the generation of professional abnormal conditions.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-OnlyMemory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above embodiment only in order to the technical scheme of the explanation embodiment of the invention, is not intended to limit; Although the embodiment of the invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of each embodiment technical scheme of the embodiment of the invention.