CN101778464A - Communication power adjustment method and device - Google Patents

Communication power adjustment method and device 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
error rate
packet
link
port
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

本发明提供一种通信功率调节方法与装置,用来检测一网络端口与一链接对象间的通信状态,并依据所检测到的通信状态来调节该网络端口的数据传送功率及/或数据接收功率,藉以达到兼顾数据传收的正确性与数据传收的功率节省的目的。

Figure 200910002397

The present invention provides a communication power adjustment method and device, which are used to detect the communication status between a network port and a link object, and adjust the data transmission power and/or data reception power of the network port according to the detected communication status, so as to achieve the purpose of taking into account the accuracy of data transmission and reception and the power saving of data transmission and reception.

Figure 200910002397

Description

通信功率调节方法及装置 Communication power adjustment method and device

技术领域technical field

本发明是关于一种功率调节方法及装置,特别是指一种用于通信的功率调节方法及装置。The present invention relates to a power regulation method and device, in particular to a power regulation method and device for communication.

背景技术Background technique

在网络环境下,计算机与一链接对象之间需通过有线或无线方式进行数据传输。当通过有线传输时,现有网络链接的节能技术根据链接的缆线长度来对该计算机的网络传输设备进行能源调节配置,亦即使缆线较短时的传输设备的功率消耗低于缆线较长时的功率消耗,藉此达到节能及环保的目的。但由于不同链接对象会影响该网络传输设备的功率消耗调配,若未考虑链接对象的条件,往往导致数据传输错误率偏高。In a network environment, data transmission between a computer and a link object needs to be carried out in a wired or wireless manner. When using wired transmission, the energy-saving technology of the existing network link performs energy regulation and configuration on the network transmission equipment of the computer according to the length of the link cable, that is, the power consumption of the transmission equipment when the cable is short is lower than that when the cable is shorter. Long-term power consumption, so as to achieve the purpose of energy saving and environmental protection. However, since different link objects will affect the power consumption allocation of the network transmission equipment, if the conditions of the link objects are not considered, the error rate of data transmission will often be high.

发明内容Contents of the invention

因此,本发明目的之一在于解决先前技术的问题。Therefore, one of the objects of the present invention is to solve the problems of the prior art.

本发明的另一目的在于提供一种兼顾传收功率的节省并确保传收质量的通信功率调节方法与装置。Another object of the present invention is to provide a communication power adjustment method and device that can save transmission power and ensure transmission quality.

本发明的通信功率调节装置的一实施例是以一设在网络交换器中的集成电路形式呈现,然亦可设在网络卡或其它通信装置上。该功率调节装置可利用硬件(例如逻辑电路的组合)来实现;亦可利用硬件与韧体的搭配(例如运算单元与载有韧体的储存单元的组合)来实现;也可利用硬件与软件的搭配(例如具有通信功能的计算机系统)来实现。An embodiment of the communication power regulating device of the present invention is in the form of an integrated circuit installed in a network switch, but it can also be installed on a network card or other communication devices. The power regulating device can be realized by hardware (such as a combination of logic circuits); it can also be realized by a combination of hardware and firmware (such as a combination of a computing unit and a storage unit loaded with firmware); it can also be realized by using hardware and software collocation (such as a computer system with communication functions) to achieve.

前述交换器包含:多个端口;一用以自端口接收分组且分析分组信息的分组分析器;一接收来自该分组分析器的分组信息的链接可靠度的错误检测器;及一用以对端口调整功率的节能控制器。The foregoing switch comprises: a plurality of ports; a packet analyzer for receiving packets from the ports and analyzing packet information; an error detector receiving link reliability of the packet information from the packet analyzer; Energy-saving controller to adjust power.

该检测器执行的方法包含:预设并储存有错误率临界值RL、RH,接收来自该端口的分组信息并计算错误率,进而进行以下其中一判断:判断该错误率是否小于RL、判断该错误率是否大于RH;若错误率小于RL,则产生调降一阶功率的调整指令;若错误率大于RH,则产生调高一阶功率的调整指令传送到节能控制器;若错误率非小于RL亦非大于RH,则不产生调整指令。此外,当检测器检测得知功率等于一预设的功率低点CPMIN,则通知该节能控制器固定功率为CPMIN不再调降;当检测得知功率等于一预设的功率高点CPMAX,则使功率回复为一开始预设的CPinitial;当检测得知错误率在两个临界值RL、RH之间震荡,且预定时间内震荡次数达默认值,则关闭调降功率的节能机制,不对该节能控制器产生调降一阶功率的调整指令。The method executed by the detector includes: preset and store error rate critical values R L and R H , receive packet information from the port and calculate the error rate, and then perform one of the following judgments: determine whether the error rate is less than R L 1. Judging whether the error rate is greater than R H ; if the error rate is less than RL , an adjustment command to lower the first-order power is generated; if the error rate is greater than R H , an adjustment command to increase the first-order power is generated and sent to the energy-saving controller; if If the error rate is neither less than R L nor greater than R H , no adjustment instruction is generated. In addition, when the detector detects that the power is equal to a preset low power point CP MIN , it notifies the energy-saving controller to fix the power at CP MIN and no longer lowers it; when it detects that the power is equal to a preset high power point CP MAX , the power will return to the preset CP initial ; when it is detected that the error rate is oscillating between the two critical values RL and R H , and the number of oscillating times reaches the default value within the predetermined time, the power reduction will be turned off The energy-saving mechanism does not generate an adjustment command for reducing the first-order power to the energy-saving controller.

节能控制器依该调整指令,对该端口调整分组传送或接收功率。The energy saving controller adjusts the packet transmission or reception power of the port according to the adjustment instruction.

该检测器在网络链接阶段,当检测到网络正在进行DHCP或BOOTP等初始化操作,预先使该节能控制器对该端口的功率调整为最高值;待初始化操作完成后,再调整回节能模式的一预设的CPinitial值。当初始化完成,若k秒内链接成功且链接成功后m秒内出现链接失败的次数超出默认值n,产生调高一阶功率的调整指令。During the network connection stage, when the detector detects that the network is performing initialization operations such as DHCP or BOOTP, the energy-saving controller adjusts the power of the port to the highest value in advance; after the initialization operation is completed, it is adjusted back to the energy-saving mode. The preset CP initial value. When the initialization is completed, if the link is successful within k seconds and the number of link failures within m seconds after the link is successful exceeds the default value n, an adjustment command to increase the first-order power will be generated.

检测器可针对自该端口传送出去的分组,以及接收到的分组分别计算错误率,并据此分别产生调整该端口的传送功率以及接收功率的调整指令,也可以仅针对传送出去的分组或接收的分组,其中的一者计算错误率及调整功率,其中另一只要随的调整即可。The detector can calculate the error rate for the packets transmitted from the port and the packets received, and accordingly generate adjustment instructions to adjust the transmit power and receive power of the port, or only for the packets transmitted or received Groups, one of which calculates the error rate and adjusts the power, and the other only needs to be adjusted accordingly.

