CN101500252B - Route setting method - Google Patents

Route setting method Download PDF

Info

Publication number
CN101500252B
CN101500252B CN2008100002603A CN200810000260A CN101500252B CN 101500252 B CN101500252 B CN 101500252B CN 2008100002603 A CN2008100002603 A CN 2008100002603A CN 200810000260 A CN200810000260 A CN 200810000260A CN 101500252 B CN101500252 B CN 101500252B
Authority
CN
China
Prior art keywords
address
gprs
gateway
personal computer
route
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.)
Active
Application number
CN2008100002603A
Other languages
Chinese (zh)
Other versions
CN101500252A (en
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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008100002603A priority Critical patent/CN101500252B/en
Publication of CN101500252A publication Critical patent/CN101500252A/en
Application granted granted Critical
Publication of CN101500252B publication Critical patent/CN101500252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a route setting method which comprises the following steps: step 1. a GPRS application destination address is set on a GPRS service support node for one mobile terminal or a plurality of mobile terminals; step 2. when being connected to a network by the mobile terminal or anyone of the plurality of the mobile terminals, a personal computer generates a modem corresponding to any mobile terminal; step 3. the personal computer acquires the IP address of the modem and the address of a gateway thereof from the network; and step 4. a route which reaches the GPRS application destination address corresponding to any mobile terminal by the gateway address from the IP address is added into a route table. The method can be used as efficient means for high-capacity test of the GPRS function of mobile system equipment and also can be used as means of unsupervised and automatic testing. The method not only can lower requirements on PC quantity efficiently, but also can reduce the requirements on test space, and simultaneously reduces human cost and facilitates test management.

Description

Path establishing method
Technical field
The present invention relates to the communications field, relate in particular to a kind of path establishing method.
Background technology
One type of important application in the wireless mobile communications promptly is GPRS (General Packet Radio Service is called for short a GPRS) business of networking.This application is divided into two kinds of forms basically; A kind of is directly on portable terminal, and the support function of utilizing portable terminal to provide is through inserting the access point of mobile operator; Be connected to specific service network; Be that common WAP uses, that is " WAP (Wireless ApplicationProtocol is called for short WAP) "; Another kind of form is by PC computer (personal computer); Portable terminal is connected to the PC computer through data wire or bluetooth; Portable terminal is as the role of a modulator-demodulator, and the PC computer expert crosses this modulator-demodulator, the Internet (Internet) that dial-up access is commonly used.
In some special industries or special enterprises application; Usually need a large amount of the use in the preceding text to mention second kind of access way; Communications equipment manufacturer for example; For the GPRS support function of testing authentication communication system equipment, tend in the Test Application environment of oneself, build the easy GPRS applied environment of a cover, as shown in Figure 1.The tester carries out the operational trials of the shape such as the second way by portable terminal and PC computer, and test process can be manual control, also can be procedure auto-control, and what this method was described promptly is a kind of route control method of controlling automatically in the test process.
Second kind of application mode mentioned above has following several kinds of concrete manifestation forms usually:
Method one: for PC computer of mobile terminal configuration that each one participates in test,, on every PC, initiate gprs service respectively, independently test mutually according to the second way.Application scenarios is as shown in Figure 2.
The shortcoming of aforesaid way is that this method of testing is excessive to the consumption of resource; Mobile device manufacturers is when the GPRS of testing authentication system equipment function; Often need simulate the situation in the actual commercial environment as much as possible, promptly a large number of users carries out gprs service simultaneously, for simulation reality is as much as possible used scene; Just need to use portable terminal as much as possible during testing authentication; Supporting PC computer quantity is also proposed corresponding demand thereupon, simultaneously test environment space and tester's quantity etc. has all been proposed requirement, be unfavorable for the production cost control of equipment manufacturers.
Method two: present PC computer expanding peripherals interface capability is very strong, and a PC often can link 4 ones even 6 portable terminals simultaneously, through the interface of external expansion, and the mobile device of link even possibly reach 127 ones, i.e. the upper limit of USB2.0 standard simultaneously.On the PC computer, control these portable terminals respectively separately by the tester during test and initiate gprs services.
The shortcoming of aforesaid way is when utilizing that wherein a portable terminal is set up a dial-up connection, will generate a mutually different network adapter automatically in the PC computer system, and they possess separately IP address and default gateway; And simultaneously the default gateway of this PC computer is revised as that gateway of nearest generation; And in static routing table, having increased with this gateway is a default route of outlet, if when this PC only connects a portable terminal, though to not influence of test; All GPRS packets all are to send through newly-generated route; But owing to increased a default route newly, and default gateway has been modified, and should also not flow through from the packet that this route flow is crossed originally; If finally this data packet arrival address can't arrive, then can cause this Data Source host's network application failure; More abominable situation is; Set up M dial-up connection when utilizing M portion portable terminal successively; And initiate M gprs service successively when using; Each gprs service application data bag can both be launched through corresponding mobile terminal respectively during the original test case of tester, but owing to be similar to just now and mentioned, the default route that all gprs service packets all will be introduced when newly setting up dial-up connection for the last time; Cause the packet of all M gprs service finally all to be launched, just mean that also test case can't effectively carry out from last portable terminal.
Summary of the invention
One or more problems in view of the above the present invention proposes a kind of routing table method to set up.The present invention can on-the-fly modify static routing table; Thereby make when above-mentioned M portion portable terminal is initiated gprs service simultaneously on same PC; What can be independent of each other utilizes route separately to launch through portable terminal separately respectively these GPRS packets; To help the tester in manual test or automatic testing process, only using a PC computer is that may command multi-section portable terminal carries out effective gprs service test.
According to the present invention, a kind of routing table method to set up is provided, may further comprise the steps: step 1 is provided with GPRS application purpose address for one or more portable terminals on Serving GPRS Support Node; Step 2, through any one when personal computer is connected to network in one or more portable terminals, personal computer all generates the modulator-demodulator corresponding to any portable terminal; Step 3, personal computer obtains the IP address of modulator-demodulator and the gateway address of gateway thereof from network; And step 4, secondary IP address is added in the routing table corresponding to the route of the GPRS application purpose address of any portable terminal via gateway address arrival.
Step 3 is further comprising the steps of: personal computer is a gateway address with its default gateway address modification, and the increase secondary IP address sets out via the default route of gateway address in routing table.
Step 4 is further comprising the steps of: the deletion secondary IP address is via the default route of gateway address from routing table.
In the method, one or more portable terminals are connected through wired or wireless mode with personal computer.
Through the present invention; Dynamically revise static routing table; Thereby make when above-mentioned M portion portable terminal is initiated gprs service simultaneously on same PC; What can be independent of each other utilizes route separately to launch through portable terminal separately respectively these GPRS packets, and to help the tester in manual test or automatic testing process, only using a PC computer is that may command multi-section portable terminal carries out effective gprs service test.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is a GPRS applied environment sketch map;
Fig. 2 is a traditional G PRS test environment sketch map;
Fig. 3 is the flow chart of routing table method to set up according to an embodiment of the invention;
Fig. 4 is the flow chart that on-the-fly modifies static routing table according to an embodiment of the invention;
Fig. 5 is the sketch map that routing table bound of parameter face is set according to an embodiment of the invention; And
Fig. 6 is the sketch map of application scenarios according to an embodiment of the invention.
Embodiment
With reference to accompanying drawing, specify embodiment of the present invention below.
Fig. 3 is the flow chart of routing table method to set up according to an embodiment of the invention.As shown in Figure 3, this method may further comprise the steps:
Step S302, (Serving GPRS support node SGSN) upward is provided with GPRS application purpose address for one or more portable terminals at Serving GPRS Support Node;
Step S304, through any one when personal computer is connected to network in one or more portable terminals, personal computer all generates the modulator-demodulator corresponding to this portable terminal;
Step S306, personal computer obtains the IP address of modulator-demodulator and the gateway address of gateway thereof from network; And
Step S308 adds secondary IP address in the routing table to corresponding to the route of the GPRS application purpose address of this portable terminal via gateway address arrival.
Step S306 is further comprising the steps of: personal computer is a gateway address with its default gateway address modification, and the increase secondary IP address sets out via the default route of gateway address in routing table.
Step S308 is further comprising the steps of: the deletion secondary IP address is via the default route of gateway address from routing table.
Wherein, each in one or more portable terminals all is connected through wired or wireless mode with personal computer.
In an embodiment according to the present invention, on-the-fly modifying static routing table flows to control data.In order to reach above purpose, this method may further comprise the steps:
Step 1 is the pre-configured GPRS application purpose address of each portable terminal on SGSN, like 192.168.51.108,192.168.51.109,192.168.51.110 etc.;
Step 2 is obtained IP address, the gateway address (like 172.19.1.143) of this dial-up connection immediately after each dial-up connection is set up;
Step 3 is revised routing table up-to-date in the PC system immediately, increases a route from the 172.19.1.143 new gateway to the 192.168.51.108 destination address;
Step 4, the route of the acquiescence of 172.19.1.143 that deletion is new to be introduced from the address;
Step 5, repeating step two, three, four, the destination address when wherein at every turn increasing route is all different; And
Step 6 after M portion portable terminal has all been set up dialing, is initiated the gprs service test according to above-mentioned different purpose address respectively successively.
Below being divided into two kinds of test and management methods describes according to embodiments of the invention.
Dual mode pre-conditioned identical; All need in SGSN, to bind abundant IP address in advance for gprs service application server primary ip address; Like 192.168.51.108,192.168.51.109,192.168.51.110; The data connected mode of portable terminal and PC can be that data wire can be a bluetooth also, and needs the corresponding driving program so that show the modulator-demodulator that penetrates respective numbers at PC.
First kind, control routing table manually.
Step 1 is utilized the PC system platform, selects one of them modulator-demodulator to set up dial-up connection.
Open command mode; The network equipments configuration situation that analytical system is current; On the windows platform (hereinafter is an example with the windows platform all), can input command ipconfig/all, the effect of this order is to enumerate out the current network configuration cases of system; Note IP address, the gateway address of a network adapter that increases newly, like 172.19.1.143.
Input command: route ADD 192.168.51.108 mask 255.255.255.255172.19.1.143.
--the effect of this order is manually to revise routing table by force, is that the path of 192.168.51.108 all is set to via gateway 172.19.1.143 with all destination addresses.
Input command: route Delete 0.0.0.0 mask 0.0.0.0172.19.1.143.
--the effect of this order is the manual routing table of revising by force, points to the system default route of gateway 172.19.1.143 in the deletion routing table, goes out and has arrived at not the destination and caused network failure from this default route with the data that prevent other net end.
Step 2 selects the idle modulator-demodulator of another one to set up dial-up connection.
Open command mode, note IP, the gateway of a network adapter that increases newly, like 172.19.1.130.
Input command: route ADD 192.168.51.109 mask 255.255.255.255172.19.1.130.
Input command: route Delete 0.0.0.0 mask 0.0.0.0 172.19.1.130.
Step 3, the same as stated above dial-up connection of accomplishing the residue portable terminal.
Step 4 is initiated the gprs service that destination address is 192.168.51.108.
Step 5 is initiated the gprs service that destination address is 192.168.51.109.
……
Second kind, programming automation control routing table realizes unmanned guard's test.
Through writing the application software on the PC platform, the work of free hand modification that relates in the first method and artificial judgment analysis is realized with code, be dissolved in the automatic test Control Software and go, thereby realize unattended automatic test target.Concrete performing step is following:
Step 1, all testing mobile phones that needs are used are connected on the same computer through data wire, and system discerns and generates the modulator-demodulator of corresponding data automatically.
Step 2 starts the automatic testing software instrument, and the software Auto-Sensing is also enumerated out these modulator-demodulators.
Step 3 when increasing a GPRS test assignment, is chosen a modulator-demodulator, and IP address, destination is set in program interface, and the automatic Control Parameter during some other unmanned guard is as shown in Figure 5.
Step 4 is preserved parameter, starts this GPRS task, and program promptly begins according to parameter is set, and under unmanned guard's pattern, carries out the gprs service test automatically.
Step 5, repeating step three and step 4 start the corresponding GPRS test assignment of other mobile phone.
Code performing step in the above-mentioned workflow is shown in Fig. 4 flow chart.
Fig. 6 is the sketch map of application scenarios according to an embodiment of the invention.
Through the present invention; Dynamically revise static routing table; Thereby make when M portion portable terminal is initiated gprs service simultaneously on same PC; What can be independent of each other utilizes route separately to launch through portable terminal separately respectively these GPRS packets, and to help the tester in manual test or automatic testing process, only using a PC computer is that may command multi-section portable terminal carries out effective gprs service test.
Method of the present invention can be used as the high efficiency means of detecting large volume mobile system equipment GPRS function, also can use as the means that unmanned guard tests automatically.This method can effectively reduce the demand of PC quantity, has reduced the demand to the test space again, has reduced human cost simultaneously, has made things convenient for test and management.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. a path establishing method is characterized in that, may further comprise the steps:
Step 1 is provided with GPRS application purpose address for one or more portable terminals on Serving GPRS Support Node;
Step 2, through any one when personal computer is connected to network in said one or more portable terminals, said personal computer all generates the modulator-demodulator corresponding to said any portable terminal;
Step 3, said personal computer are obtained the gateway address of gateway under IP address and the said IP address of said modulator-demodulator from said network; And
Step 4 is with adding to the routing table corresponding to the route of the said GPRS application purpose address of said any portable terminal from said IP address via said gateway address arrival.
2. path establishing method according to claim 1 is characterized in that, said step 3 is further comprising the steps of:
Said personal computer is said gateway address with its default gateway address modification, and in said routing table, increases from said IP address the default route via said gateway address.
3. path establishing method according to claim 2 is characterized in that, said step 4 is further comprising the steps of:
From said routing table, delete said default route via said gateway address from said IP address.
4. according to each described path establishing method among the claim 1-3, it is characterized in that said one or more portable terminals are connected through wired or wireless mode with said personal computer.
CN2008100002603A 2008-01-30 2008-01-30 Route setting method Active CN101500252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100002603A CN101500252B (en) 2008-01-30 2008-01-30 Route setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100002603A CN101500252B (en) 2008-01-30 2008-01-30 Route setting method

Publications (2)

Publication Number Publication Date
CN101500252A CN101500252A (en) 2009-08-05
CN101500252B true CN101500252B (en) 2012-07-04

Family

ID=40947080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100002603A Active CN101500252B (en) 2008-01-30 2008-01-30 Route setting method

Country Status (1)

Country Link
CN (1) CN101500252B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873359A (en) * 2012-12-14 2014-06-18 上海斐讯数据通信技术有限公司 Mobile device, wireless router, route configuration method and system
CN113973228A (en) * 2020-07-24 2022-01-25 艾锐势企业有限责任公司 Apparatus and method for channel change test of IPTV

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1388682A (en) * 2001-05-29 2003-01-01 华为技术有限公司 Transmition method and device backing up node data package in general grouped radio service
CN1631051A (en) * 2002-02-15 2005-06-22 瓦利迪塔斯公司 Device for testing packet-switched cellular radio network
CN1713750A (en) * 2004-06-25 2005-12-28 华为技术有限公司 Request of side-response movable table service of network in universal group wireless service
EP1389887B1 (en) * 2002-08-16 2006-06-07 Samsung Electronics Co., Ltd. Optimized packet routing method in mobile IPv6 supporting localized mobility management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1388682A (en) * 2001-05-29 2003-01-01 华为技术有限公司 Transmition method and device backing up node data package in general grouped radio service
CN1631051A (en) * 2002-02-15 2005-06-22 瓦利迪塔斯公司 Device for testing packet-switched cellular radio network
EP1389887B1 (en) * 2002-08-16 2006-06-07 Samsung Electronics Co., Ltd. Optimized packet routing method in mobile IPv6 supporting localized mobility management
CN1713750A (en) * 2004-06-25 2005-12-28 华为技术有限公司 Request of side-response movable table service of network in universal group wireless service

Also Published As

Publication number Publication date
CN101500252A (en) 2009-08-05

Similar Documents

Publication Publication Date Title
TWI244295B (en) Method and system for simulating multiple independent client devices in a wired or wireless network
JP5425463B2 (en) Wireless device product acceptance test apparatus, product acceptance test method, wireless communication device, and computer program
CN102420891B (en) Mobile terminal and test method, equipment and system thereof
CN110248358A (en) ESIM management method and system based on Internet of Things
CN101175333B (en) Method and device for reminding subscriber terminal of being in AP subdistrict
CN101442767B (en) Method and apparatus for controlling multiple user terminals to implement business automatically
EP1245124B1 (en) Method for configurating a base station network
CN108540674A (en) Automated testing method, device, computer equipment and storage medium
CN107087070A (en) IMS method for parameter configuration, system, mobile terminal and readable storage medium storing program for executing
CN101247276B (en) large traffic simulation test tool and method for WiMAX system
CN102355688A (en) Equipment testing system and method
CN105491081A (en) Method for forwarding of internal flow of application in mobile intelligent terminal
CN104967732A (en) Information processing method and electronic device
CN102098702A (en) Performance testing system, method and equipment
CN101272293B (en) Network testing method and device
CN101500252B (en) Route setting method
CN102256241A (en) Method, server and intelligent card for acquiring bearer independent protocol (BIP) information of terminal
CN104092661A (en) Serial port communication method and apparatus of virtual machines
CN110519810A (en) Business relay switching method, terminal device, storage medium and device
CN106817742A (en) A kind of method that wireless WiFi double working modes are realized on Android
CN101437314B (en) Method for automatically using network document, mobile terminal and customer equipment
CN101795478B (en) Method for data bypass, network side equipment and access gateway
CN106131768A (en) Method, system and the platform of a kind of roaming number air card-writing
CN115361280B (en) Method, device, equipment and storage medium for invoking calculation power network
CN101207525A (en) System and apparatus for testing wireless network controller signaling processing module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant