國立臺灣大學電機資訊學院資訊工程學系 碩士論文
Graduate Institute of Computer Science and Information Engineering College of Electrical Engineering and Computer Science
National Taiwan University Master Thesis
網路路由器節能演算法之研究
A Study on Energy Conservation Algorithm for Internet Router
蔡明峰 Ming-Feng Cai
指導教授:林風 博士 Advisor: Phone Lin, Ph.D.
中華民國一百零一年七月
Acknowledgement
兩年的碩士生涯轉眼間就過去了,又到了畢業的時候。首先我要感謝我的指導老 師,林風教授。在兩年的碩士生涯中,林風老師扮演著亦師亦友的角色,讓我學 到做研究的熱情以及態度,並且順利完成了這篇論文。 接著要特別感謝懷磊學 長,在整個研究過程中,讓我學習到許多做研究的觀念與方法,學長也在平日也 親立親為,讓我體會到全力以赴的研究態度。同時,我也非常感謝林一平教授、
Dr.Charlie Tai、以及顏在賢博士擔任學生的口試委員,並且對本篇論文提供許多
良好的建議,使得這篇論文更加完整。
接著我要感謝與我在這兩年一起奮鬥的實驗室同仁們。啟維學長、家朋學 長、有倫學長、亭佑學姊、厚鈞學長、思適學長、家綸學長、 宗哲學長、坤豐、
冠銘、振翔、百俊、彥婷、恩豪,與你們相處的點滴永難忘懷,在你們的陪伴 下,讓我十分快樂的度過這段研究的時光。
最後我要感謝我的家人,我的父母與弟弟,在這兩年中給我全力的支持與鼓 勵,讓我可以全心全意的認真讀書,順利地拿到碩士學位。
ii
Chinese Abstract
在即將來臨的M2M或是物聯網的世界,機器在特定時間內所產生大量的資料可能 對網際網路造成相當大的負擔。 為了確保大範圍的M2M通訊正常運作,佈置網際 網路路由器是必要的。這些網際網路路由器會造成相當大的能源消耗, 但是這些 路由器在大部分的時間都是閒置的。 為了替這些大量的路由器節省能源,在這篇 論文中我們提出分析模組去分析大量的M2M資料流量對路由器之影響。 我們提出 了路由器節能機制去對網際網路路由器做節能,並且利用模擬來探討此機制的效 能。
關 關
關 鍵鍵鍵 字字字(Keywords): 節 約 能 源(Energy Conservation)、 網 際 網 路 路 由 器(Internet Router)、M2M通訊(Machine to Machine Communications)
iv
English Abstract
In the coming Machine to Machine (M2M) or Internet of Things (IoT) world, bursty data from millions to trillions of machines may cause significant traffic in the existing Internet during certain time periods. To ensure such large-scale M2M communications, deployment of more Internet routers is required, thus increasing the energy consumption of Internet routers. However for most of the time, the routers are idle. To save energy for large numbers of routers, in this paper, we propose analytical models to analyze the effects of M2M traffic on router behavior. We then propose a Power Saving for Routers (PSR) mechanism that saves energy for Internet routers. Simulation experiments are con- ducted to investigate the performance of the proposed algorithm.
Keywords: Energy Conservation; Internet Router; Machine to Machine Communica- tions;
vi
Contents
Acknowledgement i
Chinese Abstract iii
English Abstract v
1 Introduction 1
2 The Architecture of A Router 7
3 The Power Saving for Routers (PSR) Mechanism 9
4 Analytical Models 13
4.1 Effects of T
s
on Power Saving Ratio . . . 134.2 Sleep Timer Selection . . . 15
4.3 Switch-On Overhead . . . 16
5 Performance Evaluation 19
viii
CONTENTS
5.1 Power Consumption of A Router . . . 195.2 Simulation Model . . . 20
5.3 Simulation Results . . . 23
6 Conclusion 29
Bibliography 31
List of Figures
1.1 The Internet architecture . . . 2
2.1 The architecture of a router . . . 7
3.1 State transition for an interface . . . 10
4.1 Timing diagram for busy and power saving periods . . . 14
5.1 The flowchart of the simulation model . . . 24
5.2 Effects of λ
∗
and λ on Rps
, Rr
, D, E[N ] . . . . 275.3 Effects of ∆ and λ on R
ps
, Rr
, D, E[N ] . . . . 28x
LIST OF FIGURES
List of Tables
5.1 The power consumption of chassis of Cisco 12000 Series Routers . . . . 20
5.2 The power consumption of Route Processor of Cisco 12000 Series Routers 20
5.3 The power consumption of Ethernet Line Cards of Cisco 12000 Series Routers . . . 21
5.4 An example of service provider edge router . . . 21
xii
LIST OF TABLES
Chapter 1
Introduction
In the coming Machine to Machine (M2M) or Internet of Things (IoT) world, bursty data from millions to trillions of machines may cause significant traffic in the existing Internet during certain time periods. To ensure such large-scale M2M communications, deployment of more Internet routers is required, thus increasing the energy consumption of Internet. The Internet energy conservation issue will be a big challenge for the coming M2M communications.
Several reports show that Information and communication technology (ICT) con- sumes a large amount of electricity and produces a great amount of CO
2
. According to the research [13], the CO2
generated by the worldwide ICT is approximately 2% of global manmade CO2
each year. Also, as reported in [3], the electricity consumed by ICT (without consumer electronics) is about 4.3% and 8% of the overall electricity consump- tion in European Union (EU-27) and the US, respectively. Along with the rapid growth of the Internet usage and data rates in the coming M2M world, the energy consumption2
CHAPTER 1. INTRODUCTION
Other WANs Core Router
Power Saving Router
LAN LAN
LAN Switch User LAN
Figure 1.1: The Internet architecture
will keep growing.
Figure 1.1 illustrates the existing general Internet architecture that will also offer transmission service for M2M. The core of the Internet consists of routers and switches.
Routers are used to provide direct communications between Local Area Networks (LANs), and mainly in charge of processing packets which are sent through WAN to the proper LAN based on the routing information in the packet header. When the packets reach the LAN, the switches are responsible to route the packets to the correct machine. Both switches and routers play major parts in Internet. Basically, routers and switches share the same architecture and functionalities. Most of power consumption is caused from routers and switches in Internet. In this paper, we focus on reducing power consumption of routers and thereby reduce the overall Internet power consumption.
3 Energy conservation for Internet has been noticed in the previous works. Chiaraviglio et al. [8] proposed heuristic algorithms to decide how to turn off some nodes and links in order to minimize the total power consumed by the network under the constraints of connectivity and Quality of Service (QoS). The decision is based on the knowledge of the entire network topology and the total traffic demand, which requires a centralized server to maintain the knowledge and incurs extra signaling overhead to the network to collect the knowledge. It costs a lot to deploy the algorithms in the existing Internet, which is considered impractical. Centralized algorithms are also proposed in the previous works [1][7]. In [1], the authors proposed a three-phases centralized algorithm. The links to be off are selected based on the network topology by a centralized node. In [7], the authors considered a real IP backbone network and the corresponding traffic profile to evaluate the energy cost of a router and then determine whether the router can be turned off. Similar to the work [8], deployment of the algorithms in [1][7] are costly and considered impractical in the existing Internet infrastructure.
Gupta et al. [11] proposed methods to shut down the interfaces of Ethernet LAN switches and and the hosts attached to the switches based on traffic arrivals and buffer occupancy of the switches, rather than the whole network conditions. In Gupta’s methods, interfaces move into the sleep mode when they are idle (i.e., the buffer is empty or under- utilized). All packet arrivals during the sleep time period are queued in a buffer The sleep time period for the interface is determined by estimating packet inter-arrival time, where a maximum sleep period t is computed such that the probability that more than n packets
4
CHAPTER 1. INTRODUCTION
power by employing the sleep mode. However, the proposed methods incur the following problems: The selection of the sleep time period is not given in this paper, and the buffer overflow may occur during the sleep time period (i.e., packets may lose). The QoS for packet delivery may degrade significantly.In the paper, we propose a mechanism, Power Saving for Router (PSR), to save the power consumption for routers. The PSR is run in a router, i.e., the PSR is a distributed mechanism without central control. In other words, it need not maintain the whole net- work information in PSR. The PSR is considered practical to be deployed in the Internet.
We consider the Internet consists of two kinds of routers, core router and power saving router. The core router is without implementation of PSR, meanwhile the power saving routers are implemented with the PSR mechanism. As mentioned previously, M2M traffic has the characteristic, burstness, i.e., packets from millions to trillions of machines may cause significant traffic in the existing Internet during certain time periods. In the PSR mechanism, an interface in a router can be in the active mode, the sleep mode, or the forbidden mode. In most of time, the power saving routers are in the sleep mode. When the packet traffic increases, the power saving routers move to the active mode to serve the bursty packet traffic. Besides the sleep mode and the active mode, we define the forbidden mode to prevent packet data lost during the sleep time period of a power saving router.
An algorithm is proposed to adjust the sleep time period based on analysis of the power saving router’s behavior. Details of the PSR mechanism will be elaborated in the next section.
The remainder of the thesis is organized as follows. In Section 2, we describe the
5 architecture of a router. In Section 3, we illustrate the behavior of a router and propose the Power Saving for Routers (PSR) mechanism. In Section 4, we propose the analytical models to investigate the performance of the PSR mechanism. In Section 5, we develop the simulation model for the PSR mechanism. Finally, we conclude this paper in Sec- tion 6.
6
CHAPTER 1. INTRODUCTION
Chapter 2
The Architecture of A Router
In this section, we illustrate the simplified architecture of a router [6]. As shown in Fig- ure 2.1, the major components of a router include a routing processor, a switch fabric, and one or more interfaces.
Routing Processor: The main functionalities of the routing processor (see Figure 2.1 (1)) include execution of the routing protocol (e.g., OSPF [12], RIP [5], and BGP [14]), routing table maintenance, and network management functions.
Rx Tx
Interface Interface
Router A Router B
Interface b Switch
Fabric Routing Processor
Switch Fabric Routing Processor
Rx Tx
Interface a 3.1 3.2 3
2 1
Figure 2.1: The architecture of a router
8
CHAPTER 2. THE ARCHITECTURE OF A ROUTER
Switching Fabric: The switching fabric (see Figure 2.1 (2)) connects the input ports (Rx; Figure 2.1 (3.1)) to the corresponding output ports (Tx; Figure 2.1 (3.2)) for the routing packets among interfaces within a router.Interface: An interface (see Figure 2.1 (3)) consists of an Rx and a Tx. The interfaces of two neighboring routers are connected through a bi-directional physical link.
• The Rx performs the following functions: (I) the physical layer functionality
to terminate an incoming physical link to a router; (II) the data link layer functionality with the data link layer functionality on the other side of the incoming link; (III) a lookup and forwarding function to forward a datagram into the switching fabric and to forward control packets (i.e., packets carrying routing protocol information) to the routing processor.
• The Tx stores the datagrams forwarded from the switching fabric in a buffer,
and then transmits the datagrams on the outgoing link. In other words, the Tx performs the data link and physical layer functionality with the Tx on the other side of the link. Let the buffer size of the Tx be B. Suppose that when a packet arrives at the Tx of an interface, there are m packets queued in the buffer, where m
≥ 0. If m = B, this packet arrival is dropped. Otherwise
(i.e., m < B), this packet arrival is stored in the buffer. The Tx can transmit the queued packets in FIFO order, which is an implementation issue and is not discussed in this paper.Chapter 3
The Power Saving for Routers (PSR) Mechanism
In this section, we propose the Power Saving for Routers (PSR) mechanism for energy saving of routers. The PSR mechanism is run in the power saving router, which is a distributed control mechanism.
We maintain a state machine (see Figure 3.1) consisting of three modes, active mode, sleep mode, and forbidden mode to control the behavior of an interface. We define a sleep timer (denoted by T
s
) for an interface. Consider the link between Interface a (of Router A) and Interface b (of Router B). The behavior of an interface in each mode is given below:Active Mode: The Tx and Rx of an interface are powered on to transmit and receive data, and they behave the same as the standard Tx and Rx.
Sleep Mode: The Txs and Rxs of two interfaces between a link are turned off, and the
10
CHAPTER 3. THE POWER SAVING FOR ROUTERS (PSR) MECHANISM
Sleep
(3)Forbidden
(4) Active(2) (1)
Figure 3.1: State transition for an interface
buffer of the Tx functions as well. In other words, in this mode, there is no packet exchange through a link. When a packet (to be transmitted) arrives at the Tx, it is stored in the buffer. In the sleep mode, if the number of buffered packets reaches
⌊∆B⌋, the interface moves into the forbidden mode (to be elaborated later), where
∆ is a threshold used to determine whether the link-off event should be reported to the router, and 0 < ∆
≤ 1. When an interface moves into the sleep mode, the sleep
timer Ts
is triggered. The interface is turned on when the Ts
timer expires.Note that in this mode, the network is not award of that the link is turned off. The packets are routed according to the original routing path. However, the end-to-end transmission delay may increase. With the sleep mode, we potentially save the energy consumption for an interface without affecting the routing in the Internet.
Forbidden Mode: When the number of buffered equals to
⌊∆B⌋, an interface moves
from the sleep mode to the forbidden mode. In this mode, the interface functions the same as that in the sleep mode. The difference is that the buffer of an Tx is turned off, the link-off event is reported to the router, packet arrivals to the interface11 are forwarded to the other interfaces in the router, and the routing processor informs other routers that the link-off event. Therefore, with the forbidden mode, our mech- anism can prevent the packets to be transmitted from being dropped during the time period when the Tx and Rx of an interface are turned off. In the forbidden mode, the routing in the Internet should be changed. That is, the routing path reestablishment procedure should be exercised, which can be done through for example, OSPF [12], RIP [5], and BGP [14] protocols. Extra signaling overhead is required for routing path reestablishment.
Note that as mentioned previously, our mechanism is implemented in the power sav- ing routers. Therefore, we can pre-config two routing tables for Internet with/without the power saving routers. Therefore signaling overhead is considered minor in our mechanism. In this paper, we do not touch on the issues related to the the routing path reestablishment, which can be found in the existing standards, e.g., OSPF [12], RIP [5], and BGP [14] protocols.
The transitions in the state machine (see Figure 3.1) are elaborated as follows:
Transition (1): The transition from the active mode to the sleep mode occurs when one of the following events is detected:
Event e 1: There is no packets stored in the buffer of a Tx (i.e., m = 0), and the Tx is idle. When this event is detected, the sleep timer T
s
for the interface is triggered, the Rx and Tx of the interface are turned off, the sleep-start message12
CHAPTER 3. THE POWER SAVING FOR ROUTERS (PSR) MECHANISM
the link. The Rx of Tx of the other interface are moved into the sleep mode.Event e 2: A sleep-start message is received by an interface.
Transition (2): The transition from the sleep mode to the active mode occurs only when the sleep timer T
s
expires.Transition (3): This transition from the sleep mode to the forbidden mode occurs when one of the following two events is detected:
Event e 3: m >
⌊∆B⌋. When this event is detected, the interface reports he link-
off event to the neigherbpring router and the interface on the other side of the link.Event e 4: The interface receives a link-off event.
Transition (4): The T
s
timer expires. The router informs its neighboring routers the link- on event.Note that in the PSR mechanism, the setup of the sleep timer T
s
may affect the perfor- mance of the router significantly. A longer Ts
implies that the interface sleep longer (i.e., more power are potentially saved), and it is more likely that the interface moves into the forbidden mode, and extra signaling is required for routing path re-establishment. How- ever, if we set Ts
shorter, the interface is more likely to switch between on and off with more power consumption. In the next we propose analytical models to study how to set up the sleep timer.Chapter 4
Analytical Models
In this section, we propose analytical models to study the three issues: First, we study how the power saving ratio is affected by the setup of the sleep time in Section 4.1. Second, we study how to set up the sleep timer based on the delay time in Section 4.2. Following by that, we study the switch-on overhead for the sleep period in Section 4.3.
4.1 Effects of T s on Power Saving Ratio
In this section, to derive the power saving ratio for an interface, we utilize the M/G/1 model with an exhaustive service and multiple vacation (E, MV) policy [16], denoted by “M/G/1 (E, MV)”. A sleep period is considered as a vacation in the M/G/1 (E, MV) model. An interface keeps on handling packets until the interface is idle (i.e., there is no packet in service and waiting in the buffer), and then takes vacations (switching to the sleep mode) as long as the interface is idle, implying that there is no idle period for the
14
CHAPTER 4. ANALYTICAL MODELS
T
b,1
s1,1
s1,2
s1,3
Tb,2
timeT
ps,1
s
2,1
s2,2
. . .
T
b,i
si,1
si,2
Tps,2
. . .
T
ps,i
Figure 4.1: Timing diagram for busy and power saving periods
interface. The interface returns to the active mode when there are packets waiting in the buffer at the end of each sleep period. For the sake of simplicity, we assume the buffer size is infinity, i.e., the interface is never moved to the forbidden mode.
Consider Interface a in Router A in Figure 2.1. Figure 4.1 illustrates the timing dia- gram for Interface a. Let T
b,i
denote the ith busy period during which Interface a is in the active mode, where i≥ 1. After T b,i
, Interface a switches to the sleep mode and stays in the sleep mode for a power saving period Tps,i
(consisting of multiple sleep periods si,1
,s i,2
, si,3
, ...). Because Interface a alternatively stays in the busy and power saving periods, from the alternating renewal process [15], the power saving ratio Rps
can be expressed byR ps
=E[T ps,i
]E[T b,i
] + E[Tps,i
].
Let P
ps
denote the steady-state probability that Interface a is in the sleep mode. Then we haveP ps
= limt →∞
Pr[Interface a is in the sleep mode at time t].Let λ denote the packet arrival rate from the switch fabric to Interface a, and µ denote the service rate of a Tx. According to the M/G/1 (E, MV) model [16], we have
P ps
= 1− λ
µ .
4.2. SLEEP TIMER SELECTION
15 Based on the key renewal theorem [15], we can know thatR ps
= Pps
= 1− λ
µ .
(4.1)From (4.1), it is clear that the power saving ratio R
ps
is independent of the length of theT s
timer.4.2 Sleep Timer Selection
In the PSR mechanism, a larger sleep timer T
s
results in longer packet delay time. In this section, we study how to set up the Ts
timer for PSR to avoid unreasonable packet delay time.Consider an interface of a router is in heavy traffic load and the PSR mechanism is not exercised. Let D
∗
denote the packet delay time when the interface is in heavy traffic load.Note that D
∗
is considered as the packet delay time constraint D∗
for the PSR mechanism to select the Ts
timer. As defined in Section 4.1, in the M/G/1 (E, MV) model, the service rate of a Tx is µ. Let E[S2
] denote the second moment of the service time distribution.Suppose that the packet arrival rate to the interface in heavy traffic load is λ
∗
. From [4], we haveD ∗
=λ ∗ E[S 2
] 2(1− λ µ ∗
) + 1µ .
(4.2)When the interface is in light traffic load, we can exercise the PSR mechanism to save router’s energy consumption. Let D denote the packet delay time when we exercise the
16
CHAPTER 4. ANALYTICAL MODELS
exponential distribution with mean E[Ts
] = 1/λs
. From the M/G/1 (E, MV) model [16], based on the packet arrival rate λ, we haveD = λE[S 2
] 2(1− λ µ
)+ 1µ
+ 1λ s .
(4.3)We select the T
s
timer to satisfy the following conditionD = D ∗ .
(4.4)Therefore, the packet delay time is bounded by D
∗
. From (4.2) and (4.3), we can rewrite (4.4) asλE[S 2
] 2(1− λ µ
)+ 1µ
+ 1λ s
=λ ∗ E[S 2
] 2(1− λ µ ∗
) + 1µ .
Then we have
λ s
= 2(1− λ µ ∗
)(1− λ µ
)λ ∗ E[S 2
](1− µ λ
)− λE[S 2
](1− λ µ ∗
).
(4.5)Based on the equation (4.5), we can use λ
∗
, λ, E[S2
], and µ to calculate the correspondingλ s
value (i.e., 1/E[Ts
]) and generate the length of the Ts
timer that satisfies the D = D∗
condition.4.3 Switch-On Overhead
In the PSR mechanism, we dynamically turn on and off the interfaces for the router to save its energy consumption. However, turning on an interface causes extra energy consump- tion for the router, called “switch-on overhead”. In this section, we propose an analytical model to derive the switch-on overhead for the PSR mechanism.
4.3. SWITCH-ON OVERHEAD
17 Consider an arbitrary interface in a router. During the power saving period Tps,i
(fori ≥ 1), let N denote the number of times for the router to switch the interface on. Based
on the M/G/1 (E, MV) model in Section 4.1, we can know that N is equal to the number of sleep periods during T
ps,i
. In other words, the Tps,i
period consists of N sleep periodss i,1
, si,2
, ..., si,N
. Let ta
denote the inter-packet arrival time. In the M/G/1 (E, MV) model, ta
is exponentially distributed with mean 1/λ. Suppose that the sleep period is a general distribution with mean 1/λs
, density function f (t), and Laplace transform f∗
(s).Consider a sleep period s
i,j
in Tps,i
(where 1≤ j ≤ N). Let α denote the probability that
there is no packet arrival in si,j
. Then we haveα = Pr[t a > s i,j
] =∫
∞
t a =0
∫
t a
s i,j =0
f (s i,j
)λe−λt a ds i,j dt a
= λ[
f ∗
(s)s
]
s=λ
= f
∗
(λ). (4.6)Applying (4.6), we have the switch-on overhead as
E[N ] =
∑
∞ i=1
i Pr[N = i] =
∑
∞ i=1
iα i −1
(1− α) =
1 1− α
18
CHAPTER 4. ANALYTICAL MODELS
Chapter 5
Performance Evaluation
In this section, we investigate the performance of the PSR mechanism in terms of the power saving ratio R
ps
, the rerouting ratio Rr
, the packet delay time D, and the switch-on overhead E[N ]. In Section 5.1, we use an example to show the high energy consumption for an interface in a router. Then, in Section 5.2, we develop the simulation model based on discrete-event approach, which is widely used in many networking researches (e.g., [9][10]). The details of the simulation model is also described. Finally, in Section 5.3, the simulation results for the PSR mechanism is presented.5.1 Power Consumption of A Router
As measured by [2], Tables 5.1, 5.2, and 5.3 show the power consumption of modules of Cisco 12000 Series routers. In Table 5.1, we show the relationship between the average power consumption and the number of slots of a Cisco 12000 Series router. Obviously,
20
CHAPTER 5. PERFORMANCE EVALUATION
Table 5.1: The power consumption of chassis of Cisco 12000 Series Routers
Chassis power Cisco 12000 Series Cisco 12000 Series Cisco 12000 Series Cisco 12000 Series
consumption 16-Slot Chassis 10-Slot Chassis Series 6-Slot Chassis Series 4-Slot Chassis
Average Power (watt) 4212 watts 2430 watts 1630 watts 1280 watts
Table 5.2: The power consumption of Route Processor of Cisco 12000 Series Routers Route Processor 12000 Series Performance 12000 Series Performance
power consumption Route Processor-1 Route Processor-2
Average Power (watt) 60 watts 60 watts
we can see that more slots for a router consume more energy. In Table 5.2, we show that different types of processors for a Cisco 12000 Series router have the same energy consumption. Note that there are only two types of processors can be used for the Cisco 12000 Series router. In Table 5.3, we show the energy consumption of the two models for the Cisco 12000 Series router, i.e., 4-Port GE ISE Line Card (1 Gbps) and 1-Port GE ISE Line Card (10 Gbps). Table 5.4 shows an example of the energy consumption of different components for the service provider edge router. In Table 5.4, we can find that the Ethernet Line Cards consumes 34.5% of power of a router. Therefore, we can save much energy by switch the interface to the sleep or forbidden mode.
5.2 Simulation Model
In the simulation model, we simulate the operation behavior of an interface of a router.
We define three types of events listed as follows:
5.2. SIMULATION MODEL
21Table 5.3: The power consumption of Ethernet Line Cards of Cisco 12000 Series Routers Ethernet Line Cards 4-Port GE ISE Line 1-Port GE ISE Line
power consumption Card (1 Gbps) Card (10 Gbps)
Average Power (watt) 106 watts 196 watts
Table 5.4: An example of service provider edge router
Chassis Route Processor Ethernet Line Cards
Product
Cisco 12000 12000 Series Performance 4-Port GE ISE 1-Port 10-GE ISE
Series-10 slots Route Processor-1 Line Card (1 Gbps) Line Card (10 Gbps)
Count 1 1 5 4
Power (watt) 2430 watts 60 watts 106 watts 196 watts
22
CHAPTER 5. PERFORMANCE EVALUATION
• The PACKET ARRIVAL event represents that a packet arrives to the interface.
• The PACKET DEPARTURE event represents that a packet departs from the in-
terface.• The SLEEP END event represents that a sleep period terminates.
The following variables are used in the simulation model:
• V acation stores the mode of an interface.
• L stores the number of packets in the buffer.
The following counters are used in our simulation model to calculate the output measures:
• N counts the total number of PACKET ARRIVAL events.
• N departure counts the total number of packet departures.
• N rerouting counts the total number of rerouting packets.
• Service time counts the total time of serving packets.
• V acation time counts the total time of the interface in the sleep mode or forbidden
mode.• Delay time counts the total packet delay time.
• N s counts the total number of sleep periods.
• N ps counts the total number of power saving periods.
5.3. SIMULATION RESULTS
23 We repeat the simulation runs until N exceeds 5,000,00 to ensure the stability of simulation results. Figure 5.1 illustrates the details of our simulation model. Then we can calculate four output measures for the PSR mechanism, including the sleeping time ratioR ps
, the rerouting ratio Rr
, the packet delay time D, and the switch-on overhead E[N ], as follows:R ps
=Service time
Service time + V acation time , R r
=N rerouting
N ,
D = Delay time N departure , E[N ] = N s
N ps .
5.3 Simulation Results
In this section, we investigate the performance for the PSR mechanism in terms of R
ps , R r , D, and E[N ].
The study for the input parameters λ
∗
, λ, and ∆ are given as follows.Effects of λ
∗
and λ on Rps , R r , D, E[N ]: Figure 5.2(a) plots R ps
as function of λ, where we set µ = 600, λ∗
= 300, 500, B = 10,∞, and ∆ = 0.3. Because the larger λ
results in more packets to be served, it is less likely that the interface is in the sleep mode. Therefore, we observe that Rps
decreases as λ increases in Figure 5.2(a). For the same λ and limited buffer size, in figure 5.2(a), we also study the effects of λ∗
on Rps , R r , D, E[N ]. Because the larger λ ∗
(larger D∗
and larger E[Ts
]) results in24
CHAPTER 5. PERFORMANCE EVALUATION
Start Set initial values, and the event list is set to empty;
Generate the PACKET_ARRIVAL event and inset it into event list;
Generate the first PACKET_ARRIVAL event;
Process the next event e from the event list;
e.type?
Generate the next PACKET_ARRIVAL event e
1; e
1.t = e.t + t
1;
N_departure = N_departure + 1;
Delay_time = Delay_time + (e.t - e.arrival);
N < 5,000,000? Yes End
PACKET_DEPARTURE PACKET_ARRIVAL
SLEEP_END
No L = Buffersize ?
Compute the output measures:
(1) R
ps= Service_time / ( Service_time + Vacation_time )
(2) R
r= N_rerouting / N (3) D = Delay_time / N_departur e (4) E [ N ] = N_s/ N_ps
N_rerouting = N_rerouting + 1;
Yes
Vacation = 0?
No
Generate the next
PACKET_DEPARTURE event e
2; e
2.t = e.t + t
2;
Service_time = Service_time + t
2; Yes
L = L + 1;
No L = 0?
Generate the next SLEEP_END event e
3; e
3.t = e.t + t
3;
Vacation_time = Vacation_time + t
3; Vacation = 1;
Yes No
Vacation = 0;
N_s = N_s + 1;
L = 0?
No N_ps = N_ps + 1; Yes
Figure 5.1: The flowchart of the simulation model
5.3. SIMULATION RESULTS
25 interface is in the sleep mode. Thus, we observe that Rps
increases as λ∗
increases in Figure 5.2(a).Figure 5.2(b) plots R
r
as function of λ, where we set µ = 600, λ∗
= 300, 500,B = 10, ∞, and ∆ = 0.3. Because the interface don’t turn to forbidden mode
when B =
∞, the R r
is equal to 0. Therefore, we observe that Rr
= 0 as λ increases when B =∞ in Figure 5.2(b). Because the larger λ ∗
(larger D∗
and larger E[Ts
]) results in more packets to be rerouted, we observe that Rr
increases as λ increases when B = 10 in Figure 5.2(b).Figure 5.2(c) plots D as function of λ, where we set µ = 600, λ
∗
= 300, 500,B = 10, ∞, and ∆ = 0.3. Because the larger λ ∗
results in less packets to be served, we observe that D decreases as λ increases when B = 10 in Figure 5.2(c). For the same λ, we observe that D decreases as λ increases as λ∗
increases in Figure 5.2(c).Figure 5.2(d) plots E[N ] as function of λ, where we set µ = 600, λ
∗
= 300, 500,B = 10, ∞, and ∆ = 0.3. The larger λ results in the small sleep timer to be set
(larger λ
s
). In the simulation results, we use the exponentially distribution sleep period with mean 1/λs
. From (4.7), we can get E[N ] = 1 +λ λ s
. We can get the result that t E[N ] decreases in smaller λ and E[N ] increases in larger λ as λ increases when λ∗
= 300. For the same λ, because the larger λ∗
(larger D∗
) result in the larger sleep timer to be set. Figure 5.2(d) shows the results that E[N ] decreases as λ increases when λ∗
= 500. Figure 5.2(d) shows the results that E[N ] decreases when λ is small and E[N ] increases when λ is large as λ increases when λ∗
= 300.26
CHAPTER 5. PERFORMANCE EVALUATION
larger λs
. Thus, we observe that E[N ] decreases as λ∗
increases in Figure 5.2(d).Effects of ∆ and λ on R
ps , R r , D, E[N ]: Figure 5.3(a) plots R ps
as function of λ, where we set µ = 600, λ∗
= 500, B = 10,∞, and ∆ = 0.3, 0.5. For the same λ,
because the smaller ∆ results in more packets should be reroute, it is more likely that the interface is in the sleep mode. Therefore, we observe that Rps
increases as∆ decreases in Figure 5.3(a).
Figure 5.3(b) plots R
r
as function of λ, where we set µ = 600, λ∗
= 500, B = 10,∞, and ∆ = 0.3, 0.5. For the same λ, because the smaller ∆ results in more
packets should be reroute, it is more likely that the interface is in the sleep mode.Therefore, we observe that R
r
increases as ∆ decreases in Figure 5.3(b).Figure 5.3(c) plots D as function of λ, where we set µ = 600, λ
∗
= 500, B = 10,∞, and ∆ = 0.3, 0.5. For the same λ, because the smaller ∆ results in the less
packets will be serviced. Therefore, we observe that D decreases as ∆ decreases in Figure 5.3(c).Figure 5.3(d) plots E[N ] as function of λ, where we set µ = 600, λ
∗
= 500,B = 10, ∞, and ∆ = 0.3, 0.5. Because the value of E[N] only depends on packets
whether arrive in sleep period or not, we observe that the ∆ not affect the value ofE[N ] in Figure 5.3(d).
5.3. SIMULATION RESULTS
2750 100 150 200 250
λ 55
60 65 70 75 80 85 90 95
R
ps(%)
◦ : λ
∗= 300, B = ∞ 4 : λ
∗= 500, B = ∞
× : λ
∗= 300, B = 10
: λ
∗= 500, B = 10
...
◦
◦
◦
◦
◦
...
4
4
4
4
4
...
. . ...
. ...
...
. . ...
...
.. ...
. ...
. ...
...
.. ...
...
. ...
...
...
.. ...
.. ...
...
...
.. ...
.. ...
...
...
...
. ...
. ...
. ...
...
×
×
×
×
×
. ...
...
. ...
...
... ...
... .. ...
... . ...
...
. ...
. ...
...
. . ...
...
.. ...
. . ...
. . ...
. ...
... ...
. ...
... ....
(a) Power saving ratio
50 100 150 200 250
λ 0
5 10 15 20 25 30
R
r(%)
◦: λ
∗= 300, B = ∞ 4: λ
∗= 500, B = ∞
× : λ
∗= 300, B = 10
: λ
∗= 500, B = 10
...
◦
...◦
...◦
...◦
...◦
....4
.................................................................4 4 4 4
...
× ×
×
×
×
...
...
... . ...
. ...
... ...
. ...
... . ...
... ...
... . ...
... ...
.. ...
. ...
. ...
... .. ...
... . ...
. ...
. ...
. ...
. ...
. ...
.
(b) Rerouting ratio
50 100 150 200 250
λ 2
4 6 8 10
D (∗10
−3)
◦ : λ
∗= 300, B = ∞
4 : λ
∗= 500, B = ∞
×: λ
∗= 300, B = 10
: λ
∗= 500, B = 10
...
◦ ◦ ◦ ◦ ◦
...
4 4 4 4
4
...
× × × ×
×
...
. ...
...
. ...
. ...
. ...
... ...
. ...
...
(c) Packet delay time
50 100 150 200 250
λ 0
2 4 6 8 10 12 14 16
E[N ]
◦: λ
∗= 300, B = ∞ 4 : λ
∗= 500, B = ∞
× : λ
∗= 300, B = 10
: λ
∗= 500, B = 10
...
◦
◦
◦ ◦
◦
...
4
4 4 4 4
...
. .. ...
. ...
. ...
.. . ...
. .. ...
.. ...
...
...
.. . ...
...
. . ...
...
. ...
...
.
...
. ...
... . ...
... ...
...
×
×
× ×
×
... ...
... . ...
. ...
.
...
(d) Switch-on overhead
28
CHAPTER 5. PERFORMANCE EVALUATION
50 100 150 200 250
λ 55
60 65 70 75 80 85 90 95
R
ps(%)
•: ∆ = 0.5
: ∆ = 0.3
...
... ...
...
... ...
... .. ...
... ...
.. ...
. ...
.. ...
. . ...
. . ...
.. ...
. . ...
. . ...
. ...
. ...
... . ...
... ...
....
...
. .. ...
...
...
.. ...
...
. ...
...
.. ...
.. ...
...
...
...
.. ...
. ...
. . ...
.. ...
. ...
. ...
...
. ...
...
. . ...
.. ...
. ...
...
. . ...
•
•
•
•
•
(a) Power saving ratio
50 100 150 200 250
λ 0
5 10 15 20 25 30
R
r(%)
•: ∆ = 0.5
: ∆ = 0.3
...
... ...
. ...
. ...
... . ...
. ...
. ...
... .. ...
... . ...
. ...
... ...
.. ...
. ...
. ...
... .. ...
... . ...
...
. ...
...
. ...
. ...
.
... ...
. . ...
. . ...
...
... ...
. ...
•
•
•
•
•
(b) Rerouting ratio
50 100 150 200 250
λ 7
8 9 10
D (∗10
−3)
•: ∆ = 0.5
: ∆ = 0.3
. . ...
...
... . ...
... ...
...
.. ...
...
... . ...
...
...
. . ...
...
. ...
...
. . ...
...
. ...
. ...
. ...
. . ...
...
. .
...
. ...
...
. . ...
...
... . . ...
...
...
. ...
... . ...
. . ...
...
. ...
. ...
.. ...
. . ...
• •
•
•
•
(c) Packet delay time
50 100 150 200 250
λ 1
1.5 2 2.5 3 3.5 4
E [N ]
•: ∆ = 0.5
: ∆ = 0.3
.. ...
. . .. ...
. .. . ...
...
...
. . ...
. ...
.. . ...
.. .. ...
. .. . ...
...
... . ...
... . ...
. ...
. ...
...
. .. ...
.. . ...
. . .. ...
...
. ...
.. ...
. . ...
. .. ...
. .. ...
.. . ...
...
...
... . ...
. . ...
. . ...
...
. . ...
. . ...
. . ...
. ...
•
•
•
•
•
(d) Switch-on overhead
Figure 5.3: Effects of ∆ and λ on R
ps
, Rr
, D, E[N ]Chapter 6
Conclusion
We propose a mechanism to reduce energy consumption by taking advantage of sleep mode of routers. In our method, we turn the interface to sleep mode without learning the whole network information. Since the whole network information is not needed, the method is more practical and efficient. In our method, the router interface may be put into Active Mode, Sleep Mode, and Forbidden Mode based on buffer occupancy and packet delay time. Our mechanism causes reasonable delay by selecting proper sleep timer and can avoid buffer overflow when the interfaces are in Forbidden Mode. Besides, the router itself may also enter Sleep Mode when all of its interfaces are in Sleep Mode or Forbidden Mode and thus the router power may be saved further.
30
CHAPTER 6. CONCLUSION
Bibliograghy
[1] A. Cianfrani, V. Eramo, M. Listanti, M. Marazza, E. Vittorini. An Energy Saving Routing Algorithm for a Green OSPF Protocol. In IEEE INFOCOM Conference on
Computer Communications Workshops, 2010.
[2] Cisco. Cisco website. http://www.cisco.com.
[3] F. Mattern, T. Staake, and M. Weiss. ICT for Green - How Computers Can Help Us to Conserve Energy. In Proceedings of the 1st International Conference on
Energy-Efficient Computing and Networking, ACM, 2010.
[4] D. Gross and C. M. Harris. Fundamentals of Queueing Theory, 4th edition. Wiley Interscience.
[5] C. L. Hedrick. RFC 1058: Routing information protocol, June 1988.
[6] J. Kurose and K. Ross. Computer Networking: A Top-Down Approach Featuring
the Internet. Addison Wesley, 3rd edition, 2004.
[7] L. Chiaraviglio, M. Mellia, F. Neri. Energy-aware Backbone Networks: a Case Study. In IEEE ICC, 2009.
32
BIBLIOGRAGHY
[8] L. Chiaraviglio, M. Mellia, F. Neri. Reducing Power Consumption in BackboneNetworks. In IEEE ICC, 2009.
[9] Lin, P., and Tu, G.-H. An Improved GGSN Failure Restoration Mechanism for UMTS. ACM Wireless Networks, 12(1):91–103, February 2006.
[10] Lin, Y.-B., and Yang, S.-R. A Mobility Management Strategy for GPRS. IEEE
Transactions on Wireless Communications, 2(6):1178–1188, November 2003.
[11] M. Gupta, S. Singh. Using low power modes for energy savings in ethernet lans. In
IEEE Infocom, 2007.
[12] J. Moy. RFC 2328: OSPF version 2, April 1998.
[13] Global Action Plan.
An Inefficient Truth.
Global Action Plan Report, http://globalactionplan.org.uk, December 2007.[14] Y. Rekhter and T. Li. RFC 1771: A Border Gateway Protocol 4 (BGP-4), March 1995.
[15] Sheldon M. Ross. Introduction to Probability Models. Academic Press, 2006.
[16] N. Tian and G. Zhang.
Vacation Queueing Models-Theory and Applications.
Springer-Verlag, 2006.