检测器计算错误率的方法,可定义错误率等于分组数Mcnt与错误数Ecnt的比值,Mcnt值随接获分组递增,Ecnt值是当接获的分组信息显示分组传输错误时递增,且当该检测器对该Mcnt值计数达预设的Mmax值,使Mcnt与Ecnt同除以一个数值,或使Mcnt与Ecnt归零。当检测器判断接获的分组具有请求与回应的特性,则分组数加计一笔并记录该分组的分组信息,该分组信息内容包括目的端与来源端的地址及端口序号,以及保存序号。由该分组信息可看出分组传输方向。The method for calculating the error rate by the detector can define the error rate to be equal to the ratio of the number of packets Mcnt to the number of errors Ecnt. The value of Mcnt increases with the received packet, and the value of Ecnt increases when the received packet information shows a packet transmission error, and when the The detector counts the Mcnt value up to a preset Mmax value, divides Mcnt and Ecnt by a value, or resets Mcnt and Ecnt to zero. When the detector judges that the received packet has the characteristics of a request and a response, the number of packets is added and the packet information of the packet is recorded. The packet information includes the address and port number of the destination end and the source end, as well as the storage sequence number. The packet transmission direction can be seen from the packet information.

当检测器判断已有分组信息被纪录,且再接获一分组,则新接获的分组与该已纪录的分组信息比对,以TCP/IP分组来说,比对的内容包括:目的端与来源端的地址及端口序号是否符合,以及新接获分组的响应序号或分组序号与该已纪录分组的保存序号之间的关系-当该新接获分组的传送方向与该已纪录分组相同,则比对新接获分组的分组序号是否等于已纪录分组的保存序号,若等于则代表有分组重传现象;当该新接获分组的传送方向与该已纪录分组相反,则比对新接获分组的响应序号是否大于已纪录分组的保存序号,若不大于则代表有分组重传现象。若有分组重传的现象则错误数加计一笔,并删除已纪录的分组信息。When the detector judges that the existing packet information has been recorded and receives another packet, the newly received packet is compared with the recorded packet information. For TCP/IP packets, the contents of the comparison include: destination Whether it matches the address and port sequence number of the source, and the relationship between the response sequence number or packet sequence number of the newly received packet and the saved sequence number of the recorded packet-when the transmission direction of the newly received packet is the same as the recorded packet, Then compare whether the packet sequence number of the newly received packet is equal to the saved sequence number of the recorded packet. If it is equal, it means that there is a packet retransmission phenomenon; when the transmission direction of the newly received packet is opposite to the recorded packet, compare the newly received packet Whether the response sequence number of the obtained packet is greater than the saved sequence number of the recorded packet, if not, it means that there is a phenomenon of packet retransmission. If there is a phenomenon of packet retransmission, the number of errors will be added, and the recorded packet information will be deleted.

以ICMP分组来说,检测器判断该接获的分组具有请求与响应的特性时,接着判断针对已传出的分组在预定时间内是否有响应,若逾期未响应则错误数加计一笔。Taking ICMP packets as an example, when the detector judges that the received packet has the characteristics of a request and a response, it then judges whether there is a response to the outgoing packet within a predetermined time. If there is no response within the time limit, the error count will be added.

以仅具有侦错用的编号的分组来说,判断端口接收能力时,检测器计算错误率的方法是:利用该编号判断分组是否毁损,以毁损率当作错误率。For a packet with only a serial number for error detection, when judging the receiving capability of a port, the detector calculates the error rate by using the serial number to determine whether the packet is damaged, and taking the damage rate as the error rate.

藉由下述的本发明实施方式,当可更了解本发明是如何实施以及其所达成的功效。Through the following embodiments of the present invention, it is possible to better understand how the present invention is implemented and the effects it achieves.

附图说明Description of drawings

图1是本发明的功率调节装置实施例的方块图;Fig. 1 is the block diagram of the embodiment of power conditioning device of the present invention;

图2是本发明功率调节方法实施例的链接阶段的流程图;Fig. 2 is a flow chart of the linking phase of the embodiment of the power adjustment method of the present invention;

图3是本发明功率调节方法实施例的调节端口功率的流程图;Fig. 3 is a flow chart of adjusting port power according to an embodiment of the power adjusting method of the present invention;

图4是图3中,有关计算传送(Tx)错误率的流程图;Fig. 4 is in Fig. 3, the flow chart about calculating transmission (Tx) error rate;

图5是一交换器与一链接对象B之间进行分组传输的示意图;Fig. 5 is a schematic diagram of packet transmission between a switch and a link object B;

图6是图3中,有关计算接收(Rx)错误率的流程图;及Fig. 6 is in Fig. 3, the relevant flow chart of calculating receiving (Rx) error rate; And

图7是一交换器与一链接对象B之间进行分组传输的示意图。FIG. 7 is a schematic diagram of packet transmission between a switch and a link object B. FIG.

主要组件符号说明Explanation of main component symbols

1      交换器         3          节能控制器1 Exchanger 3 Energy-saving controller

10a    端口           A          链接对象10a Port A Link object

10b    端口           B          链接对象10b Port B Link object

11    分组分析器      S10~S19   步骤11 Packet analyzer S 10 ~ S 19 steps

12    分组传送引擎    S21~S29   步骤12 Packet transmission engine S 21 ~ S 29 steps

100   功率调节装置    S251、S261 步骤100 Power adjustment device S 251 , S 261 steps

2     检测器          S31~~S43 步骤2 Detector S 31 ~~S 43 steps

具体实施方式Detailed ways

请参阅图1,其是本发明的通信功率调节装置100的实施例示意图,是以一设在以太网络交换器(network switch)1的集成电路形式呈现。该交换器1连接于多个链接对象之间。本实施例所述的交换器1包含一分组分析器(packet parser)11、该功率调节装置100、一分组传送引擎(packet forwardingengine)12,以及分别与链接对象A、B连接的端口(port)10a、10b。交换器1通过端口10a将链接对象B的分组送到端口10b,然后传送到链接对象A,并将链接对象A的分组由端口10b接收,传送到端口10a后再传送到链接对象B。Please refer to FIG. 1 , which is a schematic diagram of an embodiment of a communication power regulating device 100 of the present invention, which is presented in the form of an integrated circuit installed in an Ethernet switch (network switch) 1 . This switch 1 is connected between a plurality of link objects. The switch 1 described in this embodiment includes a packet analyzer (packet parser) 11, the power regulator 100, a packet forwarding engine (packet forwarding engine) 12, and ports (ports) connected to link objects A and B respectively 10a, 10b. Switch 1 sends the packet of link object B to port 10b through port 10a, and then transmits it to link object A, and receives the packet of link object A by port 10b, transmits it to port 10a, and then transmits it to link object B.

