CN103560927A - Generating method for testing reverse flow through CGN equipment and testing equipment - Google Patents

Generating method for testing reverse flow through CGN equipment and testing equipment Download PDF

Info

Publication number
CN103560927A
CN103560927A CN201310500026.8A CN201310500026A CN103560927A CN 103560927 A CN103560927 A CN 103560927A CN 201310500026 A CN201310500026 A CN 201310500026A CN 103560927 A CN103560927 A CN 103560927A
Authority
CN
China
Prior art keywords
address
equipment
public network
cgn
cgn equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310500026.8A
Other languages
Chinese (zh)
Inventor
冀哲
王彬
周广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201310500026.8A priority Critical patent/CN103560927A/en
Publication of CN103560927A publication Critical patent/CN103560927A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a generating method for testing reverse flow through CGN equipment and testing equipment. The method comprises the steps that forward flow is sent to the CGN equipment, and the forward flow comprises a purpose IP address, a purpose port number and a protocol type; five-element set information which is obtained from the CGN equipment comprises a public network IP address, a public network port number, the purpose IP address, the purpose port number and the protocol type; the public network IP address and the public network port number are generated through network address conversion after the forward flow is received by the CGN equipment; the public network IP address and the public network port number contained in the five-element set information serve as the purpose IP address and the purpose port number in the reverse flow respectively, the purpose IP address and the purpose port number contained in the five-element set information serve as a source IP address and a source port number in the reverse flow respectively, and the reverse flow is generated. The generating method is based on the five-element set function of the CGN equipment, the reverse flow used for test is accurately generated by obtaining the five-element set information stored in the CGN equipment, and therefore performance test of the CGN equipment is achieved.

Description

