Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Inventor is realizing finding in process of the present invention, after PPP connection establishment, whether normally connect to detect PPP, BAS and client Client sends mutually LCP (Link Control Protocol, LCP) message, BAS sends LCP Echo Request (LCP echo request) message, and Client replys LCP Echo Reply (reply of LCP echo) message; Or Client sends LCP EchoRequest message, BAS replys LCP Echo Reply message.In the process, access device transparent transmission LCP message.
Therefore, in the embodiment of the present invention, by access device LCP link control message payload in insert XDSL line rate information, realize access device report accurately XDSL line speed to BAS.
Embodiment 1:
The embodiment of the present invention 1 provides a kind of method reporting line rate information.
Fig. 1 is a kind of flow chart reporting the method for line rate information of the embodiment of the present invention 1.The executive agent of the method is access device, and as shown in Figure 1, the method comprises the steps:
Whether S101, detection XDSL line speed change.
Particularly, XDSL chip support in access device detects the function of XDSL line speed change, such as this XDSL chip can periodically detect XDSL line speed, and testing result is recorded in self or independently in storage medium, thus the current XDSL line speed obtained and XDSL line speed (as recent record) before can be recorded and compare, to judge whether XDSL line speed changes.Wherein, this XDSL chip such as can adopt BCM (BroadcomCorporation, company of Botong), Infineon (company of Infineon) nest plate.
S102, when detecting that XDSL line speed changes, in the LCP message sending to BAS insert change after XDSL line rate information.
Particularly, the reason causing XDSL line speed to change is including but not limited to following 2 reasons:
1, XDSL terminal just activates, and XDSL chip and the XDSL terminal of access device also do not negotiate stable speed completely.2, XDSL line condition change (as noise effect) causes line speed to change.
Particularly, the process of the XDSL line rate information insert change in the LCP message sending to BAS after specifically comprises: in the payload of LCP message sending to BAS, insert label TAG, described TAG comprises tag types TAG_TYPE, tag length TAG_LENGTH and label value TAG_VALUE, wherein, described TAG_VALUE carries the descending XDSL line rate information after the up XDSL line rate information after change and change.
Particularly, LCP message comprises LCP Echo Reply message or LCP Echo Request message.But the embodiment of the present invention 1 is not restricted to this, those skilled in the art also can adopt other message self-defining, only need meet between BAS and access device and all can mutually support or understand.
Particularly, what send between BAS and client Client can be periodic transmission for detecting the LCP message of connectivity of link.Its cycle can configure, such as, be configured to send once for every 3 minutes.If one end have sent LCP Echo Request message, the other end replys LCP Echo Reply message.If one end continuous several times (such as 3 times) sends the LCP Echo Reply message that LCP Echo Reply message does not all receive other end reply, then transmitting terminal judges that ppp link has been interrupted.
S103, the described LCP message having inserted the XDSL line rate information after change is sent to BAS.So that BAS can carry out QOS control according to (namely accurately) the XDSL line speed after change to business, ensure that QOS function is accurate, the speed that user is got is consistent with actual, makes business normal.
S104, when detecting that XDSL line speed does not change, in the LCP message sending to BAS, do not insert XDSL line rate information, with by this LCP message transmission to BAS, make BAS keep QOS to control constant.
Fig. 2 is the message format figure of the payload field of the LCP message of the embodiment of the present invention 1.As shown in Figure 2, access device can insert XDSL line rate information according to form as shown in Figure 2 in the payload of the LCP Echo Reply or LCP Echo Request message that are transmitted to BAS.
Wherein, tag types TAG_TYPE takies 16bit, can by Vendor-specific; Tag length TAG_LENGTH takies 16bit, represents the length of label substance; TAG_VALUE represents concrete label value, i.e. label substance.XDSL line rate information can be described in label substance.Particularly, XDSL line rate information uses %Up:xxxxxxkbps Down:xxxxxxkbps to describe, wherein, % is information identifier, represent after it it is XDSL line rate information, Up represents it is up XDSL line rate information, and Down represents it is descending XDSL line rate information, and the unit of speed is kbps.
Fig. 3 is a kind of group-network construction figure of the embodiment of the present invention 1.The technical problem that the embodiment of the present invention 1 solves and the technique effect reached is described in detail below in conjunction with Fig. 3.
As shown in Figure 3, PPPOE Client can carry out PPPOE dialing before PPPOE does not set up always, when XDSL terminal just activates, speed is also unstable but can forward PPPOE message, PPPOE dial-up success, but the XDSL line rate information that access device reports BAS be not actual stable after XDSL line speed, therefore, BAS carries out QOS control according to the XDSL line speed value of mistake, the speed that user can be caused to get is with actual inconsistent, namely the value that the speed causing user to get and the XDSL chip of access device are finally consulted out with XDSL terminal is inconsistent, and business may be caused abnormal, such as show as data-bag lost, or the generation of the situations such as transmission rate reduction.
In addition, in the scene that PPPOE has set up but then the deexcitation of XDSL circuit reactivates, XDSL reactivates rear speed and may change, if BAS still carries out QOS control according to XDSL line speed before, the speed that user also can be caused to get with actual inconsistent, and may cause business abnormal.
The method of the embodiment of the present invention 1, by inserting the XDSL line speed after changing and send to BAS in LCP message, can make BAS after PPPOE sets up, obtain the accurate velocity of XDSL circuit, solve BAS equipment cannot obtain XDSL circuit accurate velocity and cause the abnormal problem of business, thus can avoid or reduce the abnormal situation generation of above-mentioned business, and ensure that the QOS function of BAS is accurate, improve Consumer's Experience.
Embodiment 2:
The embodiment of the present invention 2 provides a kind of method obtaining line rate information.
Fig. 4 is the flow chart of the method for the acquisition line rate information of the embodiment of the present invention 2.The executive agent of the method is BAS Broadband Access Server BAS, and as shown in Figure 4, the method comprises:
The LCP LCP message that S401, reception access device send.
Particularly, LCP message comprises LCP Echo Reply message or LCP Echo Request message.
S402, judge whether comprise XDSL line rate information in described LCP message.
Particularly, the detailed process of S402 also can comprise: judge whether comprise TAG in the payload of described LCP Echo Reply message or LCP Echo Request message, wherein this TAG carries XDSL line rate information, and XDSL line rate information comprises up XDSL line rate information and descending XDSL line rate information.
S403, when comprising XDSL line rate information in described LCP message, according to described XDSL line rate information, adjustment 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, and wherein said TAG_VALUE carries up XDSL line rate information and descending XDSL line rate information; According to described up XDSL line rate information and descending XDSL line rate information, refresh XDSL line speed record and adjust QOS control.
Particularly, BAS needs XDSL line rate information accurately to do QOS control: namely BAS can control the speed that user obtains, and the speed that such as user buys is up X M, descending Y M, the actual speed rate of circuit is up A M, descending B M, wherein, M represents MBPS, so BAS can control at min (X upstream rate, A) M, downstream rate controls at min (Y, B) M.The downstream rate that such as user buys is 10M, but circuit is actual can only carry 8M, and so BAS can, the flow control of downlink message at 8M, because if BAS still sends the flow of 10M, so have the flow of 2M will be lost by circuit, and business is just abnormal.In addition, if reported an error in speed, the actual speed that can reach 10M of such as circuit, but the line speed of the mistake reported is only 2M, and so the actual speed obtained of user is 2M, and the 10M gap bought with client is too far away, affects Consumer's Experience.
S404, when not comprising XDSL line rate information in described LCP message, by QOS control remain unchanged.Particularly, when BAS finds not comprise XDSL line rate information in LCP message, namely representing that XDSL line speed does not change, therefore controlling without the need to adjusting QOS.
The method of the embodiment of the present invention 2, by judging whether comprise XDSL line rate information in the LCP message that access device sends, determine whether that adjustment QOS controls, XDSL line speed is accurately obtained due in the LCP message that sends from access device, thus can ensure that the QOS function of BAS is accurate, effectively reduce the generation of business abnormal conditions.
Embodiment 3:
The embodiment of the present invention 3 provides the method that another kind reports line rate information.
The embodiment of the present invention 3 considers that access device and BAS generally adopt distributed system process LCP message, namely a large amount of LCP Message processing is very little to performance impact, solve access device when to there is many PPPOE session case under a port simultaneously and be difficult to the problem of the LCP message distinguishing different sessions, access device adopts and all insert rate information in the LCP Echo Request and LCP Echo Reply link maintenance message of all BAS of issuing, and then issues BAS.BAS judges whether the rate information value that in LCP Echo Request or LCP EchoReply link maintenance message, TAG carries changes, if the rate information of XDSL circuit changes, then adjusts QOS and controls, otherwise, keep QOS to control constant.
Fig. 5 is the flow chart reporting the method for line rate information of the embodiment of the present invention 3.The executive agent of the method is access device, and as shown in Figure 5, the method comprises the steps:
S501, detect current XDSL line speed.
S502, in the LCP message sending to BAS, insert current XDSL line rate information.
Particularly, the detailed process of S502 can comprise: in the payload of LCP message sending to BAS, insert the label TAG comprising label value TAG_VALUE, wherein, described TAG_VALUE carries current up XDSL line rate information and current descending XDSL line rate information.
S503, the described LCP message having inserted current XDSL line rate information is sent to BAS.
Shown in the embodiment of the present invention 3, shown in method and embodiment 1, method difference is, whether the access device XDSL line speed that multilevel iudge is not current after detecting current XDSL line speed changes relative to speed record before, but directly the XDSL line speed detected is increased in LCP message, then report BAS, judge whether line speed there occurs change by BAS.In other words, access device all inserts rate information and then issues BAS in the LCP Echo Request and LCP Echo Reply link maintenance message of all BAS of issuing.By technique scheme, BAS can be made to obtain the line speed consistent with actual conditions in time, thus user can be made to obtain the speed with actual coincidence, and effectively avoid or the abnormal situation of minimizing business, Consumer's Experience effect can be promoted.
Embodiment 4:
The embodiment of the present invention 4 provides the another kind of method obtaining line rate information.
Fig. 6 is the flow chart of the method for the another kind acquisition line rate information of the embodiment of the present invention 4.The executive agent of the method is BAS, and as shown in Figure 6, the method comprises the steps:
The LCP message comprising XDSL line rate information that S601, reception access device send.Particularly, this LCP message comprises LCP Echo Reply or LCP Echo Request message.
S602, extract the XDSL line rate information comprised in described LCP message.Particularly, extract the TAG comprised in the payload of LCP message, this TAG carries XDSL line rate information.
S603, judge whether described XDSL line rate information changes.
Particularly, whether the rate information in BAS taking-up message and recent rate information record compare, see and change.
S604, when described XDSL line rate information changes, according to change after XDSL line rate information adjustment QOS control.
Particularly, the detailed process in S604 can comprise: when described XDSL line rate information changes, and refreshes XDSL line speed record according to the XDSL line rate information after change, and adjusts QOS control.
S605, when described XDSL line rate information does not change, by QOS control remain unchanged.
The method that the embodiment of the present invention 4 provides, the XDSL rate information that BAS is carried by the LCP message receiving access device transmission, and compare the XDSL rate information that receives with speed record before to judge whether the speed of XDSL circuit changes, and control according to the rate information adjustment QOS after changing, thus the abnormal situation generation of business can be reduced, ensure that the QOS function of BAS is accurate, improve Consumer's Experience.
Embodiment 5:
The embodiment of the present invention 5 provides a kind of access device.This access device such as 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 present invention 5.As shown in Figure 7, this access device 10 comprises:
Detecting unit 110, may be used for detecting current XDSL line speed;
Processing unit 120, may be used in the LCP message sending to BAS, insert described current XDSL line rate information;
Transmitting element 130, may be used for the described LCP message having inserted current XDSL line rate information to send to BAS.
Alternatively, described processing unit 120, specifically may be used in the payload of the LCP message sending to BAS, insert the label TAG comprising label value TAG_VALUE, wherein, described TAG_VALUE carries current up XDSL line rate information and current descending XDSL line rate information.
Fig. 7 A is the concrete function block diagram of the another kind of access device of the embodiment of the present invention 5.As shown in Figure 7 A, this access device 10 can further include:
Judging unit 140, is connected with described detecting unit 110, for judging whether described current XDSL line speed changes;
Described processing unit 120, is connected with described judging unit 140, also for when described current XDSL line speed changes, inserts described current XDSL line rate information in the LCP message sending to BAS.
The access device of the embodiment of the present invention 5 and the operation principle of each unit comprised thereof, introduce, therefore be not repeated herein in preceding method embodiment.
The access device of the embodiment of the present invention 5 by all inserting XDSL line rate information in the LCP message of all BAS of sending to, thus BAS can be made to obtain the accurate velocity of XDSL circuit in time, solve BAS equipment and cannot obtain XDSL circuit accurate velocity and cause the abnormal problem of business.
Embodiment 6:
The embodiment of the present 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 present invention 6.As shown in Figure 8, this BAS Broadband Access Server 20 comprises:
Receiving element 210, may be used for the LCP message receiving access device transmission;
First judging unit 220, may be used for judging whether comprise XDSL line rate information in described LCP message;
Processing unit 230, may be used for when comprising XDSL line rate information in described LCP message, and according to described XDSL line rate information, adjustment QOS controls.
Particularly, described processing unit comprises acquisition subelement 231 and adjustment subelement 232;
Described acquisition subelement 231, may be used for extracting 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 rate information and descending XDSL line rate information;
Described adjustment subelement 232, may be used for according to described up XDSL line rate information and descending XDSL line rate information, and adjustment QOS controls.
Fig. 8 A is the functional block diagram of the another kind of BAS Broadband Access Server of the embodiment of the present invention 6.As shown in Figure 8 A, this BAS Broadband Access Server 20 can further include:
Second judging unit 240, is connected with described first judging unit 220, for judging whether described XDSL line rate information changes;
Described processing unit 230, is connected with described second judging unit 240, for when described XDSL line rate information changes, controls according to the XDSL line rate information adjustment service quality QOS after change.
The BAS Broadband Access Server of the embodiment of the present invention 6 and the operation principle of each unit comprised thereof, introduce, be not repeated herein in aforesaid embodiment of the method.
The BAS of the embodiment of the present invention 6, XDSL rate information whether is comprised in the LCP message received by judgement, to know whether current line speed changes, and control according to the rate information of the XDSL accurately adjustment QOS in LCP message, thus solution BAS equipment cannot obtain XDSL circuit accurate velocity and cause the abnormal problem of business, ensure that the QOS function of BAS is accurate.
Embodiment 7:
The embodiment of the present invention 7 provides a kind of system obtaining line rate information.
Fig. 9 is a kind of functional block diagram obtaining the system of line rate information of the embodiment of the present invention 7.As shown in Figure 9, this system 100 comprises:
Whether access device 200, change for detecting XDSL line speed; When detecting that XDSL line speed changes, in the LCP message sending to BAS, insert the XDSL line rate information after change; The described LCP message having inserted the XDSL line rate information after change is sent to BAS;
BAS Broadband Access Server 300, for receiving the lcp link control protocol message that access device sends; Judge whether comprise XDSL line rate information in described LCP message; When comprising XDSL line rate information in described LCP message, according to described XDSL line rate information, adjustment QOS controls.
Below citing describes the course of work of the system of the embodiment of the present invention 9 in detail.
In the embodiment of the present invention 7, the XDSL chip support of access device detects the change of XDSL line speed, if access device detects XDSL, line speed changes, then access device is after the LCP Echo Reply message receiving the reply of PPPOE client, or access device is after the LCP Echo Request message receiving the transmission of PPPOE client, XDSL line rate information is inserted in LCP Echo Reply or LCP Echo Request message, and the LCP EchoReply or LCP Echo Request message that insert XDSL line rate information are sent to BAS.BAS refreshes XDSL line speed record after receiving the LCP message of band XDSL line rate information and adjusts QOS control.
A kind of situation, after rate variation, first access device receives the LCP Echo Request message that BAS sends.Signalling exchange flow chart in this case refers to Figure 10, and Figure 10 is a kind of Signalling exchange flow chart of the embodiment of the present 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 by this LCP Echo Request message transmission to Client.
S1003, Client send LCP Echo Reply message to access device.
S1004, detect that XDSL line speed changes due to access device, then access device inserts XDSL line rate information in this LCP Echo Reply message;
Particularly, access device inserts TAG in the payload of LCP Echo Reply message, and TAG carries the XDSL line rate information after change.
The LCP Echo Reply message inserting XDSL line rate information is sent to BAS by S1005, access device.
S1006, BAS are after receiving the LCP Echo Reply message comprising XDSL line rate information, the XDSL line rate information comprised in LCP Echo Reply message is taken out, refreshes XDSL line speed record according to this XDSL line rate information and adjust QOS control.
Another kind of situation, after the change of XDSL line speed, first access device receives the LCP Echo Request message that PPPOE client sends, Signalling exchange flow chart in this case refers to Figure 11, Figure 11 is the another kind of Signalling exchange flow chart of the embodiment of the present invention 9, as shown in figure 11, this flow process comprises the steps:
S1101, Client send LCP Echo Request message to access device.
S1102, detect that XDSL line speed changes due to access device, then access device inserts XDSL line rate information in LCPEcho Request message; Such as, in the payload of LCP Echo Request message, insert the TAG of the XDSL line rate information after carrying change.
The LCP Echo Request message inserting XDSL line rate information is sent to BAS by S1103, access device.
S1104, BAS are after receiving the LCP EchoRequest message of the XDSL line rate information after comprising change, the XDSL line rate information comprised in LCP Echo Request message is taken out, refreshes XDSL line speed record according to the XDSL line rate information after this change and adjust QOS control.
The system of the embodiment of the present invention 7, can obtain XDSL speed accurately, ensure that QOS function is accurate.
Embodiment 8:
The embodiment of the present invention 8 provides the another kind of system obtaining line rate information.
Figure 12 is the functional block diagram of the system of the another kind acquisition line rate information of the embodiment of the present invention 8.As shown in figure 12, this system 400 comprises:
Access device 500, for detecting current XDSL line speed; Current XDSL line rate information is inserted in the LCP message sending to BAS BAS Broadband Access Server; The described LCP message having inserted current XDSL line rate information is sent to BAS;
BAS Broadband Access Server 600, for receiving the LCP message comprising XDSL line rate information that access device sends; Extract the XDSL line rate information comprised in described LCP message; Judge whether described XDSL line rate information changes; When described XDSL line rate information changes, control according to the XDSL line rate information adjustment QOS after change.
Below describe the course of work of the system of the embodiment of the present invention 10 in detail.
In the embodiment of the present invention 8, access device all inserts rate information in the LCP Echo Request and LCP Echo Reply link maintenance message of all BAS of issuing, and then issues BAS.
Figure 13 is a kind of Signalling exchange flow chart of the embodiment of the present 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 by this LCP Echo Request message transmission to Client.
S1303, Client reply LCP Echo Reply message to access device.
S1304, access device insert XDSL rate information in the LCP Echo Reply message received.
The LCP Echo Reply message inserting XDSL rate information is sent to BAS by S1305, access device.
S1306, BAS receive the LCP Echo Reply message comprising XDSL rate information that access device sends, and judge whether the XDSL rate information that the TAG of LCP Echo Reply message carries changes, when nothing has changed, QOS is kept to control constant, when a change, control according to the XDSL rate information adjustment QOS after change.
S1307, Client send LCP Echo Request message to access device.
S1308, access device insert XDSL rate information in the LCP Echo Request message received;
The LCP Echo Request message inserting XDSL rate information is sent to BAS by S1309, access device.
S1310, BAS receive the LCP EchoRequest message comprising XDSL rate information that access device sends, and judge whether the XDSL rate information that the TAG of LCP Echo Request message carries changes, when nothing has changed, QOS is kept to control constant, when a change, control according to the XDSL rate information adjustment QOS after change.
S1311, BAS send LCP Echo Reply message to access device.
S1312, access device by this LCP Echo Reply message transmission to Client.
The system of the embodiment of the present invention 8, can obtain XDSL speed accurately, ensure that QOS function is accurate, decreases the generation of business abnormal conditions.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above embodiment only in order to the technical scheme of the embodiment of the present invention to be described, is not intended to limit; Although be described in detail the embodiment of the present invention with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of each embodiment technical scheme of the embodiment of the present invention.