Category:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
0
1
2
3
4
5
6
7
8
9
Position:IcFull.com » IC Electronic information » Category: A

IC Electronic information

ARP protocol dynamic interactive simulation system

In Electronic Infomation Category: A | on April 18,2011

Protocol simulation teaching is to help students understand an important means of network protocols. The current agreement is discrete simulation, static simulation of a protocol that is separate and PXA255AOE400 datasheet and can not cooperate with the other protocols, and PXA255AOE400 price and protocol data that is static and PXA255AOE400 suppliers and can not change the input data with the dynamically changing monotone experimental results , blunt. Representative network simulation software are: foreign NS2, BosON Netsim, domestic "Network Protocol Simulation Teaching System", "Psender" system. NS2 to demonstrate the working process of agreement, however, no dynamic data content and protocol of cooperation between. Boson Netsim is mainly used for simulation of network engineering experiment, students are familiar with the use of network equipment and protocol, an agreement can not demonstrate the work process and the agreement between the collaborative process, its effect is only similar to an actual network engineering experiments. "Network Protocol Simulation Teaching System" to achieve an inter-communication between machines, but the data transmission entirely by manual operation, the experimental environment is complex, in order to better simulate the protocol, ignoring the practical application of the experimental environment and the consistency of the scene. "Psender" borrowed a system for "Computer Networking: Internet top-down approach and characteristics" of the case provides some of the online experiment, to achieve the data between sender and receiver communications and automatic speed matching, however, ignored the middle of the process of data communication, such as work flow switch can not be demonstrated, but also discrete. Therefore, there is a discrete simulation experiments, static. The network traffic is a continuous process that requires collaboration among protocols, and data also need to dynamically change.

ARP protocol function is the MAC address to IP address mapping, the core mechanism is the ARP cache table to achieve IP address and MAC address-one correspondence between the relations. ARP protocol of dynamic interaction simulation system is intended to facilitate all the time in learning ARP protocol to better understand the agreement theory, be able to understand the ARP request packets and response packets and send the entire process of packaging and truly demonstrates the switch for the ARP request packets and response mechanisms and packet forwarding cache table PC, revision process, help to enhance student learning.

1 System Design

ARP protocol dynamic interactive simulation system is composed of three computers (PC-A, PC-B, PC-C) Simulation of the LAN, the data in its internal forwarded, distributed simulation platform. Three machines were simulated ARP packet sender, switches, ARP packet the receiving end, by three machine interaction, dynamic simulation in the Ethernet environment, the ARP protocol entire workflow, including the ARP cache tables of queries and modified, ARP packet encapsulation, the switch port forwarding packets.

ARP protocol dynamic interactive simulation system topology shown in Figure 1.


Figure 1 ARP protocol dynamic interactive simulation platform topology

1.1 System Analysis

Purpose of the system ARP protocol in student learning through dynamic, realistic experiment to help students further understand the ARP protocol to enhance learning. To be able to quickly and successfully complete the experiment environment, the system has the following requirements: easy to deploy, easy to use, the effect of realism, portability and scalability. In response to these needs

system take the following strategy: all in the system developed under Windows XP using the relatively simple to deploy and Tomcat Mysql database server (PC-C), the ARP protocol will be abstracted from the work process directly on the website show, the learner can like browsing web pages using the system.

Client: seeking a simple, straightforward way to show the appropriate information; a dynamic effect, and gradually package; can interact with the server data. Therefore, the system design with dreamweaver8 page, using tables for layout package related information; use javascript. Control of dynamic effects and phase-package; use of Ajax technology for client and server interaction.

Server: development of language is relatively easy to learn, business logic centralized control, the use of hierarchical thinking, the basic fixed in the case of existing code to achieve functional expansion. Systems java complete server-side implementation of a logic control classes control the entire business logic; package a persistence layer framework byesql operating mysql database, can not write any SQL statement, the case for the MySQL database to complete the basic add, delete, change, investigation.

1.2 System Design

1.2.1 system use case diagram

Experiment, the students operate a PC-A, analog data transmission side; Student B operating PC-C, analog switches; Student C operating PC-B, analog data receiver.

Sender (PC-A): access to the local real IP and MAC address, use a JSP page, step by step simulation of ARP packet encapsulation process, the user can see the ARP request packets encapsulated the effect gradually. And then automatically to the "switch"

Send ARP request packet, and then automatically jump to the "ARP cache table" analog page and wait for "the switch" to forward the ARP response packet, the last modified "ARP cache table."

Switch (PC-C): JSP page with a simulated "port - MAC mapping table", is responsible for forwarding ARP packets. Waiting for the initial state, when the sending end (PC-A) sending the ARP request message, the automatic sending to the outside in addition to all port forwarding the request packet, automatically jump to the initial state after waiting for ARP response packet forwarding Man, when the response arrives after the packet for the sender (PC-A) group unicast packet.