本实施例中功率调节装置100主要利用网络国际标准组织(InternationalStandards Organization,ISO)模型中具有分组错误检测及控制特性的协议的层,例如数据链接层(data link layer)或传输层(transport layer)等来实现本发明数据功率调节方法,并进一步通知物理层(physical layer)将所消耗的功率进行调整,例如调整物理层所包含的任一电路的工作电流、电压等。该功率调节装置100包含一链接可靠度的错误检测器(reliable link error detection,以下简称检测器)2,及一负责调整网络协议中物理层的传送及接收功率程度(power level)的节能控制器3。请注意,于本实施例中,功率调节装置100可利用硬件(例如逻辑电路的组合)来实现,亦可利用硬件与韧体的搭配(例如运算单元与载有韧体的储存单元的组合)来实现,本技术领域具有通常知识者可依据本说明书的揭露来选择适当的方式以实施功率调节装置100。在本发明另一实施例中,本发明通信功率调节装置的实现,为一计算机通过其操作系统来加载并执行一程序,进而控制一与该计算机耦接的通信装置的传收功率。In this embodiment, the power regulating device 100 mainly utilizes a protocol layer having packet error detection and control characteristics in the network International Standards Organization (ISO) model, such as a data link layer (data link layer) or a transport layer (transport layer). etc. to implement the data power adjustment method of the present invention, and further notify the physical layer (physical layer) to adjust the consumed power, such as adjusting the operating current and voltage of any circuit included in the physical layer. The power adjustment device 100 includes a link reliability error detector (reliable link error detection, hereinafter referred to as the detector) 2, and an energy-saving controller responsible for adjusting the transmission and reception power level (power level) of the physical layer in the network protocol 3. Please note that in this embodiment, the power regulating device 100 can be implemented by hardware (such as a combination of logic circuits), or by a combination of hardware and firmware (such as a combination of a computing unit and a storage unit loaded with firmware). To achieve this, those skilled in the art can select an appropriate method to implement the power adjustment device 100 according to the disclosure of this specification. In another embodiment of the present invention, the realization of the communication power adjusting device of the present invention is that a computer loads and executes a program through its operating system, and then controls the transmission power of a communication device coupled with the computer.

交换器1的分组分析器11对每个进来的分组分析表头中各字段,例如标号(flag)、目的/来源地址、协议种类等参数,并将该等参数传送给功率调节装置100的检测器2。分组传送引擎12则是负责分组路径的决定以及正常分组的传送工作。请注意,本发明着眼于该功率调节装置100,至于分组分析器11、分组传送引擎12以及交换器1所包含的其它必要电路(未显示于图1)属于习知技术的范畴,将不于本实施方式中赘述。The packet analyzer 11 of the switch 1 analyzes each field in the header of each incoming packet, such as parameters such as a label (flag), destination/source address, protocol type, etc., and transmits these parameters to the detection of the power regulating device 100 Device 2. The packet transmission engine 12 is responsible for determining the packet path and normal packet transmission. Please note that the present invention focuses on the power conditioning device 100. As for the packet analyzer 11, the packet transmission engine 12 and other necessary circuits (not shown in FIG. 1 ) included in the switch 1, they belong to the scope of the prior art and will not be described here. It will be described in detail in this embodiment.

检测器2用来长期检测与链接对象之间传收质量,主要针对分组分析器11传入的字段中各参数分析是否有错误发生,并判断是否达到预设的调整功率的条件;若判断需调整功率,则产生一调整指令传送到节能控制器3。节能控制器3依该调整指令,调整端口10a及/或10b的分组传送功率及/或分组接收功率。Detector 2 is used for long-term detection and the quality of transmission and reception between the link object, and mainly analyzes whether there is an error in each parameter analysis in the field introduced by packet analyzer 11, and judges whether the preset power adjustment condition is reached; To adjust the power, an adjustment command is generated and sent to the energy-saving controller 3 . The energy-saving controller 3 adjusts the packet transmission power and/or packet reception power of the ports 10a and/or 10b according to the adjustment instruction.

本实施例检测器2判断是否有错误发生(例如分组遗失)、是否达调整功率的条件,以及节能控制器3进行功率调整的相关技术,配合流程图详述于下文。以下是以交换器1通过端口10a与链接对象B之间进行数据传输,且调整端口10a的接收及传送功率举例说明。In this embodiment, the detector 2 judges whether there is an error (such as packet loss), whether the power adjustment condition is met, and the related technology of the power adjustment by the energy-saving controller 3 is described in detail below with the flow chart. The following is an example of the data transmission between the switch 1 and the link object B through the port 10a, and the adjustment of the receiving and transmitting power of the port 10a.

配合参阅图2,当本发明功率调节装置100的节能模式启动,为避免因为功率不足造成链接失败,或多次链接成功(link up)、链接失败(link down)震荡的情况,功率调节装置100先执行步骤S10~步骤S19的功率调节方法,以调整端口10a功率而使链接成功且保持稳定。With reference to FIG. 2, when the energy-saving mode of the power regulating device 100 of the present invention is activated, in order to avoid link failure due to insufficient power, or multiple link success (link up) and link failure (link down) oscillations, the power regulating device 100 The power adjustment method of step S 10 to step S 19 is executed first, so as to adjust the power of the port 10a to make the link successful and stable.

步骤S10-当检测器2检测到链接对象之间正在进行动态主机配置协议(dynamic host configuration protocol,简称DHCP)或引导协定(bootstrapprotocol,简称BOOTP)等初始化操作(例如让计算机取得地址、网络屏蔽等)时,为避免因端口10a功率不足而无法建立链接或因功率调整导致链接不稳定,本步骤预先将端口10a功率调整为最大值,例如将端口10a的工作电流及/或电压调整为最大值;待初始化操作完成后,再调整回一默认值CPinitial。该CPinitial值在本实施例中是依据实际电路的特性及物理层信息(例如物理层能够正常工作的功率范围)所决定,系为本技术领域具有通常知识者可依据本说明书的揭露来据以实施。需特别说明的是,若无须进行初始化操作,也可在端口10a的功率预设为CPinitial的前提下,略过本步骤S10Step S 10 - when the detector 2 detects that the link objects are performing dynamic host configuration protocol (dynamic host configuration protocol, referred to as DHCP) or bootstrap protocol (bootstrap protocol, referred to as BOOTP) and other initialization operations (such as allowing the computer to obtain an address, network shielding, etc.) etc.), in order to avoid link failure due to insufficient power of port 10a or link instability due to power adjustment, this step pre-adjusts the power of port 10a to the maximum value, such as adjusting the operating current and/or voltage of port 10a to the maximum value; after the initialization operation is completed, adjust it back to a default value of CP initial . The CP initial value in this embodiment is determined based on the characteristics of the actual circuit and the physical layer information (such as the power range in which the physical layer can work normally), and it is based on the information disclosed in this manual by those with ordinary knowledge in the technical field. to implement. It should be noted that, if no initialization operation is required, the step S 10 can also be skipped on the premise that the power of the port 10 a is preset as CP initial .

