CN1996896A - Testing method of the data communication interface - Google Patents

Testing method of the data communication interface Download PDF

Info

Publication number
CN1996896A
CN1996896A CNA2005100224893A CN200510022489A CN1996896A CN 1996896 A CN1996896 A CN 1996896A CN A2005100224893 A CNA2005100224893 A CN A2005100224893A CN 200510022489 A CN200510022489 A CN 200510022489A CN 1996896 A CN1996896 A CN 1996896A
Authority
CN
China
Prior art keywords
frame
interface
wide area
area network
virtual
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.)
Granted
Application number
CNA2005100224893A
Other languages
Chinese (zh)
Other versions
CN100518098C (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.)
Maipu Communication Technology Co Ltd
Original Assignee
MAIPU (SICHUAN) COMMUNICATION TECHNOLOGY 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 MAIPU (SICHUAN) COMMUNICATION TECHNOLOGY Co Ltd filed Critical MAIPU (SICHUAN) COMMUNICATION TECHNOLOGY Co Ltd
Priority to CNB2005100224893A priority Critical patent/CN100518098C/en
Publication of CN1996896A publication Critical patent/CN1996896A/en
Application granted granted Critical
Publication of CN100518098C publication Critical patent/CN100518098C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This invention relates to data communication interface test method in network communication field, which comprises the following steps: a, extending the local network transmission data frame structure to form virtual broad network interface frame to form relative interface control structure; b, according to virtual broadcasting network interface frame form to receive or send process.

Description

The data communication interface method of testing
Technical field
The present invention relates generally to network communication field, relates in particular to interface testing technology in the network communication protocol.
Background technology
In the network communicating system, communication interface generally has the branch of lan interfaces and Wide Area Network interface, and the difference between them is: one is the interfacing of utilizing physical layer, and another one is to utilize link layer protocol.Lan interfaces generally is multi-multipoint, forms based on ether physical layer transceiver technology and Ethernet protocol group.Wide Area Network interface generally is point-to-point or point-to-multipoint, based on wide area network physics transmit-receive technology and the wide area network link layer protocol form.Network internal generally is to adopt local area network (LAN) at present, connects between net generally to be to use wide area network.Because the point-to-point and point-to-multipoint of wide area network, and the functional characteristics of some wan protocols, on LAN protocol, carry the usage of wan protocol at present, most typical is exactly PPPOE, but just transmitting on local area ethernet at link layer protocol PPP, it designs, also have other wan protocol such as frame relay, X.25 wait and on local area ethernet, to transmit.But for the test of some complexity, the link layer protocol that needs any wide area network on the one hand can be transmitted on Ethernet, requires to have the equipment and the integrated circuit board of a large amount of lan interfaces on the other hand.For example in the development﹠ testing process of current router, may run into and to build a large-scale interconnection environment that more than 100 Wide Area Network interface arranged.We are example to build L2TP large test environment, in order to simulate 1500 L2TP access clients' large-scale access environment, if we use real physics integrated circuit board to build, promptly use the most frequently used maximum CE1 interface card of number of ports at present, a CE1 interface can be created 32 physics Wide Area Network interface, suppose maximum 4 the physical slot positions of router, 1 4CE1 interface card can be inserted in a groove position, such router just can have 16 * 32=512 interface, an interface can be simulated a L2TP and be inserted the user, in order to reach 1500 user's access amounts, must do access device with 3 routers, 3 routers are made subscriber equipment, and they all need insert 4 4CE1.Also need 1 in addition and do the L2TP access server side.The environment of building this maximum number of interface needs 7 routers, and 24 4CE1 cards are connected with corresponding a lot of cable.As Fig. 1.
In general, test development for a lot of link layers and upper layer module thereof on the router, do not need to be concerned about what real physical interface type is, the data that the developer only needs characteristic that Wide Area Network interface has Wide Area Network interface, transmit above are that the encapsulation of wide area network link protocol gets final product, at this moment for building an environment, but will spend a large amount of time removes preparation machine, integrated circuit board and stube cable, and carry out physical connection and configuration, consume the manpower time cost virtually, also taken a large amount of exploiting natural resources simultaneously.
Summary of the invention
The technical problem to be solved in the present invention is: solve in the prior art, build complicated development and testing environment and need waste a large amount of manpower time costs, and take a large amount of exploitative shortcomings, a kind of method that can create the virtual MAN interface that can carry wan protocol on the basis of LAN protocol is proposed.
The technical scheme that the present invention solve the technical problem employing provides a kind of data communication interface method of testing, may further comprise the steps:
A, the data frame structure of the online transmission of local is done expansion, form the virtual MAN interface frame, construct corresponding Wide Area Network interface control structure simultaneously;
B, according to the frame format of virtual MAN interface frame, it is received or sends processing.
Further, described reception may further comprise the steps:
Frame is judged, if the virtual MAN interface frame then hands over virtual wide area interface Drive Layer to handle; If normal Ether frame then hands over the Ethernet link layer to handle.
Further, the structure of the virtual MAN interface frame among the described step a comprises: the Ether frame form of standard; The virtual MAN protocol header that on ether frame head basis, expands; The wide area network link frame head of standard; Standard wide area network link data content comprises the application layer message that occupy application layer, occupy the transport layer message of transport layer, occupy IP and other data messages of IP network layer, other wide area network data contents.
Further, comprise in the form of the virtual MAN interface frame among the described step a:
Target MAC (Media Access Control) address, source MAC, slot number, version number, protocol number, interface number, frame length and wide area network isl frame.
The invention has the beneficial effects as follows, utilize the virtual MAN interface to substitute actual physics Wide Area Network interface environment required in the development and testing process, thereby make things convenient for development﹠ testing, save development time and testing time, reduce the resource occupation of integrated circuit board and cable simultaneously.Also because the virtual MAN interface is based upon on the Basic Ethernet, Ethernet has characteristics at a high speed, therefore the present invention goes back even can finish the task that some actual physics environment are not accomplished or are difficult to accomplish, as the high-speed wan link test, large-scale access service test, situations such as the route upheaval test of big interface quantity.
The present invention is further illustrated below in conjunction with the drawings and specific embodiments.
Description of drawings
Fig. 1: 1500 L2TP that build with the actual physical integrated circuit board insert users' environment; The equipment that wherein is labeled as A is the subscriber equipment with 4 4C1; The equipment that is labeled as B is the L2TP access device with 4 4CE1;
Fig. 2: ethernet layer hierarchical structure chart; Wherein a is an Ethernet system layer aggregated(particle) structure; B is the frame format of each layer of Ethernet system correspondence;
Fig. 3: virtual MAN interface layer hierarchical structure chart of the present invention; Wherein a is a virtual MAN system layer aggregated(particle) structure; B is the frame format of each layer of virtual MAN correspondence;
Fig. 4: virtual MAN frame assumption diagram of the present invention; Wherein a is an ethernet frame format; B is a virtual MAN interface frame form;
Fig. 5: the standard Wide Area Network interface of virtual MAN interface configuration sample and generation;
Fig. 6: use the present invention to create the virtual MAN interface and build large-scale access environment shown in Figure 1;
Fig. 7: the ether of band virtual MAN interface of the present invention receives to be handled;
Fig. 8: the ether of band virtual MAN interface of the present invention sends to be handled.
Embodiment
The present invention proposes a kind of method that can create the virtual MAN interface that can carry wan protocol on the basis of LAN protocol, the virtual MAN interface of Chuan Jianing in this way, the above agreement of link layer all can be used as real Wide Area Network interface to it and treat, and mainly comprises the steps:
1, constructs the control structure of each virtual MAN interface;
2, according to transmission, the receiving course of constructed frame structure constructing virtual Wide Area Network interface;
3, revise normal ether and receive flow process, hand over virtual wide area interface Drive Layer to handle the virtual MAN interface frame, hand over the Ethernet link layer to handle normal Ether frame;
4, the frame with the virtual MAN interface sends, and hands over the virtual MAN interface to drive and sends, and the virtual MAN interface drives and is articulated to transmission place that Ethernet drives again.
Finishing the controlled function of virtual MAN, mainly is keep-alive, the function of surveying the opposite end existence; Utilize configuration to finish the building work of virtual MAN interface, this configuration also can be used as script and is recorded in the startup script.
More specifically, the system of the general TCP/IP data communication system formation that is of five storeys, physical layer, interface Drive Layer, link layer, network layer (IP layer), transport layer (TCP layer), application layer, the hierarchical structure of Dui Ying ethernet local area network such as Fig. 2 with it.
The present invention revises its link layer based on the hierarchical structure of Ethernet, but does not influence normal ethernet communication, and the interface Drive Layer of establishment virtual MAN interface realizes the virtual MAN interface.The present invention has created standard set Wide Area Network interface data structure and has handled the virtual MAN interface frame for each virtual MAN interface, and the interface structure of standard is consistent in this sets of data structure and the communication system; With the driven management data structure that a virtual MAN interface is arranged of standard Wide Area Network interface data structure correspondence, form the interface Drive Layer of virtual MAN interface.Amended virtual MAN interface layer aggregated(particle) structure such as Fig. 3.
The present invention constructs a kind of frame format of virtual MAN interface on the basis of Ethernet protocol frame format, it is corresponding which virtual MAN interface that this frame format can be distinguished the notebook data frame.The main field of virtual MAN frame head has slot number, version number, and protocol number, interface number, frame length, wherein slot number is that a configurable radix adds that slot number constitutes virtual MAN interface frame form such as Fig. 4 of structure.
Functional description for each layer among Fig. 3 is as follows: ether driving interface layer mainly is that the phy chip of Ethernet is done the driving function, receives Ether frame from Ethernet, and the virtual MAN interface frame is sent on the Ethernet; The Ether frame here comprises virtual MAN Ether frame and standard Ether frame, if the virtual MAN Ether frame then hands over virtual MAN driving interface layer to handle, if normal ethernet frame then hands over the Ethernet link layer to handle; Each field of virtual MAN interface Drive Layer identification virtual MAN frame head, telling this frame is which the virtual MAN interface that belongs to which groove position, this frame is the frame type of what virtual MAN, if Frame, then peeling off the wide area network link layer of sending to corresponding virtual MAN interface behind the virtual MAN frame head goes to handle, if the control message is then directly handled in virtual MAN interface Drive Layer, as the keepalive feature of virtual MAN interface; It is exactly the wide area network link layer process process of standard that virtual MAN interface link layer is handled; IP layer, transport layer and application layer also all are the processing procedures of standard, and they can not make because of the present invention and how to revise, and think that directly the virtual MAN interface is exactly the Wide Area Network interface of a standard.As shown in Figure 5, behind the configuration virtual wide area network, two standard wide area network pos interfaces of generation.
Because the present invention discloses concrete frame structure, those of ordinary skill can be implemented according to content disclosed by the invention, so the concrete steps for above variety of processes no longer are described in detail in detail.
Also because the virtual MAN interface is based upon on the Basic Ethernet, Ethernet has characteristics at a high speed, therefore the present invention goes back even can finish the task that some actual physics environment are not accomplished or are difficult to accomplish, as the high-speed wan link test, large-scale access service test, situations such as the route upheaval test of big interface quantity.If use the present invention to create the virtual MAN interface, build large-scale access environment as shown in Figure 1, then as shown in Figure 6, only need 3 routers, 4 Ethernet interfaces get final product, and are just very simple.