Receiver (PC-B): access to the local real IP and MAC address, automatically jump to "ARP Cache Table" analog page and wait for "the switch" will forward the ARP request packet over the ARP cache table after the change , and then jump to their own pages ARP response packet, step by step package. Package is automatically completed to the "switch" to send ARP response packet.

Figure 2 shows the dynamic interaction ARP protocol simulation system use case diagram.


Figure 2 ARP protocol dynamic interactive simulation system use cases

1.2.2 system class diagram

ARP protocol dynamic interactive simulation system defines four classes:

ARP packet class ArpMessage: define properties and types of ARP packets; ARP cache table class ArpTable: ARP table field definitions and properties; port MAC mapping table class MacTable: define switch port and MAC address mapping machine; Computer PC: the definition of the machines IP address, MAC address and computer name.

Computer PC packet for the ARP and the ARP cache table class ArpMessage class ArpTable provides native MAC address and IP address, respectively, and the MAC address for the frame encapsulation query. MAC port mapping table for the class MacTable PC Computer MAC address and port to provide the corresponding relationship for data forwarding. Figure 3 shows the ARP protocol

dynamic interactive simulation system class diagram.


Figure 3 ARP protocol dynamic interactive simulation system classes

1.2.3 System Flow Chart

For ease of use, ARP protocol dynamic interactive simulation system, the role of the three functions into one program. The program runs, the machine operator must select the required role, role function according to the allocation process in accordance with the definition of appropriate operation to complete. Figure 4 shows the ARP protocol dynamic interactive simulation system flow chart.


Figure 4 ARP protocol dynamic interactive simulation system processes

2 system to achieve

2.1 ByeSQL Framework Introduction

Java has long been popular, based on the framework of persistence jdbc package after another, like Hibernate, Ibatis, are all very powerful open source framework [8]. But these open source framework for the application of a number of small systems seem too complicated to configure a lot of trouble, and they did not really block out the framework for writing SQL statement:

Hibernate HQL statements need to write (and SQL like), Ibatis is a sql-Object mapping framework.

ARP protocol dynamic interactive simulation system, persistence layer encapsulates a frame byeSQL, will encapsulate the database operations, the use of a unified convention eliminates the need for a lot of trouble in the configuration file, using java reflection to complete entry and inter-entity class conversion. All of the logic control by java code to deal with. The framework can be applied to most small systems.

Persistence layer framework byeSQL mainly for MySQL database, some of the commonly used add, delete, change, search operations package together. The developers to do some small systems, do not go to realize concerned about the persistence layer (that is not concerned about the SQL code), as long as the driver package into byeSQL.jar and MySQL can use java code to operate the database and the configuration file is very simple just enter the database user name and password. However, using the framework byeSQL must comply with a contract, and table name must be the same entity class names, field names must be the same entity class properties, and the entity class must conform to JavaBean specifications. The framework is lightweight, can be used alone can also be used in combination with other frameworks.

2.2 the main framework for the function

Persistence layer framework encapsulates the system 10 database operation functions, internal functions associated with these operations together, we can complete the database, delete, change, search operation, without user intervention. Part of the operating functions of the function:

public STatic int selectCount (String beanName): found list the total number of table entries (corresponding to the bean passed in the table full name and return number of records);

public static List selectPage (String beanName, int start, int size): Paging query (passed in the form bean corresponding to the full name, the start position, the number of records per page, check back with the corresponding record object instance list);

public static List selectOne (String beanName, StringpkName, String pkValue): According to elect a specific field names and values ??of the required records (corresponding to the bean passed in the table full name, a specific field name, a specific field value and return equipment Charles has recorded a list of the corresponding object instance);

public static List selectAll (String beanName): find out all the records (the table corresponding to the bean passed in the full name, returns records containing the search object instance corresponding to the list);

public static List select (String beanName, String select):

Complex queries, such as the associated query and subqueries, etc. (corresponding to the bean passed in the table full name, SQL statement, returns records containing the search object instance corresponding to the list.)

3 Conclusion

ARP protocol of the system to achieve a dynamic interactive simulation, the ARP protocol to complete the entire work process simulation to achieve, through the dynamic interaction that allows learners to more easily learn and master the ARP protocol. System by encapsulating a persistence framework to achieve the basic additions and deletions for the MySQL database operations, so that users do not need to write SQL statements, can be operated using java code to MySQL database.

PXA255AOE400 datasheetPXA255AOE400 suppliersPXA255AOE400 Price

All right reserved:icfull.com © 2010-2016 Certificate