Generation method and the testing equipment of CGN testing of equipment reverse flow
Technical field
The present invention relates to wireless communication technology, relate in particular to a kind of generation method and testing equipment of CGN testing of equipment reverse flow.
Background technology
Along with the fast development of Internet technology, broadband user's quantity is increased sharply, and IPv4 has closed on exhaustion in publicly-owned address.And need a long-term process to the transition evolution of IPv6, and for solving the problem of shortage of ip address, the equal Adoption Network address transition of most of operator and equipment vendors (Network Address Translation; Be called for short: NAT) technology, is used for alleviating the problem of the publicly-owned address shortage of IPv4.NAT can be translated into network address translation or Network address translators, briefly, NAT is used home address exactly in local area network (LAN) internal network, and when internal node will carry out communication with external network, just, at gateway, home address is replaced to public address, thus the externally upper normal use of public network (Internet), NAT can make many computer share I nternet connect, and this function has solved public ip address problem in short supply well.
CGN(Carrier-Grade NAT) equipment is carrier-class NAT device, when using CGN equipment, need to carry out performance test to it, during test, conventionally need to send two-way flow, and Way in and the Way out to CGN equipment sends test packet.Wherein, in the normal use procedure of CGN equipment, Way in refers to the direction of CGN equipment receiving data, and Way out refers to the direction that CGN equipment outwards sends data.In carrying out the process of performance test, the test data that testing equipment sends toward CGN equipment according to described Way in can be referred to as positive flow, and the test data that testing equipment sends toward CGN equipment according to the opposite direction of described Way out can be referred to as reverse flow.At common Broadband Remote Access Server (Broadband Remote Access Server; Be called for short BRAS) send on equipment bidirectional traffics test relatively simple because its twocouese flow does not need to carry out address transition.But it is just more difficult on CGN equipment, to send two-way flow, because testing equipment sends after test packet toward CGN equipment according to Way in, CGN equipment will be changed the address information in test packet, to form the packet sending to network side.But owing to cannot obtaining CGN equipment in prior art, carry out the address information after network address translation, also just cannot form reverse flow, therefore cannot realize the performance test to CGN equipment.
Summary of the invention
For the defect of prior art, the invention provides a kind of generation method and testing equipment of CGN testing of equipment reverse flow, accurately to generate the reverse flow for testing.
A kind of generation method that the invention provides CGN testing of equipment reverse flow, comprising:
Way in to CGN equipment sends positive flow, and described positive flow comprises object IP address, destination slogan and protocol type;
From described CGN equipment, obtain the five-tuple information being stored in five-tuple list item, described five-tuple information comprises public network IP address, public network port numbers, described object IP address, described destination slogan and described protocol type; Wherein said public network IP address and described public network port numbers are that described CGN equipment carries out network address translation and generates after receiving described positive flow;
The described public network IP address that the described five-tuple information of usining comprises and described public network port numbers are as the object IP address in reverse flow and destination slogan, the described object IP address that the described five-tuple information of usining comprises and described destination slogan, as the source IP address in reverse flow and source port number, generate the reverse flow sending for the Way out to described CGN equipment.
The invention provides a kind of testing equipment, comprising:
Sending module, sends positive flow for the Way in to CGN equipment, and described positive flow comprises object IP address, destination slogan and protocol type;
Acquisition module, for obtaining from described CGN equipment the five-tuple information being stored in five-tuple list item, described five-tuple information comprises public network IP address, public network port numbers, described object IP address, described destination slogan and described protocol type; Wherein said public network IP address and described public network port numbers are that described CGN equipment carries out network address translation and generates after receiving described positive flow;
Generation module, for usining described public network IP address that described five-tuple information comprises and described public network port numbers as the object IP address in reverse flow and destination slogan, the described object IP address that the described five-tuple information of usining comprises and described destination slogan, as the source IP address in reverse flow and source port number, generate the reverse flow sending for the Way out to described CGN equipment.
Generation method and the testing equipment of CGN testing of equipment reverse flow provided by the invention, the five-tuple function based on CGN equipment, by obtaining the five-tuple information of its storage, to generate exactly the reverse flow for testing, to realize the performance test to CGN equipment.
Accompanying drawing explanation
Fig. 1 is the generation method one embodiment flow chart of CGN testing of equipment reverse flow of the present invention;
Fig. 2 is another embodiment flow chart of generation method of CGN testing of equipment reverse flow of the present invention;
Fig. 3 is testing equipment example structure schematic diagram of the present invention.
Embodiment
Various embodiments of the present invention, for generating the defect of reverse flow in the test process of CGN equipment, provide a solution, and a kind of five-tuple list item based on CGN equipment is provided, and generate the method and apparatus of reverse flow.
Fig. 1 is the generation method one embodiment flow chart of CGN testing of equipment reverse flow of the present invention, and as shown in Figure 1, the method comprises:
Step 100, to the Way in of CGN equipment, send positive flow, described positive flow comprises object IP address, destination slogan and protocol type;
Be understandable that, in the normal use procedure of CGN equipment, Way in refers to the direction of CGN equipment receiving data, and Way out refers to the direction that CGN equipment outwards sends data.In carrying out the process of performance test, the data that testing equipment sends toward CGN equipment according to described Way in can be referred to as positive flow, and the data that testing equipment sends toward CGN equipment according to described Way out can be referred to as reverse flow.
First testing equipment generates for CGN equipment being carried out to the positive flow of performance test, the five-tuple information of this positive flow comprises { private network IP address, private network port numbers, object IP address, destination slogan, protocol type }, for example { 10.110.10.0,001,20.220.20.0,002, TCP/IP}.Testing equipment generates after described positive flow, to the Way in of CGN equipment, sends this positive flow.
Step 101, from described CGN equipment, obtain the five-tuple information being stored in five-tuple list item, described five-tuple information comprises public network IP address, public network port numbers, described object IP address, described destination slogan and described protocol type; Wherein said public network IP address and described public network port numbers are that described CGN equipment carries out network address translation and generates after receiving described positive flow;
CGN equipment is after receiving described positive flow, carry out network address translation, by " private network IP address, private network port numbers ", { 10.110.10.0,001} convert " public network IP address, public network port numbers " { 202.38.1.2,100} to specifically, then form new five-tuple information and send from the Way out of CGN equipment, described new five-tuple information comprises { public network IP address, public network port numbers, object IP address, destination slogan, protocol type }, for example { 202.38.1.2,100,20.220.20.0,002, TCP/IP}.
In the embodiment of the present invention, CGN equipment generates after new five-tuple information after carrying out network address translation, also this five-tuple information will be stored in local five-tuple list item.Testing equipment, after sending positive flow, to the new five-tuple information of CGN device request, and is successfully obtained the information in described five-tuple list item.
The described public network IP address that step 102, the described five-tuple information of usining comprise and described public network port numbers are as the object IP address in reverse flow and destination slogan, the described object IP address that the described five-tuple information of usining comprises and described destination slogan, as the source IP address in reverse flow and source port number, generate the reverse flow sending for the Way out to described CGN equipment.
If know the performance of CGN equipment, need to know by CGN equipment and send after data to network side, whether the reply data that network side returns can successfully turn back to data sending terminal by CGN equipment.Therefore, when CGN equipment is carried out to performance test, need to know source IP address and the source port number (be CGN equipment carry out the public network IP address and the public network port numbers that network address translation after generate) of CGN equipment in the data of Way out transmission, thereby form reverse flow.
In the present embodiment, after the information of testing equipment in getting five-tuple list item, be according to the Information generation reverse flow in this five-tuple list item.Comprise particularly and using public network IP address that five-tuple information comprises and public network port numbers { 202.38.1.2,100} are as the object IP address in reverse flow and destination slogan, { 20.220.20.0,002} are as the source IP address in reverse flow and source port number for the object IP address that the five-tuple information of usining comprises and destination slogan, generate five-tuple information { object IP address, destination slogan, public network IP address, public network port numbers, protocol type }, for example { 20.220.20.0,002,202.38.1.2,100, TCP/IP}.
Generate after reverse flow, to the Way out of CGN equipment, send, to complete the performance test to CGN equipment twocouese.
The generation method of the CGN testing of equipment reverse flow that the embodiment of the present invention provides, the five-tuple function based on CGN equipment, by obtaining the five-tuple information of its storage, to generate exactly the reverse flow for testing, to realize the performance test to CGN equipment.
Fig. 2 is another embodiment flow chart of generation method of CGN testing of equipment reverse flow of the present invention, as shown in Figure 2, comprising:
Step 200, open the five-tuple function of BRAS+CGN equipment;
In the present embodiment, BRAS+CGN equipment shows that this equipment has the function of BRAS and CGN simultaneously.Before testing, first open the five-tuple function of this equipment, so that BRAS+CGN equipment is stored five-tuple information in five-tuple list item.
Step 201, testing equipment send short time positive flow to BRAS+CGN equipment;
Testing equipment is within a short time, and to the Way in transmission positive flow of BRAS+CGN equipment, this positive flow comprises object IP address, destination slogan and protocol type.
Step 202, testing equipment read the five-tuple list item of BRAS+CGN equipment;
Testing equipment sends after positive flow, reads five-tuple list item from BRAS+CGN equipment.
Step 203, BRAS+CGN equipment return to five-tuple information, i.e. source IP address, source port, object IP address, destination interface, protocol type;
BRAS+CGN equipment returns to the five-tuple information of storing in five-tuple list item to testing equipment, comprising { public network IP address, public network port numbers, described object IP address, described destination slogan and described protocol type }.
Step 204, according to the content creating reverse flow of five-tuple list item, and send to BRAS+CGN equipment.
Testing equipment generates the reverse flow sending for the Way out to BRAS+CGN equipment according to the content of this five-tuple list item, and sends.
Fig. 3 is testing equipment example structure schematic diagram of the present invention, and as shown in Figure 3, this testing equipment comprises sending module 31, acquisition module 32 and generation module 33, wherein:
Sending module 31 sends positive flow for the Way in to CGN equipment, and described positive flow comprises object IP address, destination slogan and protocol type; Further, sending module 31 is specifically within a short time, to the Way in transmission positive flow of CGN equipment.
Acquisition module 32 is for obtaining from described CGN equipment the five-tuple information being stored in five-tuple list item, and described five-tuple information comprises public network IP address, public network port numbers, described object IP address, described destination slogan and described protocol type; Wherein said public network IP address and described public network port numbers are that described CGN equipment carries out network address translation and generates after receiving described positive flow.
Generation module 33 is for usining described public network IP address that described five-tuple information comprises and described public network port numbers as the object IP address in reverse flow and destination slogan, the described object IP address that the described five-tuple information of usining comprises and described destination slogan, as the source IP address in reverse flow and source port number, generate the reverse flow sending for the Way out to described CGN equipment.
The handling process that testing equipment provided by the invention specifically can provide for carrying out above-mentioned each embodiment of the method, its function and efficacy can be described referring to the flow process of said method embodiment, repeats no more herein.
The five-tuple function of testing equipment provided by the invention based on CGN equipment, by obtaining the five-tuple information of its storage, to generate exactly the reverse flow for testing, to realize the performance test to CGN equipment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (5)