步骤S11-检测器2设定链接计数次数LinkCnt=0。Step S11—the detector 2 sets the link count number LinkCnt=0.

步骤S12一检测器2检测端口10a链接状况,是否在k秒(例如60秒)内链接成功?若是,则进入步骤S13,若否,通常代表缆线尚未连接(系指若无须进行初始化操作的情形时),则回到步骤S11。另外,在需要执行如前述的初始化操作的情形下,若检测器2检测端口10a链接状况未在k秒内链接成功,则可能是预设功率CPinitial太小,故将该预设功率CPinitial调高一阶(未显示于图2),再重新检测端口10a是否在k秒内链接成功,若是则进入步骤S13,若否则再调高该预设功率CPinitial一阶,依此类推直到该预设功率CPinitial调高至CPMAX为止。Step S12 —the detector 2 detects the connection status of the port 10a, whether the connection is successful within k seconds (for example, 60 seconds)? If yes, go to step S 13 , if not, it usually means that the cable is not connected (meaning if no initialization operation is required), go back to step S 11 . In addition, in the case where the aforementioned initialization operation needs to be performed, if the detector 2 detects that the connection status of the port 10a is not successfully connected within k seconds, it may be that the preset power CP initial is too small, so the preset power CP initial Increase by one step (not shown in Figure 2), and then re-check whether the port 10a is successfully connected within k seconds, if so, enter step S13 , if not, then increase the preset power CP initial by one step, and so on until the preset power Set the power CP initial to increase until CP MAX .

步骤S13-检测器2检测是否在m秒(例如30秒)内出现链接失败?若是,则代表链接状况可能不稳定,进入链接计数次数增加的步骤S14及其下流程;若否,表示链接状况稳定,进行步骤S18及S19Step S13 - the detector 2 detects whether a link failure occurs within m seconds (for example, 30 seconds)? If yes, it means that the connection status may be unstable, and enter into step S14 and the following process of increasing the number of connection counts; if not, it means that the connection status is stable, and proceed to steps S18 and S19 .

步骤S14-检测器2使LinkCnt值加1。Step S14 - Detector 2 increments the LinkCnt value by one.

步骤S15-检测器2判断LinkCnt值是否大于默认值n?若已大于默认值n,则代表链接状况确实不稳定,进入步骤S16;若否,则可能链接失败仅是偶发状况,还需要观察,进入步骤S17Step S 15 - the detector 2 judges whether the value of LinkCnt is greater than the default value n? If it is greater than the default value n, it means that the link status is indeed unstable, and go to step S 16 ; if not, the link failure may be only a sporadic situation, which needs to be observed, and go to step S 17 .

步骤S16-节能控制器3使端口10a的功率提高一阶,也就是CP=CP+1,再回到步骤S11重新观察功率是否足够。Step S16 - the energy-saving controller 3 increases the power of the port 10a by one level, that is, CP=CP+1, and then returns to step S11 to re-check whether the power is sufficient.

步骤S17-节能控制器3维持当时的功率CP,接着回到步骤S12,持续观察是否仍然反复地链接成功、链接失败。Step S 17 - the energy-saving controller 3 maintains the current power CP, then returns to step S 12 , and continuously observes whether the link succeeds or fails repeatedly.

步骤S18-若前述步骤S13检测未在m秒内出现链接失败,则判断链接状况已稳定,设定LinkCnt=0。Step S18 - If the aforementioned step S13 detects that there is no link failure within m seconds, it is determined that the link status is stable, and LinkCnt=0 is set.

步骤S19-进入正常工作状态,建立的可靠链接流(reliable connectionflow),或称数据流(data flow)。Step S 19 -Enter normal working state, establish reliable connection flow (reliable connection flow), or data flow (data flow).

请参阅图1及图3,当可靠的数据流建立,即进入正常工作状态,功率调节装置100除了必须确认交换器1的端口10a的分组接收功率(Rx power)是否足以顺利接收分组,也需要确认端口10a的传送功率(Tx power)是否足以让链接对象顺利接收分组,以进行功率的调整。本实施例的检测器2对任一已建立的数据流持续地随机取样检测,但只要演算速度允许,本发明其它实施例也可以针对资料流的全部分组都进行检测。以下先以监测传送(Tx)能力举例说明。Please refer to FIG. 1 and FIG. 3. When a reliable data flow is established, that is, it enters a normal working state. In addition to confirming whether the packet reception power (Rx power) of the port 10a of the switch 1 is sufficient to successfully receive the packet, the power adjustment device 100 also needs to Confirm whether the transmit power (Tx power) of the port 10a is sufficient for the link partner to receive packets smoothly, so as to adjust the power. The detector 2 in this embodiment continuously randomly samples and detects any established data stream, but as long as the calculation speed allows, other embodiments of the present invention can also detect all packets of the data stream. In the following, the monitoring of transmission (Tx) capability is taken as an example for illustration.

步骤S21-节能控制器3决定一初始功率CPinitial。本步骤所述初始功率CPinitial,就是利用图2流程演算后确定的功率CP值。Step S 21 - the energy saving controller 3 determines an initial power CP initial . The initial power CP initial mentioned in this step is the power CP value determined after calculation using the flow chart in FIG. 2 .

步骤S22-检测器2开始检测数据流,同时计算错误率(error rate)。本发明有关错误率的计算方式主要当是检测到具有请求(request)与回应(response)特性的可靠链接分组(reliable connection packet),例如传输控制/网络通信协议(下称TCP/IP)的分组、地址解析通信协议(下称ARP)的分组,或因特网群组管理通信协议(下称ICMP)的分组,确认分组信息之后,即进一步判断链接对象B是否已收到端口10a传出的分组,若发现分组遗失则增加错误次数,提高错误率。详细计算错误率的方法,配合图4流程详述于后。Step S 22 - the detector 2 starts to detect the data stream and calculate the error rate at the same time. The calculation method of the error rate in the present invention is mainly to detect a reliable connection packet (reliable connection packet) with request (request) and response (response) characteristics, such as a transmission control/network communication protocol (hereinafter referred to as TCP/IP) packet , the grouping of address resolution communication protocol (hereinafter referred to as ARP), or the grouping of Internet group management communication protocol (hereinafter referred to as ICMP), after confirming the grouping information, promptly further judge whether the link object B has received the outgoing grouping of port 10a, If it is found that the packet is lost, the number of errors will be increased to increase the error rate. The method of calculating the error rate in detail will be described in detail later in conjunction with the flow chart in Figure 4.

