CN101778464A - Power regulating method and device for communication - Google Patents

Power regulating method and device for communication Download PDF

Info

Publication number
CN101778464A
CN101778464A CN200910002397A CN200910002397A CN101778464A CN 101778464 A CN101778464 A CN 101778464A CN 200910002397 A CN200910002397 A CN 200910002397A CN 200910002397 A CN200910002397 A CN 200910002397A CN 101778464 A CN101778464 A CN 101778464A
Authority
CN
China
Prior art keywords
power
grouping
error rate
link
linked object
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.)
Pending
Application number
CN200910002397A
Other languages
Chinese (zh)
Inventor
吕易升
颜志杰
黄俊杰
洪进杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN200910002397A priority Critical patent/CN101778464A/en
Publication of CN101778464A publication Critical patent/CN101778464A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • Y02B60/50

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a power regulating method and device for communication. The method and the device are used for detecting the communication status between a network port and a linked object and regulating the data transfer power and/or data receiving power of the network port according to the detected communication status to achieve the aim of giving consideration to both correctness of data transfer and saving of data transfer power.

Description

Power of communications control method and device
Technical field
The invention relates to a kind of power regulating method and device, be meant a kind of power regulating method that is used to communicate by letter and device especially.
Background technology
Under network environment, need between a computer and the linked object to carry out transfer of data by wired or wireless mode.When by wire transmission, the power-saving technology of existing network link comes the web-transporting device of this computer is carried out energy adjusting configuration according to the build-out of link, even also the power consumption of cable transmission equipment more in short-term is lower than the power consumption of cable when longer, reach the purpose of energy-conservation and environmental protection by this.But,, often cause the data transmission fault rate higher if do not consider the condition of linked object because the different linking object can influence the power consumption allotment of this web-transporting device.
Summary of the invention
Therefore, one of the object of the invention is to solve the problem of prior art.
Another object of the present invention is to provide a kind of taking into account to pass the saving of receiving power and guarantee to pass power of communications control method and the device of receiving quality.
One embodiment of power of communications adjusting device of the present invention presents with an integrated circuit form that is located in the network switch, so also can be located on network card or other communicator.This Power Conditioning Unit can utilize hardware (for example combination of logical circuit) to realize; Also can utilize the collocation (for example arithmetic element and the combination that is loaded with the storage element of firmware) of hardware and firmware to realize; Also can utilize the collocation (computer system that for example has communication function) of hardware and software to realize.
Aforementioned exchanger comprises: a plurality of ports; One in order to receive the fractional analysis device of grouping and analysis grouping information from port; One reception is from the error detector of the link reliability of the grouping information of this fractional analysis device; Reach one in order to port is adjusted the energy-saving controller of power.
The method that this detector is carried out comprises: preset and store error rate critical value R L, R H, receive grouping information and mistake in computation rate, and then carry out a following wherein judgement: judge that whether this error rate is less than R from this port L, judge that whether this error rate is greater than R HIf error rate is less than R L, then produce the adjustment instruction that downgrades single order power; If error rate is greater than R H, then produce the adjustment instruction of heightening single order power and be sent to energy-saving controller; If error rate is non-less than R LAlso non-greater than R H, then do not produce and adjust instruction.In addition, when detecting, detector learns that power equals a default power low spot CP MIN, then notifying this energy-saving controller constant power is CP MINNo longer downgrade; Learn power when detection and equal the default high point of a power CP MAX, power is replied is default at the beginning CP InitialWhen detection learns that error rate is at two critical value R L, R HBetween concussion, and the concussion number of times reaches default value in the scheduled time, then closes the power-saving mechanism that downgrades power, this energy-saving controller is not produced the adjustment instruction that downgrades single order power.
Energy-saving controller is adjusted instruction according to this, and this port adjustment grouping is transmitted or received power.
This detector is carrying out initialization operations such as DHCP or BOOTP in the network linking stage when detecting network, makes this energy-saving controller that the power of this port is adjusted into peak in advance; After treating that initialization operation is finished, adjust back a CP who presets of energy saver mode again InitialValue.When initialization is finished, if k internal chaining second success and link the link failure appears in successful back m in second number of times and exceed tolerant value n, generation is heightened the adjustment of single order power and is instructed.
The grouping that detector can send out at this port certainly, and the grouping that receives difference mistake in computation rate, and the adjustment instruction of the delivering power of this port of generation adjustment and received power respectively in view of the above, also can be only at the grouping of grouping that sends out or reception, mistake in computation rates wherein and adjust power, wherein another will with adjustment get final product.
The method of detector mistake in computation rate, the definable error rate equals the ratio of packet count Mcnt and wrong number Ecnt, the Mcnt value increases progressively with obtaining grouping, the Ecnt value is to increase progressively when the grouping information of obtaining shows packet transport error, and when this detector reaches default Mmax value to this Mcnt value counting, make Mcnt and Ecnt together divided by a numerical value, or Mcnt and Ecnt are made zero.Judge the characteristic that the grouping of obtaining has request and responds when detector, then packet count adds one of meter and writes down the grouping information of this grouping, and this grouping information content comprises address and the port sequence number that hold in destination and source, and preserves sequence number.Can find out the transmitted in packets direction by this grouping information.
When detector judges that existing grouping information is noted down, and obtain a grouping again, the grouping of then newly obtaining and this recorded grouping information comparison, divide into groups with TCP/IP, the content of comparison comprises: whether destination meets with the address and the port sequence number of source end, and newly obtain relation between the preservation sequence number of response packet sequence number or grouping serial number and this recorded grouping-when this direction of transfer of newly obtaining grouping identical with this recorded grouping, then compare the preservation the sequence number whether grouping serial number of newly obtaining grouping equals recorded grouping, if equal then to have represented the packet retransmissions present phenomenon; When this direction of transfer of newly obtaining grouping is opposite with this recorded grouping, then comparison is newly obtained the response packet sequence number whether greater than the preservation sequence number of recorded grouping, and representative has the packet retransmissions present phenomenon if be not more than then.If have the then wrong number of phenomenon of packet retransmissions present to add one of meter, and delete recorded grouping information.
With ICMP grouping, detector judges when this grouping of obtaining has the characteristic of request and response that then judge at the grouping that has spread out of whether response is arranged in the given time, the then wrong number of response adds one of meter if exceed the time limit not.
Whether only to have the grouping of the numbering that debug uses, when judging the port receiving ability, the method for detector mistake in computation rate is: utilize this numbering to judge and divide into groups to damage, be used as error rate with the damage rate.
By following embodiment of the present invention, when can more understand the present invention be how to implement with and the effect reached.
Description of drawings
Fig. 1 is the calcspar of Power Conditioning Unit embodiment of the present invention;
Fig. 2 is the flow chart in the link stage of power regulating method embodiment of the present invention;
Fig. 3 is the flow chart of the adjusting port power of power regulating method embodiment of the present invention;
Fig. 4 is among Fig. 3, and relevant calculation transmits the flow chart of (Tx) error rate;
Fig. 5 is the schematic diagram that carries out transmitted in packets between an interchanger and the linked object B;
Fig. 6 is among Fig. 3, and relevant calculation receives the flow chart of (Rx) error rate; And
Fig. 7 is the schematic diagram that carries out transmitted in packets between an interchanger and the linked object B.
The primary clustering symbol description
1 interchanger, 3 energy-saving controllers
10a port A linked object
10b port B linked object
11 fractional analysis device S 10~S 19Step
12 groupings transmit engine S 21~S 29Step
100 Power Conditioning Unit S 251, S 261Step
2 detector S 31~~S 43Step
Embodiment
See also Fig. 1, it is the embodiment schematic diagram of power of communications adjusting device 100 of the present invention, is to present with an integrated circuit form that is located at Ethernet interchanger (network switch) 1.This interchanger 1 is connected between a plurality of linked objects.The described interchanger 1 of present embodiment comprises a fractional analysis device (packet parser) 11, this Power Conditioning Unit 100, a grouping transmission engine (packet forwardingengine) 12, and port (port) 10a, the 10b that are connected with linked object A, B respectively.Interchanger 1 is delivered to port one 0b by port one 0a with the grouping of linked object B, is sent to linked object A then, and the grouping of linked object A is received by port one 0b, is sent to linked object B again after being sent to port one 0a.
Power Conditioning Unit 100 is mainly utilized network international standards tissue (InternationalStandards Organization in the present embodiment, ISO) have in the model that packet error detects and the layer of the agreement of control characteristic, for example data link layer (data link layer) or transport layer (transport layer) wait and realize data power control method of the present invention, and further notify physical layer (physical layer) that the power that is consumed is adjusted, for example adjust operating current, voltage of arbitrary circuit that physical layer comprises etc.This Power Conditioning Unit 100 comprises error detector (the reliable link error detection of a link reliability, hereinafter to be referred as detector) 2, and the responsible transmission of physical layer in the procotol and the energy-saving controller 3 of received power degree (power level) adjusted.Please note, in present embodiment, Power Conditioning Unit 100 can utilize hardware (for example combination of logical circuit) to realize, also can utilize the collocation (for example arithmetic element and the combination that is loaded with the storage element of firmware) of hardware and firmware to realize, the present technique field has knows that usually the knowledgeable can select suitable mode to implement Power Conditioning Unit 100 according to the exposure of this specification.In another embodiment of the present invention, the realization of power of communications adjusting device of the present invention is that a computer loads and carry out a program by its operating system, and then the biography of controlling a communicator that couples with this computer is received power.
The fractional analysis device 11 of interchanger 1 is to each field in each fractional analysis gauge outfit of coming in, parameters such as label (flag), purpose/address, source, protocol type for example, and these parameters are sent to the detector 2 of Power Conditioning Unit 100.It is to be responsible for the decision of packet path and the transmission work of normal packets that grouping transmits 12 in engine.Note that the present invention is conceived to this Power Conditioning Unit 100, transmit the category that other necessary circuitry (not being shown in Fig. 1) that engine 12 and interchanger 1 comprised belongs to known techniques, will in present embodiment, not give unnecessary details as for fractional analysis device 11, grouping.
Detector 2 be used for long-term detect and linked object between pass and receive quality, be primarily aimed in the field that fractional analysis device 11 imports into whether wrong generation of each parameter analysis, and the condition of the adjustment power that judges whether to reach default; If judging needs to adjust power, then produce an adjustment instruction and be sent to energy-saving controller 3.Energy-saving controller 3 is adjusted instruction according to this, adjusts grouping delivering power and/or the grouping received power of port one 0a and/or 10b.
Present embodiment detector 2 judges whether wrong generation (for example packet drop), whether reach the condition of adjusting power, and energy-saving controller 3 carries out the correlation technique that power is adjusted, and cooperates flow chart to be specified in hereinafter.Below be with interchanger 1 by carrying out transfer of data between port one 0a and the linked object B, and reception and the delivering power of adjusting port one 0a illustrate.
Cooperate and consult Fig. 2, energy saver mode startup when Power Conditioning Unit 100 of the present invention, link failure for avoiding because underpower causes, or repeatedly link the successfully situation of (link up), link failure (link down) concussion, Power Conditioning Unit 100 first execution in step S 10~step S 19Power regulating method, make to adjust port one 0a power link successfully and keep stablizing.
Step S 10-when detecting, detector 2 carrying out DHCP (dynamic host configuration protocol between the linked object, be called for short DHCP) or guiding agreement (bootstrapprotocol, be called for short BOOTP) etc. during initialization operation (for example allowing computer obtain address, net mask etc.), for avoiding to set up link or cause link unstable because of the power adjustment because of port one 0a underpower, this step is adjusted into maximum with port one 0a power in advance, and for example operating current and/or the voltage with port one 0a is adjusted into maximum; After treating that initialization operation is finished, adjust back a default value CP again InitialThis CP InitialValue be in the present embodiment according to the characteristic of side circuit and physical layer information (for example power bracket that physical layer can operate as normal) determine, be that the present technique field has and knows that usually the knowledgeable can implement according to this according to the exposure of this specification.What need special instruction is if need not carry out initialization operation, also can be preset as CP at the power of port one 0a InitialPrerequisite under, skip over this step S 10
Step S11-detector 2 is set link count number of times LinkCnt=0.
Step S 12Are one detector, 2 detection port 10a link condition in k second (for example 60 seconds) internal chaining success? if then enter step S 13, if not, represent cable to connect (if mean need not carry out the situation of initialization operation time) as yet usually, then get back to step S 11In addition, carry out at needs under the situation of initialization operation as the aforementioned, if detector 2 detection port 10a link condition in k internal chaining second success, then may be default power CP InitialToo little, so should preset power CP InitialHeighten single order (not being shown in Fig. 2), whether detection port 10a is successful in k internal chaining second again again, if then enter step S 13, then heighten this default power CP if not again InitialSingle order, the rest may be inferred up to this default power CP InitialHeighten to CP MAXTill.
Step S 13Do does-detector 2 detect, and the link failure occur in m second (for example 30 seconds)? if, then represent the link condition potentially unstable, enter the step S that the link count number of times increases 14And following flow process; If not, the expression link condition is stable, carries out step S 18And S 19
Step S 14-detector 2 makes the LinkCnt value add 1.
Step S 15Does-detector 2 judge that the LinkCnt value is greater than tolerant value n? if greater than tolerant value n, then represent link condition unstable really, enter step S 16If not, then may link failure only is accidental situation, also needs to observe, and enters step S 17
Step S 16-energy-saving controller 3 makes the power of port one 0a improve single order, and just CP=CP+1 returns step S 11Whether observe power again enough.
Step S 17-energy-saving controller 3 is kept power CP at that time, then gets back to step S 12, whether lasting observation still links successfully, links failure repeatedly.
Step S 18-Ruo abovementioned steps S 13Detect to occur in second linking and fail, judge that then link condition is stable, set LinkCnt=0 at m.
Step S 19-enter normal operating conditions, the reliable link stream (reliable connectionflow) of foundation, or claim data flow (data flow).
See also Fig. 1 and Fig. 3, when reliable data flow is set up, promptly enter normal operating conditions, whether Power Conditioning Unit 100 is enough to receive smoothly grouping except the grouping received power (Rx power) that must confirm the port one 0a of interchanger 1, whether the delivering power (Tx power) that also needs to confirm port one 0a is enough to allow linked object receive grouping smoothly, to carry out the adjustment of power.2 pairs of arbitrary data flow of having set up of the detector of present embodiment grab sample constantly detect, but as long as calculation speed allows, other embodiment of the present invention also can detect at whole groupings of data stream.Following elder generation transmits (Tx) ability with monitoring and illustrates.
Step S 21-energy-saving controller 3 determines an initial power CP InitialThe described initial power CP of this step Initial, the power CP value of utilizing Fig. 2 flow process calculation back to determine exactly.
Step S 22-detector 2 begins to detect data flow, simultaneously mistake in computation rate (error rate).The account form of the relevant error rate of the present invention mainly ought be to detect to have request (request) and the reliable link grouping (reliable connection packet) of responding (response) characteristic, the for example grouping of transmission control/network communication protocol (calling TCP/IP in the following text), the grouping of address resolution communication protocol (calling ARP in the following text), or the grouping of the Internet group supervisory communications agreement (calling ICMP in the following text), confirm after the grouping information, promptly further judge whether linked object B has received the grouping that port one 0a spreads out of, if find that packet drop then increases errors number, improve error rate.The method of detailed calculated error rate is after cooperation Fig. 4 flow process is specified in.
Step S 23-when learning error rate, whether detector 2 misjudgment rates are less than R LR of the present invention LBe a default low critical value (threshold), for example 3/100,000, if error rate is less than R L, the situation that representative transmits grouping is very stable, can enter step S 24If error rate is non-less than R L, then need enter (the step S26~S29), go the misjudgment rate whether to be higher than high critical value, just R again of right-hand part flow process among Fig. 3 H, for example 10/100,000.
Step S 24-energy-saving controller 3 judges earlier whether power CP equals a default CP MINIf then enter step S 241If not, then carry out step S 25
Step S 241-energy-saving controller 3 fixation of C P=CP MIN, that is to say when delivering power is low to reach default low spot, delivering power is fixed up, adjust no longer downwards, and get back to step S 22Continue to detect data flow.The power CP of present embodiment MINDefault value be the minimum power decision that can support with physical layer, but its deciding means does not exceed with present embodiment.
Step S 25-because step S formerly 23Middle misjudgment rate is less than R L, representative grouping transmission status is very stable, and at step S 24Middle judgement power does not reach minimum value, and detector 2 can produce an adjustment instruction and be sent to energy-saving controller 3, and energy-saving controller 3 is instructed to port 10a adjustment delivering power reduction single order (level), CP=CP-1 according to this adjustment.Present embodiment is described to downgrade or heightens power one " rank ", is meant the sublevel that physical layer is default.And get back to step S22 and continue to detect data flow.
As step S 23The misjudgment rate is non-less than R L, error rate may be equal to or greater than R L, then need enter right-hand part flow process among Fig. 3:
Step S 26Whether-misjudgment rate is greater than R HR of the present invention HBe a default high critical value, if error rate is higher than R H, representative transmits the situation instability of grouping, need enter step S 27If the non-R that is higher than of error rate H, then represent error rate between permissible R LWith R HBetween (contain R LWith R H), then carry out step S 261
Step S 261-because error rate values so far can be accepted, therefore the CP value of fixing this moment returns step S 22Continue to detect data flow.
Step S 27-be higher than R in error rate HSituation under, this step detector 2 judges whether power CP equals a default CP again MAXIf then enter step S 28If not, then carry out step S 29
Step S 28-because power CP has reached the high point of power CP MAX, error rate is still greater than R H, the expression error rate is not because delivering power is not enough to be produced, so energy-saving controller 3 is established back CP with CP Initial, and get back to step S 22Continue to detect data flow.The power CP of present embodiment MAXDefault value is to decide by the characteristic of test side circuit or according to the specification or the rule of thumb of side circuit, transmits on the required Power Theory of grouping can not be higher than CP MAX, but CP MAXDeciding means does not exceed with present embodiment.
Step S 29-present instability owing to transmit the situation of grouping, might be because the transmitted power deficiency, therefore detector 2 produces an adjustment instruction and is sent to energy-saving controller 3, makes energy-saving controller 3 adjust delivering power according to this adjustment instruction to port 10a and heightens single order, CP=CP+1.Then, get back to step S22 again and continue to detect data flow.
The present invention is by setting R LWith R HBe worth the unlatching of left side in control chart 3 flow processs respectively and right-hand part or close, the left side flow process is carried out the power adjustment to the situation that can turn down power again, the right-hand part flow process is then carried out the power adjustment to the situation that should heighten power again, realizes energy-conservation (powersaving auto-fallback) and the mechanism of promoting (aggressive) of downgrading automatically.Though the foregoing description downgrades flow process automatically and illustrates to be introduced into Fig. 3 left side, not as limit, also can be introduced into the flow process of right-hand part shown in the dotted line of Fig. 3.Yet under the actual operation situation, the CP value might take place at two critical value R L, R HBetween the concussion, in the present embodiment, can count the concussion number of times (that is the CP value is successively decreased and becomes the number of transitions that increases progressively by successively decreasing by increasing progressively to become) of CP value again, when concussion number of times in a scheduled time reaches a default value, Power Conditioning Unit 100 can be closed the power-saving mechanism of left side, avoids downgrading the CP value reforming phenomena that power causes.
Return the calculating section of error rate among Fig. 3, see also Fig. 1, Fig. 4, Fig. 5 and following explanation.Fig. 4 is the flow chart of expression trace port 10a at TCP/IP grouping transmission (Tx) ability, by analyzing the grouping (shown in Fig. 5 stain) that is spread out of by port one 0a, to understand transmission (Tx) ability of port one 0a.Fig. 5 be port one 0a with linked object B and port one 0b (being connected linked object A) between the schematic diagram of transmission grouping.
Step S 31-entering under the situation of normal operating conditions, detector 2 sets at the beginning that packet count Mcnt value is 0, to count the Ecnt value also be 0 to mistake, and picks up counting.
Step S 32-obtain a grouping, this grouping may be the grouping that port one 0a will send linked object B to, also may be that port one 0a receives linked object B passback and will be submitted to the grouping of port one 0b (linked object A).Do the parameter of detector 2 from grouping field judge that the grouping of obtaining has request and the characteristic that responds? if, then belong to present embodiment grouping to be processed, enter step S 33If not, then ignore this grouping, again from step S 31Beginning.
Step S 33-judge whether that existing grouping information is noted down? if port one 0a is sent out a grouping (seeing also Fig. 5), the buffer of interchanger 1 (figure does not show) can write down this grouping information; If port one 0a once received a grouping (seeing also Fig. 7), the buffer of interchanger 1 also can write down this grouping information.Because Fig. 4 illustrates with the method flow that transmits (Tx) ability between observing port 10a and the linked object B, is to judge whether any record of sending out to the grouping of linked object B is arranged in the buffer in this step therefore.If there is not any grouping information to be noted down, then enter flow process (the step S of the right one side of something-record grouping information of flow process 34~S 37) get back to step S then 32If existing grouping information is noted down, then enter a flow process left side half of-judge whether to transmit wrong flow process (step S 38~S 42).
The flow process of record grouping information
Step S 34-detector 2 increases progressively packet count, Mcnt=Mcnt+1 just, and timing is made zero, enter step S35 afterwards.
Step S 35-detector 2 is then judged the packet count Mmax whether Mcnt equals to preset, if then enter step S 36If not, then jump to step S 37
Step S 36-make Mcnt and Ecnt with divided by a numerical value, for example remove 2 together.Carry out this step, is in order to calculate the ratio of Ecnt/Mcnt continuously, and way is not to exceed with removing a numerical value, can make directly also that the Mcnt value is 0, the Ecnt value also is 0.Then enter step S 37
Step S 37The grouping information of this grouping of-record returns step S after record is finished 32The grouping information that this step is noted down, content mainly comprise address and the port sequence number that hold in grouping destination and source, and preserve sequence number.Transmit (Tx) ability with monitoring port 10a, this grouping information comprises that { this information representative grouping direction of transfer is for to be sent to linked object B by linked object A for [IP-A, PortNum-A, IP-B, PortNum-B], KSN-A}.When record is finished, detector 2 is at step S 33When grouping is judged at the next one, then can be judged as " existing grouping information is noted down ".
Judge the flow process whether grouping loses
Step S 38-as aforementioned step S 33Judge that existing grouping information is noted down, this step is at the information of the grouping of newly obtaining, judge the address of destination wherein and source end and port sequence number whether with recorded information conforms, whether this grouping of promptly confirming of letter speech is the grouping that transmits between port one 0a and the linked object B.If then carry out next step S 39If not, represent that then this grouping is the different grouping that link transmitted, need not comprehend, get back to step S 32
Step S 39-detector 2 is then judged the direction of transfer of this grouping, if identical with the grouping direction of transfer of record, just is sent to linked object B by linked object A, and then representing this grouping is the grouping that port one 0a will spread out of linked object B, then carries out step S 41If the grouping direction of transfer is opposite, represent that this grouping is the grouping that linked object B passback and port one 0a will be delivered to linked object A, then carries out step S 40
Step S 40-at linked object B passback response packet sequence number B_ack, to compare with the preservation sequence number KSN-A of recorded grouping, this preservations sequence number promptly passes to port one 0a by port one 0b and will send out grouping serial number A_seq to the grouping of linked object B morning.
For instance, buffer is recorded (KSN-A, A_ack)=(100,20) grouping information, now obtain a grouping direction is sent to linked object A for linked object B grouping, and grouping serial number and acknowledgment number are that (B_seq B_ack), judges promptly that in this step whether the B_ack of this passback grouping is greater than the previous KSN A that notes down grouping.If response sequence number B ack is greater than preserving sequence number KSN-A, and for example (B_seq, B_ack)=(20,101), the representative grouping is sent to smoothly, and linked object B requires port one 0a to transmit next grouping in the passback grouping, it is normal also to represent port one 0a to transmit (Tx) ability, enters step S 43Remove recorded grouping information, then return step S 32
If response sequence number B_ack is smaller or equal to preserving sequence number KSN-A, and for example (B_seq, B_ack)=(20,99), represent linked object B not receive the sequence number that port one 0a spreads out of is the grouping of KSN-A, linked object B requires retransmission packet, so enters step S 43, detector 2 increases progressively wrong number, and just Ecnt=Ecnt+1 enters step S then 43
Step S 41-Ruo is at step S 39In judge that grouping is identical with recorded grouping direction of transfer, judge then whether this grouping serial number A_seq that will spread out of to the grouping of linked object B equals recorded KSN-A.If the grouping serial number A_seq of this grouping equates with recorded KSN-A, then represent this grouping to attach most importance to and send, enter step S 42Make Ecnt=Ecnt+1; If not, then just another will send the grouping of linked object B in this grouping, need not comprehend.
Abovementioned steps S 34With step S 42All influence the described error rate Ecnt/Mcnt value of Fig. 3, and supply the step S of flow process shown in Figure 3 22Calculation is afterwards used.
Present embodiment is that to stipulate with Ecnt/Mcnt be that error rate illustrates, and this way need be calculated the ratio of Ecnt/Mcnt continuously.Yet the present invention is as limit, and the means that also can not adopt step S36 allow the sustainable calculating of Ecnt/Mcnt, but stipulate the critical value of Ecnt and make critical value with cumulative amount change-for example aforementioned R LBe set at 3/100,000, expression Mcnt Ecnt number in 100,000 reaches 3, and error rate promptly reaches critical value, and as 100,000<Mcnt 200,000, then the Ecnt number need reach 6, and error rate wealth reaches critical value; The critical value of perhaps utilizing the mistake in computation number of times and setting errors number is judged the grouping transmission status, and then empties Ecnt whenever Mcnt arrives Mmax, and Mcnt and Ecnt are made zero.
The transmission of aforementioned monitoring port 10a (Tx) ability is based on the ability prerequisite out of question that hypothesis receives (Rx), that is it is out of question in fact may to transmit (Tx) power setting, but the power setting that receives (Rx) has problem, so that thinks that transmission (Tx) ability has problem and adjusts transmission (Tx) power by mistake.Therefore,, then when regulating transmission (Tx) power of port 10a, can regulate the power of reception (Rx) simultaneously, perhaps also can monitor respectively and regulate for the power setting of avoiding receiving (Rx) has problem.
See also Fig. 1, Fig. 6 and Fig. 7, the reception of monitoring port 10a (Rx) power, also roughly the same with Fig. 4 flow process, but the grouping difference of record, at step S 37, in, be with grouping information content record [IP-B, PortNum-B, IP-A, PortNum-A], KSN-B} illustrates, this information representative grouping direction of transfer is for to be sent to linked object A by linked object B; And at step S 40Be comparison A_ack>KSN-B, at step S 41Be comparison B seq=KSN-B.
Just observe the Rx situation, the grouping of obtaining not necessarily need have the characteristic of request and response, also can only have the numbering that debug uses and get final product, for example CRC (Cyclic Redundancy Check) yard.Under this situation, when judging the Rx ability, can adopt with aforementioned similar methods and judge separately, and detect institute and receives to divide into groups whether to have the too high situation of the damage rate (crc error rate just) of grouping.
Whether the present invention can have request and its error rate of protocol detection of response characteristic-with ICMP, can utilize implementing procedure PING to send the ICMP grouping at any, and have response or overtime not to have response to come the mistake in computation rate by test I CMP grouping; With ARP, also be whether to have ARP grouping response to come the mistake in computation rate by test.The error rate of being tried to achieve is got back to power adjustment flow process shown in Figure 3 and is performed calculations.
Conclude above-mentionedly, Power Conditioning Unit 100 of the present invention and power regulating method can guarantee to pass received under the prerequisite of quality, downgrade power as far as possible and reach province can purpose, can avoid causing the situation of data transmission fault to take place because of reducing power.
The above person of thought, it only is preferred embodiment of the present invention, when not limiting scope of the invention process with this, promptly the simple equivalent of being done according to the present patent application claim and invention description content generally changes and modifies, and all still belongs in the scope that patent of the present invention contains.