1. a generation method for CGN testing of equipment reverse flow, is characterized in that, comprising:
Way in to CGN equipment sends positive flow, and described positive flow comprises object IP address, destination slogan and protocol type;
From described CGN equipment, obtain the five-tuple information being stored in five-tuple list item, described five-tuple information comprises public network IP address, public network port numbers, described object IP address, described destination slogan and described protocol type; Wherein said public network IP address and described public network port numbers are that described CGN equipment carries out network address translation and generates after receiving described positive flow;
The described public network IP address that the described five-tuple information of usining comprises and described public network port numbers are as the object IP address in reverse flow and destination slogan, the described object IP address that the described five-tuple information of usining comprises and described destination slogan, as the source IP address in reverse flow and source port number, generate the reverse flow sending for the Way out to described CGN equipment.
2. method according to claim 1, is characterized in that, the described Way in to CGN equipment comprises before sending positive flow:
Start the five-tuple function of described CGN equipment, so that described CGN equipment is stored described five-tuple information in described five-tuple list item.
3. method according to claim 1 and 2, is characterized in that, the described Way in to CGN equipment sends positive flow and is specially:
Within a short time, to the Way in transmission positive flow of CGN equipment.
4. a testing equipment, is characterized in that, comprising:
Sending module, sends positive flow for the Way in to CGN equipment, and described positive flow comprises object IP address, destination slogan and protocol type;
Acquisition module, for obtaining from described CGN equipment the five-tuple information being stored in five-tuple list item, described five-tuple information comprises public network IP address, public network port numbers, described object IP address, described destination slogan and described protocol type; Wherein said public network IP address and described public network port numbers are that described CGN equipment carries out network address translation and generates after receiving described positive flow;
Generation module, for usining described public network IP address that described five-tuple information comprises and described public network port numbers as the object IP address in reverse flow and destination slogan, the described object IP address that the described five-tuple information of usining comprises and described destination slogan, as the source IP address in reverse flow and source port number, generate the reverse flow sending for the Way out to described CGN equipment.
5. testing equipment according to claim 4, is characterized in that, described sending module specifically for:
Within a short time, to the Way in of CGN equipment, send described positive flow.
CN201310500026.8A 2013-10-22 2013-10-22 Generating method for testing reverse flow through CGN equipment and testing equipment Pending CN103560927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310500026.8A CN103560927A (en) 2013-10-22 2013-10-22 Generating method for testing reverse flow through CGN equipment and testing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310500026.8A CN103560927A (en) 2013-10-22 2013-10-22 Generating method for testing reverse flow through CGN equipment and testing equipment