Claims (5)

1, the data communication interface method of testing is characterized in that, may further comprise the steps:
A, the data frame structure of the online transmission of local is done expansion, form the virtual MAN interface frame, construct corresponding Wide Area Network interface control structure simultaneously;
B, according to the frame format of virtual MAN interface frame, it is received or sends processing.
2, data communication interface method of testing as claimed in claim 1 is characterized in that, described reception may further comprise the steps:
Frame is judged, if the virtual MAN interface frame then hands over virtual wide area interface Drive Layer to handle; If normal Ether frame then hands over the Ethernet link layer to handle.
3, data communication interface method of testing as claimed in claim 1 or 2 is characterized in that, the structure of the virtual MAN interface frame among the described step a comprises:
The Ether frame structure of standard;
The virtual MAN protocol header of on ether frame head basis, expanding;
The wide area network link frame head of standard;
Standard wide area network link data content comprises the application layer message that occupy application layer, occupy the transport layer message of transport layer, occupy IP and other data messages of IP network layer, other wide area network data contents.
4, data communication interface method of testing as claimed in claim 1 or 2 is characterized in that, comprises in the form of the virtual MAN interface frame among the described step a:
Target MAC (Media Access Control) address, source MAC, slot number, version number, protocol number, interface number, frame length and wide area network isl frame.
5, data communication interface method of testing as claimed in claim 1 or 2 is characterized in that, the form such as the following table of the virtual MAN interface frame among the described step a:
6 byte purpose MAC 6 byte source MAC 2 byte slot numbers 1 byte version number 1 byte protocol number 2 byte interface number 2 byte frame lengths The wide area network isl frame
CNB2005100224893A 2005-12-31 2005-12-31 Testing method of the data communication interface Expired - Fee Related CN100518098C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100224893A CN100518098C (en) 2005-12-31 2005-12-31 Testing method of the data communication interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100224893A CN100518098C (en) 2005-12-31 2005-12-31 Testing method of the data communication interface

