You are on page 1of 6

Modeling and Simulation of Ethernet Passive Optical Network (EPON) Experiment

Platform based on OPNET Modeler

Zhiwen Peng Pj Radcliffe


School of Electrical and Computer Engineering School of Electrical and Computer Engineering
RMIT University RMIT University
Melbourne, Australia Melbourne, Australia
E-mail: zhiwen.peng@rmit.edu.au E-mail: pjr@rmit.edu.au

Abstract—EPON is ready for commercial development in OPNET Modeler 16 and shows how classic published
broadband access networks due to the maturity of a number of algorithms can be modeled and compared using this tool.
enabling technologies, long distance and reduced maintenance. Our research focuses on modeling and simulating
Researchers have already created many different Dynamic existing algorithms of EPON MAC layer. The main purpose
Bandwidth Allocation (DBA) schemes for EPON in order to is to provide an optimal simulation platform compatible with
meet the increasing bandwidth requirements of multiservice most popular algorithms to use the upstream bandwidth
access. Currently it is difficult to evaluate and comparing these resources of the EPON MAC layer, reduce uplink packet
competing algorithms in a meaningful manner. Theoretical transmission delay, and ensure fairness between different
models are complex and often need simplifying assumptions
optical network units (ONUs).
and so simulation is the preferred option, but there is no
accepted framework to compare DBA algorithms. This paper
This paper is organized as follows. Section II introduces
proposes such a framework and details its implementation and the design principle of the EPON experiment platform and
use. The EPON models include the Optical Line Terminal describes the OPNET Modeler models for EPON including
(OLT) model, the Passive Optical Splitter (POS) model and the packet format, link model, variety of node models, and
Optical Network Units (ONUs) model all built in OPNET process models. Simulation parameters and performance
Modeler 16. The main processes of those models and main evaluation purpose are presented in Section III. Section IV
status of those processes are described in detail. These models concludes the paper followed by references.
are available as open source and will enable researchers to
quickly and easily compare their algorithms with those that II. PRINCIPLE OF DESIGN
already exist. Network simulation software tools include NS2,
OMNET++, and OPNET Modeler. Since 1986, OPNET
Keywords-OPNET; EPON; DBA; Source Modeler software has been developed rapidly and steadily as
a high technology network planning, simulation, and analysis
I. INTRODUCTION tool. The importance of OPNET in the communications,
Ethernet Passive Optical Network (EPON) will be one of defense, and computer networking is widely recognized. Our
the main technologies used to implement future broadband network simulation is based on OPNET Modeler 16, and the
access networks. Downstream bandwidth allocation is main steps of simulation will be presented as follows.
straightforward because one stream is multiplexed into Step 1: Packet frame design. Understanding the function
several streams, one for each user. Upstream access and and purpose of different control frame formats of multi-point
dynamic bandwidth allocation (DBA) are problematic, as control protocol (MPCP) [2] is a prerequisite for the packet
several users must compete for bandwidth; thus, DBA format simulation of EPON. Then, Packet Format tool was
algorithms that can optimize performance by reducing packet used to design different network packet frames (different
delay and loss are needed. Recent research on bandwidth DBA algorithms may have different formats, thus packets
allocation algorithms shows that the performance simulation can also be temporarily defined).
platform for EPON media access control (MAC) algorithms Step 2: Link model design. As described in [3], EPON
has not been standardized and released. Realizing the uplink and downlink transmission wavelengths are 1,310 and
different performances between these algorithms are 1,510 nm, respectively. To archive this, we may need two
becoming domestic and research hot spots. kinds of link models. In EPON, the transmission type for
Comparing the DBA algorithms in many different OLT and POS, POS and ONUs, or ONU and end users is
literatures is difficult as no author has released their full point-to-point (P2P) or point-to-multipoint (P2MP) link
simulation environment and in many cases, has not specified model, which can be set up by modifying OPNET existing
test conditions in enough detail for results to be duplicated. link models library such as point_to_point_link_adv.
A simulation platform that can be used by all authors to Step 3: The entire architecture of EPON design. As in
demonstrate their algorithm is needed to duplicate results. Fig.1, this research will implement the tree topology scenario,
This paper describes a novel simulation platform based on which is established by using the Project model.

___________________________________
978-1-61284-486-2/11/$26.00 ©2011 IEEE


Step 4: Node and process model design. EPON Project Preamble MAC_ID SFD
framework should include some ONUs nodes, many end (40bits) (16bits) (8bits)
Dst_add
user nodes, a POS node, and an OLT node. They can be (48bits)
installed separately by using Node Model option, and each Src_add
(48bits)
node consists of several state machine or process type
components that can be created by using Process Model. (16bits)
Opcode
Most state machines need their own programming code to (16bits)
implement different programs or algorithms. Timestamp
(32bits)
To obtain and analyze simulation results, using port
Configure Simulation pop-down menu to set a specific (16bits)
Flag
scenario simulation feature, the debugger finds the module (8bits)
written in error or is unreasonable in the EPON Project. Sync
(16bits)
After further testing, the result can be obtained, and the Pending
results can be observed by using Analysis Configuration tool. (8bits)
Pad
RD (272bits)
ONU1 E nd U sers FCS
(32bits)

Figure 3. The REGISTER frame

R ONU2 E nd U sers
O LT 3) REGISTER_REQ Frame
PO S … The structure of REGISTER_REQ frame can be seen in

Fig. 4.
Preamble MAC_ID SFD
ONUn E nd U sers (40bits) (16bits) (8bits)
Dst_add
(48bits)
Figure 1ˊThe EPON model used in OPNET simulations [5]
Src_add
(48bits)
A. Packet Format type
(16bits)
1) GATE Frame Opcode
The GATE frame can be established by OPNET as in Fig. (16bits)
Timestamp
2. The field of type is 8808 and the field of Opcode is 0002. (32bits)
Flag
(8bits)
Preamble MAC_ID SFD Pending
(40bits) (16bits) (8bits) (8bits)
Dst_add
(48bits) Pad
Src_add (304bits)
(48bits)
FCS
type
(16bits)
(32bits)
Opcode
(16bits)
Figure 4. The REGISTER_REQ frame
Timestamp
(32bits) Force_report Force_report Force_report Force_report 4) REGISTER_ACK Frame
Num of Grants Discovery grant 1 grant 2 grant 3 grant 4
(1bit) (1bit) (1bit) (1bit) (1bit) (1bit) The structure of REGISTER_ACK frame can be seen in
Start 1
(32bits)
Fig. 5.
Length 1
(16bits)
Preamble MAC_ID SFD
Start 2 (40bits) (16bits) (8bits)
(32bits) Dst_add
Length 2 (48bits)
(16bits) Src_add
Start 3 (48bits)
(32bits) type
Length 3 (16bits)
(16bits) Opcode
Start 4 (16bits)
(32bits) Timestamp
Length 4 Sync (32bits)
(16bits) (16bits) Flag
Pad (8bits)
(88bits) Port
FCS (16bits)
(32bits) Sync
(16bits)
Figure 2ˊ The GATE frame Pad
(280bits)
2) REGISTER Frame FCS
The structure of REGISTER frame can be seen from (32bits)

following Fig. 3. Figure 5. The REGISTER_ACK frame


5) REPORT Frame In this research, all values of bitmaps, pads, and reports
The part of REPORT frame can be seen in Fig. 6. are not set up at the beginning, thus their value will be
Preamble MAC_ID SFD
dynamically assigned inside the queuing model of ONUs.
(40bits) (16bits) (8bits)
Dst_add B. Link Model
(48bits)
Src_add
Inside the OPNET link model library, the three types of
(48bits) popular link models are P2P link, Bus_adv, and
type Ethernet_adv. In this research, link models will be P2P link
(16bits)
Opcode and Bus_adv, which will mainly be used to establish a
(16bits) connection between ONUs and end users. The simulation
Timestamp
(32bits)
parameters of link model are in Tables I and II.
Queue_num
(8bits) Table I. THE POINT_TO_POINT_LINK_BASE LINK MODEL
Bitmap01 Bitmap02 Bitmap03 Bitmap04 Bitmap05 Bitmap06 Bitmap07 Bitmap08 Data rate 1Gbps
(1bit) (1bit) (1bit) (1bit) (1bit) (1bit) (1bit) (1bit) Ecc model Ecc_zero_err
Report01 Report02 Report03 Report04 Report05 Report06 Report07 Report08
(1bit) (1bit) (1bit) (1bit) (1bit) (1bit) (1bit) (1bit) Error model Error_zero_err
Prodel model Dpt prodel
Tx model Dpt txdel
Bitmap121 Bitmap122 Bitmap123 Bitmap124 Bitmap125 Bitmap126 Bitmap127 Bitmap128
(1bit) (1bit) (1bit) (1bit) (1bit) (1bit) (1bit) (1bit) Delay 0.0 (temporarily)
Report121 Report122 Report123 Repor124 Report125 Report126 Report127 Report128 Packet Ethernet
(1bit) (1bit) (1bit) (1bit) (1bit) (1bit) (1bit) (1bit)

Figure 6. Part of the REPORT frame Table II. THE BUS_BASE LINK MODEL
Data rate 100Mbps
The REPORT frame design is more complex than others Ecc model Dbu_err
are, such as those described in [2][3]; because the data Error model Dbu_err
portion of the frame can be recycled up to 13 bytes, the
Prodel model Dbu prodel
maximum length of the Ethernet data frame should be 1,518
bytes. Including the Header and IGF parts, the total should Tx model Dbu txdel
be 1,538 bytes. Compared with other control frames, each Delay 0.0 (temporarily)
fields of the REPORT data portion, whatever its length or Packet Ethernet,
value, should not be set up initially. Following cases explain REGISTER,
some typical situations. REGISTER_ACK,
Case 1: Assuming only one queue (normally 8 queues REGISTER_REQ,
total) is occupied by data. For example, data inside queue 5 REPORT, GATE
are 1,538×13=19,994 bytes. Thus, the REPORT frame of
this case should be described as the value of number of C. The OLT Node Model
grants/flags should be 13, Report bitmap 0–12 should be The OLT node model can be seen from Fig. 7. The server
00001000, and the value of Queue 5 REPORT 0 should be node takes full responsibility for dealing with data, reports,
the sum of all data, which is no more than 1,518 bytes inside and grants. Sink is used to destroy incoming overflow
Queue 5. Then, the value of Queue 5 REPORT 1 should be packets to end the package lifetime, recovery, and release
the sum of all data that does not exceed 1,518×2 bytes inside their occupied resources because they will take up memory
Queue 5, and so on. The value of Queue 5 final REPORT 13 space. Many packets generated in the sample source must be
should be the sum of the entire length of Queue 5. destroyed in corresponding nodes and those resources should
Case 2: Queues 1–8 have data, and the data size of each be freed. At the same time, the sink node needs to complete
queue is less than 1,518 bytes. The REPORT format can be the analysis of the package.
described as the value of number of grants/flags is 1. The
value of REPORT bitmap is 11111111, thus REPORTs
Queue 1–8 will be sent to OLT for OLT to have the status of
each ONU.
Case 3: Queues 1–8 have data, but the data size inside
each queue is more than 1,518×3 bytes. The REPORT
format can be explained as the value of REPORT bitmap 0
and 1 should be 11111111, but the value of REPORT bitmap
2 is 11000000. Report 0 should include information of all
data less than 1,518 bytes inside Queues 1–8. Report 1 of
Queues 0–1 will report information of all data less than Figure 7. The OLT node model
1,518×2 bytes, and Report 1 of Queues 2–7 will have the Fig. 8 shows that when the system enters initialization, it
information of all data inside Queues 2–7. Report 2 will have directly enters the idle state and stays idle until packets
all information of data inside Queues 0 and 1.