Claims (10)

1. power of communications control method comprises:
One default power to one communications component is provided;
Utilize this default power to set up linking between this communications component and a linked object;
Utilize a link power to carry out communicating by letter between this communications component and this linked object;
Calculate the error rate when communicating between this communications component and this linked object;
Relatively this error rate and a critical value, and produce a comparative result; And
Determine whether adjusting this link power according to this comparative result;
Wherein this link power is between maximum link power and a min-link power, and should link power before carrying out this set-up procedure more than or equal to this default power.
2. the method for claim 1, wherein utilize this default power to set up this communications component and comprise with the step that links between this linked object:
Detect between this communications component and this linked object and whether link success;
If it is unsuccessful to detect link, then heighten this default power to set up linking between this communications component and this linked object; And
That is utilized when linking successfully between this communications component and this linked object should link power as this by default power.
3. the method for claim 1, wherein relatively the step of this error rate and this critical value comprises:
Judge that whether this error rate is less than a critical value R L, and produce one first judged result; And
Determine whether downgrading this link power according to this first judged result.
4. method as claimed in claim 3, wherein relatively the step of this error rate and this critical value comprises:
Judge that whether this error rate is greater than a critical value R H, and produce one second judged result; And
Tie fixed this link power of whether heightening according to this second judged result;
This critical value R wherein HGreater than this critical value R L
5. the method for claim 1, the step of wherein calculating this error rate comprises:
When communicating between this communications component and this linked object, detect the number meet a pre-conditioned unit data;
Information according to this unit data determines whether increasing progressively a wrong number; And
Number and this mistake number according to this unit data decide this error rate.
6. method as claimed in claim 5, wherein whether this pre-conditioned this unit data that comprises has request and the characteristic that responds.
7. method as claimed in claim 5, wherein this information comprises the sequence number of this unit data.
8. the method for claim 1, wherein this communications component is an Ethernet port, this unit data is a grouping.
9. a power of communications adjusting device is connected with a port; This device comprises:
Error rate critical value R is preset and stored to the error detector of one link reliability L, R H, receive grouping information and mistake in computation rate, and then carry out a following wherein judgement: judge that whether this error rate is less than R from this port L, judge that whether this error rate is greater than R HIf error rate is less than R L, then produce the adjustment instruction that downgrades single order power; If error rate is greater than R H, then produce the adjustment instruction of heightening single order power and be sent to an energy-saving controller; If error rate is non-less than R LAlso non-greater than R H, then do not produce and adjust instruction; And
This energy-saving controller is adjusted instruction according to this, and this port adjustment grouping is transmitted or received power.
10. power of communications adjusting device as claimed in claim 9, wherein, this detector definition error rate equals the ratio of packet count Mcnt and wrong number Ecnt, and the Mcnt value increases progressively with obtaining grouping, and Ecnt increases progressively when the worthwhile grouping information of obtaining shows packet transport error.
CN200910002397A 2009-01-12 2009-01-12 Power regulating method and device for communication Pending CN101778464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910002397A CN101778464A (en) 2009-01-12 2009-01-12 Power regulating method and device for communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910002397A CN101778464A (en) 2009-01-12 2009-01-12 Power regulating method and device for communication