Publications (2)

Publication Number Publication Date
CN1996896A true CN1996896A (en) 2007-07-11
CN100518098C CN100518098C (en) 2009-07-22

Family

ID=38251844

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100224893A Expired - Fee Related CN100518098C (en) 2005-12-31 2005-12-31 Testing method of the data communication interface

Country Status (1)

Country Link
CN (1) CN100518098C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717109A (en) * 2015-04-02 2015-06-17 迈普通信技术股份有限公司 Simulation testing method and system for wide area network links

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08307423A (en) * 1995-05-08 1996-11-22 Fujitsu Ltd Format conversion communication method and format conversion device
JP2004140776A (en) * 2002-07-12 2004-05-13 Nec Corp Frame transfer method for network and frame transfer program
CN1279720C (en) * 2003-05-29 2006-10-11 华为技术有限公司 Method and apparatus for Ethernet bearing point counter point agreement

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717109A (en) * 2015-04-02 2015-06-17 迈普通信技术股份有限公司 Simulation testing method and system for wide area network links
CN104717109B (en) * 2015-04-02 2018-08-28 迈普通信技术股份有限公司 Wide area network link analog detection method and system

Also Published As

Publication number Publication date
CN100518098C (en) 2009-07-22

Similar Documents

Publication Publication Date Title
CN105516191B (en) System based on the FPGA 10,000,000,000 net Transmission Control Protocol unloading engine TOE realized
CN101065741B (en) Method of transporting a PCI express packet over an IP packet network
CN102334112B (en) Method and system for virtual machine networking
CN104486589B (en) Access method and device in video monitoring system based on GVRP
CN102567125B (en) Method for realizing communication between browser pages
US20030061402A1 (en) Method and apparatus enabling both legacy and new applications to access an InfiniBand fabric via a socket API
CN100550763C (en) The management method of the network equipment and network management system
CN102160328A (en) Central controller for coordinating multicast message transmissions in distributed virtual network switch environment
CN101997916B (en) Method and device for file transmission based on network
CN114024880B (en) Network target range probe acquisition method and system based on proxy IP and flow table
CN101160850A (en) Method and device for forwarding message
CN102035751A (en) Data transmission method and equipment
CN101312400B (en) Method for realizing IGMP interception function on modem device with 4 ethernet interfaces
CN101119374B (en) iSCSI communication method and corresponding initiation equipment and objective equipment
CN101370009A (en) Construction method for virtual network block frame based on Linux kernel network subsystem
CN112929418B (en) Rapid IO high-speed communication method and system based on publish-subscribe
CN108234397A (en) A kind of heterogeneous network data transmission method for uplink and method of reseptance based on channel
CN106657377B (en) A kind of WIA-PA/ interconnects manufacture network information service adapter and implementation method entirely
CN102845042B (en) The aggregation of bandwidth system and method for the multiple movable physical interface of a kind of application layer
CN100518098C (en) Testing method of the data communication interface
CN101312412B (en) Ethernet transmission system based on embedded technique
EP1287673A2 (en) Wireless modem simulation of a lan card
CN212406712U (en) Cable logging system based on high-temperature and high-speed ADSL technology
CN102402850A (en) Centralized meter reading system of embedded Ethernet gateway and data transmission method thereof
TW453068B (en) Network control apparatus

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
C56 Change in the name or address of the patentee

Owner name: MAIPU COMMUNICATION TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: MAIPU (SICHUAN) COMMUNICATION TECHNOLOGY CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: Sichuan city of Chengdu province high tech Zone nine Hing Road No. 16 building, Maipu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: Sichuan city of Chengdu province high tech Zone nine Hing Road No. 16 building, Maipu

Patentee before: Maipu (Sichuan) communication technology Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090722