interrupt. After packets arrive at the OLT, the process state
PK_Arrival will detect whether arrived packets are REPORT
frame, REGISTER_ACK frame, or REGISTER_REQ frame.
If it is REPORT frame, the packet will be sent to Report
process state to store the information on the queuing
condition of each ONU. The process state of Report will take
responsibility for detecting and identifying the MAC ID and
RRT[i] of each ONU before storing its information. If they
are REGISTER frames, the system will start the registration
process. The process state of Scheduling is trigged by Timer
(this approach is triggered by the remote). Bandwidth
allocation algorithms mostly work inside this processor,
where OLT will calculate the number of grants, the start time
Figure 9. The Timer process model
of each grant, the length of each grant, and so on. In this state,
OLT will set the start and end times of each cycle polling. D. The ONU Node Model
The ONU process model can be designed as in Fig. 11.
This process model solves two problems. One is when
receiving the data packet from different sample source; the
packet is placed into the appropriate priority queue inside the
buffer processor. If the buffer is not enough, low priority
packets may be deleted to give high priority data enough
room. Another is when ONU receives the grant message, the
data for the same priority is sent using the First In First Out
(FIFO) in accordance with highest to lowest priority data
transmission queue. From the description, ONU has nothing
to do with the bandwidth allocation; it simply accepts the slot
Figure 8. The process model of the OLTserver allocated to it, and sends upstream data and request. The
ONU node model can be seen from Fig. 10.
Table III.FUNCTION OF THE OLTSERVER PROCESS MODEL
Node Process Function
Init Initialize the
system
PK_Arrival Analyze the type of
incoming packet
Report Receive reports
OLTserver and analyze statistic
Scheduling Get grant message,
analysis, DBA
computation
Grant Finish granting and
then broadcasting
Idle Waiting Figure 10. The ONU node model

Timer process state model can be seen in Fig. 9, where


after initialization, the state becomes idle. Two reset process
states include MPCPreset and Reset_time. The MPCPreset
records 1 s time, when OLT receives packets from any ONU
in this 1s time, it will start interrupting, and then reset the
time of the MPCP reset state to 0. Reset_time is a record of
50 ms time. If ONU does not send packets to OLT during
this time, then OLT determines that this ONU has
disconnected or dropped. It will trigger Dereg interrupt to
deregister this ONU in the deregistering process model.
NEXT_TQ_interrupt is mainly used to count or determine
whether the value of Timer has reached the starting time for
the next cycle polling or the next timeslot starting point.
Figure 11. The process model of the ONU


Table IV. Function of ONU process models Table V. SIMULATION PARAMETERS
Node Process Function Parameters Description Value
Init Initialize the system R Bit rate 1Gbps
Buffer Queuing management RD Bit rate between ONU 100Mbps
Grant Deal with grant and end users
ONU message and send request N Number of ONUs 16
information Dround Round-Trip propagation 100
Idle Waiting delay
Tguard Guard time between 1
timeslots
E. Passive Optical Splitter Wmax Maximum transmission 15000Bytes
The passive optical splitter node model is shown in Fig. windows
12. The main function of POS is to acquire data and report Bmax Maximum buffer size of 10MB
information from each ONU, and then broadcast the grant each ONU
information and data to each ONU.
D Distance between OLT 10-20km
and ONUs
Tcycle Maximum cycle time 2ms
Spacket Packet size 64-1518
Bytes
Compared with static schemes and other fixed timeslot
DBA algorithms, the IPACT algorithm allocates timeslots to
each ONU according to the request needs of the appropriate
timeslot by each ONU, which can improve the bandwidth
utilization of the uplink. Compared with the static algorithm,
IPACT has the advantage on bandwidth utilization. The
network in Fig. 13 will be established to compare three cases.

Figure 12. The Passive Optical Splitter (POS) node model


Figure 13. The EPON simulation platform

A. Case 1
III. PERFORMANCE EVALUATION
The 16 OUNs and the sending packets are turned up
This section analyzes two classic bandwidth allocation through the EPON upstream. The bit rate of each ONU is set
algorithms of EPON uplink from the simulation perspective to 62.5 Mbps, which is consistent with network load =
based on our EPON experiment platform. As mentioned in (62.5×16/1,000) ×100% = 100%, thus all algorithms can
[8], the two kinds of popular bandwidth allocation reach bandwidth utilization limits. The time of registration
algorithms are IPACT [6] and static bandwidth allocation should be the polling cycle time, and the registration period
(SBA) [7] algorithms. Therefore, we will compare them in of the static algorithm is 1 ms. The maximum distance is set
this section to practice and improve our EPON experiment furthest from the system. For example, if the distance is 12
model. km, RTT is about 120 μs. The comparison results of the
static and IPACT algorithms are in Fig. 14.