Publications (1)

Publication Number Publication Date
CN101778464A true CN101778464A (en) 2010-07-14

Family

ID=42514733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910002397A Pending CN101778464A (en) 2009-01-12 2009-01-12 Power regulating method and device for communication

Country Status (1)

Country Link
CN (1) CN101778464A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108780336A (en) * 2016-03-25 2018-11-09 惠普发展公司,有限责任合伙企业 The data transmission connected with power via data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108780336A (en) * 2016-03-25 2018-11-09 惠普发展公司,有限责任合伙企业 The data transmission connected with power via data
CN108780336B (en) * 2016-03-25 2022-04-08 惠普发展公司,有限责任合伙企业 Data transmission via data and power connections

Similar Documents

Publication Publication Date Title
CN101385288B (en) Method for managing the distribution of control protocol information in a network node and network node
CN102833112B (en) Communication management machine having looped network function
CN106814834A (en) A kind of server heat dissipation control method and system
CN109768907A (en) A kind of CAN bus baud rate self-adapting setting method
WO2018076649A1 (en) Control method and control device for wireless network module
CN101341450A (en) Method, communication network, and control unit for the cyclical transmission of data
US9876727B2 (en) Physical-layer signaling of flow control updates
CN106788894A (en) Segmentation individual transmission method of calibration
TWI449387B (en) Method and device for adjusting communicating power
CN105338707B (en) Method for controlling street lamps, apparatus and system
CN115037700B (en) Complex network data packet transmission method, system, terminal and storage medium
CN103095703A (en) Method and equipment and system for achieving data interaction between network and serial port
CN109428728A (en) Autosensing method and apparatus
CN103501288B (en) A kind of method that two-layer switching equipment is realized batch data upgrading
CN101562500A (en) Data transmission request method, data transmission method and data transmission device
CN104678922B (en) Time control method and system based on Internet of Things
CN106998299A (en) The recognition methods of the network equipment, apparatus and system in data center network
CN101778464A (en) Power regulating method and device for communication
CN102811451B (en) Method and device for controlling connection of control and provisioning of wireless access points (Capwap) tunnel
CN112887416B (en) Frequency adjustment method and device for sending keep-alive packets
US11470509B2 (en) Ad hoc communication protocol method and apparatus
CN107332793A (en) A kind of message forwarding method, relevant device and system
CN104950880B (en) Industrial control equipment debugging system and method
CN107257265A (en) Real-time transmission data stream forward error correction, equipment and storage medium
CN106411616B (en) A kind of device and method by 1553B bus management ethernet terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100714