步骤S23-当得知错误率,检测器2判断错误率是否小于RL?本发明RL是一预设的低临界值(threshold),例如3/100,000,若错误率小于RL,代表传送分组的状况十分稳定,可进入步骤S24;若错误率非小于RL,则需进入图3中右半部流程(步骤S26~S29),再去判断错误率是否高于高临界值,也就是RH,例如10/100,000。Step S 23 -When the error rate is known, the detector 2 judges whether the error rate is less than RL ? In the present invention, RL is a preset low threshold (threshold), such as 3/100,000. If the error rate is less than RL , it means that the condition of transmitting packets is very stable, and step S24 can be entered; if the error rate is not less than RL , Then it is necessary to enter the right half of the process in Fig. 3 (steps S26-S29), and then determine whether the error rate is higher than the high critical value, that is, R H , for example, 10/100,000.

步骤S24-节能控制器3先判断功率CP是否等于一预设的CPMIN?若是,则进入步骤S241;若否,则进行步骤S25Step S24 - the energy-saving controller 3 first judges whether the power CP is equal to a preset CP MIN ? If yes, go to step S241 ; if not, go to step S25 .

步骤S241-节能控制器3固定CP=CPMIN,也就是说当传送功率已经低达预设低点,则使传送功率固定下来,不再向下调整,并且回到步骤S22继续检测数据流。本实施例的功率CPMIN默认值,是以物理层所能支持的最小功率决定,但其决定方式不以本实施例为限。Step S 241 - the energy-saving controller 3 fixes CP=CP MIN , that is to say, when the transmission power has reached a preset low point, the transmission power is fixed and no downward adjustment is made, and the data is returned to step S 22 to continue detecting flow. The default value of the power CP MIN in this embodiment is determined by the minimum power supported by the physical layer, but the determination method is not limited to this embodiment.

步骤S25-由于在先前的步骤S23中判断错误率小于RL,代表分组传送状况十分稳定,且在步骤S24中判断功率未达最小值,检测器2可产生一调整指令传送到节能控制器3,使节能控制器3依该调整指令对端口10a调整传送功率降低一阶(level),CP=CP-1。本实施例所述调降或调高功率一「阶」,是指物理层预设的分阶。接着又回到步骤S22继续检测数据流。Step S25 - Since the error rate was judged to be less than RL in the previous step S23 , it represents that the packet transmission status is very stable, and in step S24 it is judged that the power has not reached the minimum value, the detector 2 can generate an adjustment command and send it to the energy-saving The controller 3 enables the energy-saving controller 3 to adjust the transmission power of the port 10a to decrease by one level according to the adjustment instruction, CP=CP-1. The "level" of reducing or increasing the power in this embodiment refers to the preset level of the physical layer. Then return to step S22 to continue detecting the data flow.

当步骤S23判断错误率非小于RL,错误率可能等于或大于RL,则需进入图3中右半部流程:When step S23 determines that the error rate is not less than RL , and the error rate may be equal to or greater than RL , it is necessary to enter the right half of the process in Figure 3:

步骤S26-判断错误率是否大于RH?本发明RH是一预设的高临界值,若错误率高于RH,代表传送分组的状况不稳定,需进入步骤S27;若错误率非高于RH,则代表错误率介于可容许的RL与RH之间(含RL与RH),接着进行步骤S261Step S 26 - determine whether the error rate is greater than R H ? In the present invention, R H is a preset high critical value. If the error rate is higher than R H , it means that the condition of transmitting packets is unstable, and it is necessary to enter step S27 ; if the error rate is not higher than R H , it means that the error rate is between Between RL and R H (including RL and R H ), then proceed to step S 261 .

步骤S261-由于目前为止的错误率值可接受,因此固定此时的CP值,再回到步骤S22继续检测数据流。Step S 261 - Since the error rate so far is acceptable, the current CP value is fixed, and then returns to step S 22 to continue detecting data streams.

步骤S27-在错误率高于RH的情况下,本步骤检测器2再判断功率CP是否等于一预设的CPMAX?若是,则进入步骤S28;若否,则进行步骤S29Step S 27 - In the case that the error rate is higher than R H , in this step the detector 2 judges whether the power CP is equal to a preset CP MAX ? If yes, go to step S28 ; if not, go to step S29 .

步骤S28-由于功率CP已达功率高点CPMAX,错误率还是大于RH,表示错误率不是因为传送功率不足所产生,因此节能控制器3将CP设回CPinitial,并且回到步骤S22继续检测数据流。本实施例的功率CPMAX默认值,是通过测试实际电路的特性或依据实际电路的规格或经验法则来决定,传送分组所需的功率理论上不会高于CPMAX,但CPMAX决定方式不以本实施例为限。Step S 28 - Since the power CP has reached the high power point CP MAX , the error rate is still greater than R H , indicating that the error rate is not caused by insufficient transmission power, so the energy-saving controller 3 sets CP back to CP initial , and returns to step S 22 Continue to detect data flow. The default value of power CP MAX in this embodiment is determined by testing the characteristics of the actual circuit or according to the specifications of the actual circuit or rules of thumb. The power required to transmit a packet will not be higher than CP MAX in theory, but CP MAX is determined in a different way. This example is limited.

步骤S29-由于传送分组的状况呈现不稳定,有可能是因为发送功率不足,因此检测器2产生一调整指令传送到节能控制器3,使节能控制器3依该调整指令对端口10a调整传送功率调高一阶,CP=CP+1。接着,又回到步骤S22继续检测数据流。Step S 29 -Because the status of transmitting packets is unstable, it may be due to insufficient transmission power, so the detector 2 generates an adjustment command and sends it to the energy-saving controller 3, so that the energy-saving controller 3 adjusts the transmission to the port 10a according to the adjustment command The power is increased by one order, CP=CP+1. Then, return to step S22 to continue detecting the data flow.

本发明藉由设定RL与RH值分别控制图3流程中的左半部以及右半部的开启或关闭,左半部流程对可以再调低功率的状况进行功率调整,右半部流程则对应该再调高功率的状况进行功率调整,实现节能自动调降(powersaving auto-fallback)与增进(aggressive)的机制。虽上述实施例以先进入图3左半部自动调降流程举例说明,但并不以此为限,也可以如图3的虚线所示先进入右半部的流程。然而在实际运作状况下,有可能发生CP值在两个临界值RL、RH之间震荡,在本实施例中,可再计数CP值的震荡次数(亦即CP值由递增变递减及由递减变递增的转变次数),当在一预定时间内震荡次数达一默认值,功率调节装置100可关闭左半部的节能机制,避免调降功率所导致的CP值震荡现象。The present invention controls the opening or closing of the left half and the right half of the process in Fig. 3 respectively by setting the values of RL and R H , the process of the left half adjusts the power when the power can be lowered further, and the process of the right half The process is to adjust the power when the power should be increased again, and realize the mechanism of power saving auto-fallback and aggressive. Although the above-mentioned embodiment is illustrated by first entering the automatic lowering process in the left half of FIG. 3 , it is not limited thereto. It is also possible to first enter the right half of the process as shown by the dotted line in FIG. 3 . However, in actual operating conditions, it is possible that the CP value oscillates between the two critical values R L and R H. In this embodiment, the number of oscillations of the CP value can be counted again (that is, the CP value changes from increment to decrement and The number of transitions from decreasing to increasing), when the number of oscillations reaches a default value within a predetermined time, the power regulating device 100 can turn off the energy-saving mechanism of the left half, so as to avoid the CP value oscillation caused by reducing the power.

再回到图3中错误率的计算部分,请参阅图1、图4、图5及以下说明。图4是表示追踪端口10a针对TCP/IP分组传送(Tx)能力的流程图,藉由分析由端口10a传出的分组(如图5黑点所示),以了解端口10a的传送(Tx)能力。图5是端口10a与链接对象B及端口10b(连接链接对象A)之间传输分组的示意图。Returning to the calculation part of the error rate in Figure 3, please refer to Figure 1, Figure 4, Figure 5 and the following description. FIG. 4 is a flow chart showing the capability of tracking port 10a for TCP/IP packet transmission (Tx), by analyzing the packets sent out by port 10a (as shown by black dots in FIG. 5 ), to understand the transmission (Tx) of port 10a ability. FIG. 5 is a schematic diagram of packet transmission between the port 10a and the link object B and the port 10b (connected to the link object A).

步骤S31-在进入正常工作状态的情况下,检测器2一开始设定分组数Mcnt值为0、错误数Ecnt值也为0,并开始计时。Step S 31 - In the case of entering the normal working state, the detector 2 initially sets the value of the number of packets Mcnt to 0, the value of the number of errors Ecnt to 0, and starts timing.

步骤S32-接获一分组,该分组可能是端口10a要传送给链接对象B的分组,也可能是端口10a接收到链接对象B回传而要递交给端口10b(链接对象A)的分组。检测器2从分组字段中的参数,判断接获的分组是否具有请求与响应的特性?若是,则属于本实施例要处理的分组,进入步骤S33;若否,则不理会此分组,再从步骤S31开始。Step S 32 - Receive a packet, which may be a packet that port 10a wants to transmit to link object B, or a packet that port 10a receives from link object B and wants to deliver to port 10b (link object A). Detector 2 judges whether the received packet has the characteristics of request and response from the parameters in the packet field? If yes, it belongs to the group to be processed in this embodiment, and proceeds to step S33 ; if not, ignores this group, and starts from step S31 .

步骤S33-判断是否已有分组信息被纪录?若端口10a传送出一分组(请参阅图5),交换器1的缓存器(图未示)会记录该分组信息;若端口10a曾经接收一分组(请参阅图7),交换器1的缓存器也会记录该分组信息。由于图4是以观测端口10a与链接对象B之间传送(Tx)能力的方法流程举例说明,因此在本步骤是判断缓存器中是否有任何传送出给链接对象B的分组的纪录。若未有任何分组信息被纪录,则进入流程右半边-纪录分组信息的流程(步骤S34~S37)然后回到步骤S32;若已有分组信息被纪录,则进入流程左半边-判断是否发生传送错误的流程(步骤S38~S42)。Step S33 - judging whether group information has been recorded? If the port 10a transmits a packet (see Figure 5), the buffer (not shown) of the switch 1 will record the packet information; if the port 10a once received a packet (see Figure 7), the buffer of the switch 1 The device will also record the group information. Since FIG. 4 is an example illustrating the method flow of observing the transmission (Tx) capability between the port 10a and the link object B, this step is to determine whether there is any record of the packet transmitted to the link object B in the buffer. If no grouping information has been recorded, then enter the right half of the process - the process of recording grouping information (steps S 34 ~ S 37 ) and then return to step S 32 ; if there is already grouping information recorded, then enter the left half of the process - judgment Flow of whether a transmission error occurs (steps S 38 -S 42 ).

纪录分组信息的流程The process of recording group information

步骤S34-检测器2使分组数递增,也就是Mcnt=Mcnt+1,并使计时归零,之后进入步骤S35。Step S34 - The detector 2 increments the packet number, that is, Mcnt=Mcnt+1, and resets the timer to zero, and then enters step S35.

步骤S35-检测器2接着判断Mcnt是否等于预设的分组数Mmax,若是,则进入步骤S36;若否,则跳到步骤S37Step S 35 - the detector 2 then judges whether Mcnt is equal to the preset number of groups Mmax, if yes, proceed to step S 36 ; if not, skip to step S 37 .

步骤S36-使Mcnt与Ecnt同除以一个数值,例如同除2。进行本步骤,是为了可以持续不断地计算Ecnt/Mcnt的比例,做法不以同除一数值为限,也可以直接使Mcnt值为0、Ecnt值也为0。接着进入步骤S37Step S 36 - Dividing Mcnt and Ecnt by a value, for example, dividing by 2 together. This step is performed in order to continuously calculate the ratio of Ecnt/Mcnt. The method is not limited to the value of dividing by one, and the value of Mcnt and Ecnt can also be directly set to 0. Then go to step S37 .

步骤S37-纪录此分组的分组信息,纪录完成后再回到步骤S32。本步骤所纪录的分组信息,内容主要包括分组目的端与来源端的地址及端口序号,以及保存序号。以监测端口10a传送(Tx)能力来说,该分组信息包括{[IP-A,PortNum-A,IP-B,PortNum-B],KSN-A},该信息代表分组传送方向为由链接对象A传送到链接对象B。当纪录完成,检测器2在步骤S33针对下一个分组进行判断时,则会判断为「已有分组信息被纪录」。Step S 37 - record the group information of this group, and return to step S 32 after the recording is completed. The grouping information recorded in this step mainly includes the address and port serial number of the destination and source of the grouping, and the storage serial number. In terms of monitoring the transmission (Tx) capability of port 10a, the packet information includes {[IP-A, PortNum-A, IP-B, PortNum-B], KSN-A}, which represents the packet transmission direction as the link object A teleports to link object B. When the record is completed, the detector 2 will determine that "the information of the group has been recorded" in step S33 when it judges the next group.