Fig. 16 results shows that compared with static schemes,
IPACT greatly reduces losses in unused timeslot and
registration windows to improve the upstream bandwidth
utilization of EPON.
IV. CONCLUSION
OPNET Modeler does not provide a standard EPON
network library. To provide future compatible EPON
research simulation platform, some underlying models,
Figure 14. Comparison of average bandwidth utilization under case 1 which include a network scenario, the three-node model
(OLT, POS, and ONU), and relevant process models should
The difference between static and IPACT in the figure is be set up into the OPNET modeler library.
due to the presence of the registration period, but IPACT has This article describes a novel EPON model to provide the
more obvious advantages on bandwidth utilization. general experiment platform for EPON to measure
B. Case 2 bandwidth utilization, average packet delay, average cycle
time, average queue length of ONU, and other simulation
Only 10 OUNs are turned on and keep sending packets parameters. The performance of different DBA algorithms
through uplink to the OLT. Their bit rate is set to 100 Mbps. can be modeled and simulated. This model can be
The other six OUNs in the simulation time have nothing to compatible with most DBA algorithms. Thus, the entire
do. The same network offered load = 100% to reach EPON model does not need to be changed, and new
bandwidth utilization limits. The comparison results of the bandwidth allocation algorithms only need to become C/C++
static and IPACT algorithms are in Fig. 15. code, which should be placed into the relevant process model.
This novel model will contribute to OPNET Company as an
open source project to accelerate the development of the
EPON simulation platform.
This paper briefly describes the OPNET modeling
mechanism. Thus, a detailed description of the EPON
network modeling process was introduced. Based on the
established model and focusing on the EPON upstream,
channel access technology was simulated. For simplicity,
this paper only models, simulates, and compares the two
Figure 15. Comparison of average bandwidth utilization under case 2 most popular DBA [6] [7] algorithms. Simulation results
show that the performance of the IPACT algorithm is
In Fig. 14, the bandwidth utilization difference generated significantly higher than the performance of the SBA.
between the two algorithms is not only because of the
REFERENCES
registration period, but more importantly, because of
intrinsic characteristics of the static algorithm, which [1] IEEE 802.3ah, Ethernet in the First Mile Task Force, [Online].
Available: http://www.ieee802.org/3/efm/index.html
allocates timeslots not based on the actual requirements of
[2] J. Zheng and H. T. Mouftah, “Media access control for Ethernet
each ONU’s queue, except according to the own distribution passive optical networks: an overview,” IEEE Commun. Mag., vol.
of the number of activated ONUs. 43, no. 2, pp. 145-150, Feb. 2005.
C. Case 3 [3] IEEE P802.3av Task force, [Online]. Available:
http://www.ieee802.org/3/av/
Only 10 OUNs are turned on and keep sending packets [4] 10G EPON Study Group Public Articles, [Online]. Available:
through uplink to the OLT. Their bit rate is set to 72 Mbps. http://grouper.ieee.org/groups/802/3/av/index.html
The other six OUNs in the simulation time have nothing to [5] G. Kramer, B. Mukherjee, and G. Pesavento, “Ethernet PON
do. Network offered load is 72%. The comparison results of (ePON):Design and analysis of an optical access network,” Photon.
the static and IPACT algorithms are in Fig. 16. Netw. Commun., vol. 3, pp. 307–319, 2001.
[6] G. Kramer, B. Mukherjee, and G. Pesavento, “Interleaved polling
with adaptive cycle time (IPACT): a dynamic bandwidth distribution
scheme in an optical access network,” Photonic Network Commun.,
vol. 4, pp. 89–107, Jan. 2002.
[7] X. Bai, A. Shami, and C. Assi, "Statistical bandwidth multiplexing in
Ethernet passive optical networks,"in Proc. of IEEE GLOBECOM,
vol. 4, pp. 1920-1924, 2005.
[8] J. Zheng and H. T. Mouftah, “A survey of dynamic bandwidth
allocation algorithms for Ethernet Passive Optical Networks,” Opt.
Switching Networking, vol. 6, pp. 151-162, July 2009.
Figure 16. Comparison of average bandwidth utilization under case 3



You might also like