Publications (1)

Publication Number Publication Date
CN103560927A true CN103560927A (en) 2014-02-05

Family

ID=50015081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310500026.8A Pending CN103560927A (en) 2013-10-22 2013-10-22 Generating method for testing reverse flow through CGN equipment and testing equipment

Country Status (1)

Country Link
CN (1) CN103560927A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889533A (en) * 2019-03-11 2019-06-14 北京网御星云信息技术有限公司 Security defend method and system, computer readable storage medium under cloud environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225549A1 (en) * 2002-03-29 2003-12-04 Shay A. David Systems and methods for end-to-end quality of service measurements in a distributed network environment
CN1652519A (en) * 2002-12-13 2005-08-10 韩国电子通信研究院 Communication measuring system and its communication analyzing method
CN101056217A (en) * 2006-04-14 2007-10-17 华为技术有限公司 A network performance measurement method and system
CN101197858A (en) * 2008-01-07 2008-06-11 杭州华三通信技术有限公司 Address translation method, device and router with the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225549A1 (en) * 2002-03-29 2003-12-04 Shay A. David Systems and methods for end-to-end quality of service measurements in a distributed network environment
CN1652519A (en) * 2002-12-13 2005-08-10 韩国电子通信研究院 Communication measuring system and its communication analyzing method
CN101056217A (en) * 2006-04-14 2007-10-17 华为技术有限公司 A network performance measurement method and system
CN101197858A (en) * 2008-01-07 2008-06-11 杭州华三通信技术有限公司 Address translation method, device and router with the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889533A (en) * 2019-03-11 2019-06-14 北京网御星云信息技术有限公司 Security defend method and system, computer readable storage medium under cloud environment
CN109889533B (en) * 2019-03-11 2021-07-20 北京网御星云信息技术有限公司 Security defense method and system under cloud environment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN103118147A (en) Method, equipment and system for accessing intranet server
CN103200281A (en) Method, device and system for accessing intranet server
US20120259998A1 (en) System and method for translating network addresses
CN105359458B (en) Network device communications method and the network equipment
CN104202439A (en) Addressing and access method, gateway and system
US7023847B2 (en) Network address translation based mobility management
Samad et al. The future of internet: IPv6 fulfilling the routing needs in internet of things
CN102143241B (en) Access method, device and system between hosts
Zhai et al. Transition from ipv4 to ipv6: A translation approach
CN102611623B (en) Port configuration processing method, port configuration processing device and port configuration processing system on basis of network access
US11683275B2 (en) Device and method for interconnecting two subnetworks
CN105472059A (en) Service access using a service address
CN102137172B (en) Access method and access device for DNS (Domain Name Server)
CN102387221B (en) Data forwarding method and system
WO2016034006A1 (en) Packet sending method and access device
CN104065688A (en) Method for calling underlayer services and device thereof
CN103532787A (en) Generation method of testing reverse flow of CGN (Carrier-grade Network Address Translation) equipment and testing equipment
CN103560927A (en) Generating method for testing reverse flow through CGN equipment and testing equipment
WO2013013477A1 (en) Data packet processing and tracing method, device and system
AU2019257538B2 (en) Systems and methods for providing a ReNAT communications environment
CN107979656B (en) Method for supporting dynamic identification of incoming flow by static NAT service
CN104378301B (en) A kind of data processing method and data processing equipment
CN102143246B (en) Method for end-to-end communication between internet protocol version (IPV) 4 network and IPV6 network
WO2017161876A1 (en) Method and device implementing network access
CN110913029A (en) IPv6 address configuration method in operator

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140205