判断分组是否遗失的流程The process of judging whether a packet is lost

步骤S38-当前述步骤S33判断已有分组信息被纪录,本步骤针对新接获的分组的信息,判断其中目的端与来源端的地址及端口序号是否与已纪录信息符合,简言的即确认该分组是否为端口10a与链接对象B之间传送的分组。若是,则进行下一步骤S39;若否,则表示此分组是不同的链接所传送的分组,无须理会,回到步骤S32Step S38 - When the aforementioned step S33 judges that the grouping information has been recorded, this step is aimed at the information of the newly received grouping, judging whether the address and port number of the destination end and the source end match the recorded information, in short, It is confirmed whether the packet is a packet transferred between the port 10a and the link partner B. If yes, proceed to the next step S 39 ; if not, it means that the packet is transmitted by a different link, ignore it, and return to step S 32 .

步骤S39-检测器2接着判断该分组的传送方向,若与纪录的分组传送方向相同,也就是由链接对象A传送到链接对象B,则代表该分组是端口10a要传出到链接对象B的分组,接着进行步骤S41;若分组传送方向相反,表示该分组是链接对象B回传且端口10a要递送给链接对象A的分组,接着进行步骤S40Step S39 - The detector 2 then judges the transmission direction of the packet. If it is the same as the recorded packet transmission direction, that is, it is transmitted from the link object A to the link object B, it means that the packet is to be sent out to the link object B through port 10a If the packet transmission direction is opposite, it means that the packet is sent back by link object B and the port 10a is to be delivered to link object A, then proceed to step S 40 .

步骤S40-针对链接对象B回传分组的响应序号B_ack,与已纪录分组的保存序号KSN-A进行比对,该保存序号即较早由端口10b传到端口10a且要传送出给链接对象B的分组的分组序号A_seq。Step S40 - compare the response sequence number B_ack of the packet returned by the link object B with the stored sequence number KSN-A of the recorded packet, the stored sequence number is transmitted from port 10b to port 10a earlier and will be sent to the link object The packet sequence number A_seq of the packet of B.

举例来说,缓存器已纪录了一笔(KSN-A,A_ack)=(100,20)的分组信息,现接获一分组方向为链接对象B传送到链接对象A的分组,且分组序号与回应序号为(B_seq,B_ack),在本步骤即判断该回传分组的B_ack是否大于先前纪录分组的KSN A。若响应序号B ack大于保存序号KSN-A,例如(B_seq,B_ack)=(20,101),代表分组顺利送达,链接对象B在回传分组中要求端口10a传送下一个分组,也代表端口10a传送(Tx)能力正常,进入步骤S43清除已纪录的分组信息,接着再回到步骤S32For example, the buffer has recorded a grouping information of (KSN-A, A_ack)=(100, 20), and now a grouping direction is received from the linking object B to the linking object A, and the sequence number of the packet is the same as The response sequence number is (B_seq, B_ack). In this step, it is judged whether the B_ack of the returned packet is greater than the KSN A of the previously recorded packet. If the response sequence number B ack is greater than the saved sequence number KSN-A, for example (B_seq, B_ack) = (20, 101), it means that the packet is delivered successfully, and the link object B requires port 10a to transmit the next packet in the return packet, which also represents the port 10a The transmission (Tx) capability is normal, enter step S43 to clear the recorded group information, and then return to step S32 .

若响应序号B_ack小于等于保存序号KSN-A,例如(B_seq,B_ack)=(20,99),代表链接对象B没有接到端口10a传出的序号为KSN-A的分组,链接对象B要求重传分组,因此进入步骤S43,检测器2使错误数递增,也就是Ecnt=Ecnt+1,然后进入步骤S43If the response sequence number B_ack is less than or equal to the stored sequence number KSN-A, for example (B_seq, B_ack) = (20, 99), it means that the link object B has not received the packet with the sequence number KSN-A sent by the port 10a, and the link object B requires re- The packet is transmitted, so enter step S 43 , the detector 2 increments the error number, that is, Ecnt=Ecnt+1, and then enter step S 43 .

步骤S41-若在步骤S39中判断分组与已纪录分组传送方向相同,则判断该要传出给链接对象B的分组的分组序号A_seq是否等于已纪录的KSN-A。若此分组的分组序号A_seq与已纪录的KSN-A相等,则代表此分组为重送,进入步骤S42使Ecnt=Ecnt+1;若否,则该分组只是另一个要传送给链接对象B的分组,不用理会。Step S41 - If it is determined in step S39 that the packet and the recorded packet have the same transmission direction, then determine whether the packet sequence number A_seq of the packet to be sent to the link object B is equal to the recorded KSN-A. If the packet sequence number A_seq of this packet is equal to the recorded KSN-A, it means that this packet is retransmitted, and enters step S42 to make Ecnt=Ecnt+1; if not, then this packet is just another one to be sent to the link object B group, ignore it.

前述步骤S34与步骤S42皆影响图3所述错误率Ecnt/Mcnt值,并供图3所示流程的步骤S22之后演算使用。The aforementioned step S34 and step S42 both affect the error rate Ecnt/Mcnt value shown in FIG. 3 , and are used for calculation after step S22 of the process shown in FIG. 3 .

本实施例是以Ecnt/Mcnt订定为错误率举例说明,此做法需持续不断地计算Ecnt/Mcnt的比例。然而,本发明不以此为限,也可以不采步骤S36的手段让Ecnt/Mcnt可持续计算,而是订定Ecnt的临界值并使临界值随累计量改变-例如前述RL设定为3/100,000,表示Mcnt在10万内Ecnt数达3,错误率即达临界值,当100,000<Mcnt 200,000,则Ecnt数需达6,错误率财达临界值;或者利用计算错误次数并设定错误次数的临界值来判断分组传送状况,且每当Mcnt到达Mmax则清空Ecnt,使Mcnt与Ecnt归零。In this embodiment, Ecnt/Mcnt is set as an example for illustration. This method needs to continuously calculate the ratio of Ecnt/Mcnt. However, the present invention is not limited thereto, and the method of step S36 may not be used to allow Ecnt/Mcnt to be continuously calculated, but to set the critical value of Ecnt and make the critical value change with the cumulative amount—for example, the aforementioned RL is set as 3/100,000 means that the number of Ecnt reaches 3 within 100,000 Mcnt, and the error rate reaches the critical value. When 100,000<Mcnt 200,000, the number of Ecnt needs to reach 6, and the error rate reaches the critical value; or use the calculation of the number of errors and set The critical value of the number of errors is used to judge the packet transmission status, and whenever Mcnt reaches Mmax, Ecnt is cleared, and Mcnt and Ecnt are reset to zero.

前述监测端口10a的传送(Tx)能力是基于假设接收(Rx)的能力没问题的前提,亦即实际上可能传送(Tx)功率设定没问题,但接收(Rx)的功率设定有问题,以致误认为传送(Tx)能力有问题而调整传送(Tx)功率。因此,为避免接收(Rx)的功率设定可能有问题,则在调节端口10a的传送(Tx)功率时,可同时调节接收(Rx)的功率,或者也可以分别监测并调节。The foregoing monitoring of the transmission (Tx) capability of the port 10a is based on the premise that the reception (Rx) capability is normal, that is, the transmission (Tx) power setting may be fine, but the reception (Rx) power setting may be problematic. , so as to mistakenly think that there is a problem with the transmission (Tx) capability and adjust the transmission (Tx) power. Therefore, in order to avoid possible problems with the power setting of the receiving (Rx), when the transmitting (Tx) power of the port 10a is adjusted, the receiving (Rx) power can be adjusted at the same time, or can be monitored and adjusted separately.

请参阅图1、图6及图7,监测端口10a的接收(Rx)功率来说,也与图4流程大致相同,但纪录的分组不同,在步骤S37,中,是以分组信息内容纪录{[IP-B,PortNum-B,IP-A,PortNum-A],KSN-B}举例说明,该信息代表分组传送方向为由链接对象B传送到链接对象A;且在步骤S40是比对A_ack>KSN-B,在步骤S41是比对B seq=KSN-B。Please refer to Fig. 1, Fig. 6 and Fig. 7, the receiving (Rx) power of monitoring port 10a is also roughly the same as that of Fig. 4, but the grouping of records is different. In step S37 , it is recorded with the content of grouping information {[IP-B, PortNum-B, IP-A, PortNum-A], KSN-B} illustrates that the information represents that the packet transmission direction is transmitted from the link object B to the link object A; and in step S40 is compared For A_ack>KSN-B, in step S41 compare B seq=KSN-B.

就观测Rx状况来说,接获的分组不一定需具有请求与响应的特性,也可以仅具有侦错用的编号即可,例如CRC(Cyclic Redundancy Check)码。在此一情形下,判断Rx能力时,可采用与前述相似的方法另行判断,并检测所接收分组是否有分组毁损率(也就是CRC错误率)太高的情况。As far as observing the Rx status is concerned, the received packet does not necessarily have to have the characteristics of request and response, and may only have a number for error detection, such as a CRC (Cyclic Redundancy Check) code. In this case, when judging the Rx capability, a method similar to the above can be used to make another judgment, and detect whether the packet damage rate (ie, the CRC error rate) of the received packet is too high.

本发明可针对任何具有请求与响应特性的协议检测其错误率-以ICMP来说,可利用工具程序PING发出ICMP分组,并藉由测试ICMP分组是否有响应或逾时未有响应来计算错误率;以ARP来说,也是藉由测试是否有ARP分组响应来计算错误率。所求得的错误率回到图3所示的功率调整流程进行演算。The present invention can detect its error rate for any protocol with request and response characteristics—for ICMP, the tool program PING can be used to send ICMP packets, and the error rate can be calculated by testing whether the ICMP packet has a response or no response after timeout ; In the case of ARP, the error rate is also calculated by testing whether there is an ARP packet response. The obtained error rate returns to the power adjustment process shown in FIG. 3 for calculation.

归纳上述,本发明功率调节装置100及功率调节方法,可在保证传收质量的前提下,尽可能调降功率而达到省能的目的,可避免因降低功率导致数据传输错误的状况发生。To sum up the above, the power adjustment device 100 and the power adjustment method of the present invention can reduce the power as much as possible to save energy while ensuring the quality of transmission and reception, and can avoid data transmission errors caused by power reduction.

惟以上所述者,仅为本发明的较佳实施例而已,当不能以此限定本发明实施的范围,即大凡依本发明申请专利范围及发明说明内容所作的简单的等效变化与修饰,皆仍属本发明专利涵盖的范围内。But the above-mentioned person is only preferred embodiment of the present invention, when can not limit the scope of the present invention implementation with this, promptly all the simple equivalent changes and modifications that are done according to the patent scope of the present invention and the content of the description of the invention, All still belong to the scope that the patent of the present invention covers.

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 Communication power adjustment method and device Pending CN101778464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910002397A CN101778464A (en) 2009-01-12 2009-01-12 Communication power adjustment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910002397A CN101778464A (en) 2009-01-12 2009-01-12 Communication power adjustment method and device

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 Communication power adjustment method and device

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 惠普发展公司,有限责任合伙企业 Data transmission via data and power connections

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 惠普发展公司,有限责任合伙企业 Data transmission via data and power connections
CN108780336B (en) * 2016-03-25 2022-04-08 惠普发展公司,有限责任合伙企业 Data transmission via data and power connections

Similar Documents

Publication Publication Date Title
Raiciu et al. How hard can it be? designing and implementing a deployable multipath {TCP}
US7460472B2 (en) System and method for transmitting information in a communication network
US9882831B2 (en) Maximizing bandwidth utilization in networks with high latencies and packet drops using transmission control protocol
US20120057511A1 (en) Systems and methods for improved wireless interface aggregation
US11533656B2 (en) Method of traffic and congestion control for a network with quality of service
TWI449387B (en) Method and device for adjusting communicating power
JP2014509483A (en) Mechanisms to improve the performance of transmission control protocols in wireless networks
CN102843257A (en) Path estimating method and device
KR20170097129A (en) Data transmission method and apparatus
US20160285776A1 (en) Physical-layer signaling of flow control updates
CN101938400A (en) Method and device for network congestion control
CN1914872B (en) Session relay device, session relay method
US7293215B2 (en) Radio packet data transmission control system and method
CN101778464A (en) Communication power adjustment method and device
CN104104601A (en) Data transmission method, device and system
CN117278654A (en) Dynamic network adaptive modification method based on TCP-BPF
Go et al. Energy-efficient HTTP adaptive streaming with hybrid TCP/UDP over heterogeneous wireless networks
Liao et al. ECN-Based packet loss differentiation for adaptive TCP in LEO satellite networks
Wischik et al. Balancing resource pooling and equipoise in multipath transport
CN100481758C (en) Data package transmission rate determination method in TCP transmission control
CN118400334B (en) Optimization method for internet information transmission
EP4340321A1 (en) Data communication with transmission rate adjustment
TWI308012B (en) Method for adaptive estimation of retransmission timeout in wireless communication systems
Möller et al. Influence of power control and link-level retransmissions on wireless TCP
CN119449531A (en) A data communication gateway for improving the communication quality of serial ports and network ports

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