A kind of desktop system testing CMC basic service and method of work
Technical field:
The invention belongs to CMC technical field of measurement and test, refer more particularly to a kind of desktop system testing CMC basic service.
Background technology:
CMC system uses C-DOCSIS CMC technology, meets high bandwidth, high QoS, the business demand of low time delay, carries height comprehensively
Clear TV, video request program, voice-and-data business of networking, support the networking model of FTTB/FTTC, be the integration of three networks and structure
The ideal product of NGB next generation's Broadcasting Cable Network.
The test environment of CMC system basic service is general as shown in Figure 1:
One great difference of CMC system and other EOC system is that the configuration of terminal obtains mode.EOC system such as low frequency
Homplug, high frequency moca, terminal just obtains configuration information (such as VLAN) from local side configuration template after coaxially reaching the standard grade and directly makees
For terminal prot, different port represents different vlan domains, the CPE hung under port in vlan domain by DHCP or
PPPOE dialing obtains address from business support server and accesses application server;And CMC system Dynamic Host Configuration Protocol server to be first passed through
To CM allocation manager address and specify tftp server address, CM success again obtains after configuration file ability from tftp server
Line.After CM reaches the standard grade, CPE could obtain address from Dynamic Host Configuration Protocol server and access application server.The these three industry that CMC system exists
Business stream is illustrated in fig. 2 shown below:
So tradition CMC basic service is tested and is had following several shortcoming:
1. convergence switch, egress router or BAS hardware price are expensive.
2.TFTP and Dynamic Host Configuration Protocol server, particularly Dynamic Host Configuration Protocol server need to support more option, the general DHCP that increases income
Instrument does not possesses, and existing network many uses Cisco CNR comes integrated, and cost is the highest;Also some developer uses linux to build
TFTP and Dynamic Host Configuration Protocol server, but tester is typically unfamiliar with linux, causes use difficulty.
3. application test, needs the application server accessed, and such as VOD video request program, FTP resource is also to need to build specially
Server, be also to need the biggest hardware cost.
4. the analysis of pair Business Stream, misarrangement, as captured mutual message, not very convenient.
Summary of the invention:
For solving the problems referred to above, the invention provides a kind of desktop system testing CMC basic service, including being provided with router
Simulator and increase income the office PC of tftp server instrument, CMC, client, cable modem;Wherein, CPE passes through netting twine
It is connected to cable modem;Coaxial cable interconnection is used, the ether first line of a couplet electricity of CMC between cable modem and CMC
Mouth connects first network interface card of office PC, and second network interface card of office PC is connected to the Internet;The first of router is simulated on office PC
Multi-port bridge is to the first network interface card, and the second multi-port bridge of simulation router is to the second network interface card.
Described office PC is connected to the Internet, provides configuration file by TFTP service for cable modem, and sets
Putting simulation router, described simulation router opens NAT service and DHCP service;Described DHCP service is cable modem
Management business, 2 address pool of CPE business configuration, it is respectively used to for cable modem allocation manager IP address, for client
Distribution service IP address, described NAT service makes client can be connected to the Internet carry out operational trials by simulating router;Institute
State TFTP to service for configuring cable modem.
Described CMC is for for providing data transport service between CM, client and office PC.
Client is for carrying out the application test of CMC business.
Cable modem is for the communication port being established as between CMC and client.
Further, described client is operational trials PC or Set Top Box.
Further, installing packet capturing software on office PC, described packet capturing software is for reaching the standard grade at cable modem
Carry out during message interaction and/or between CPE and Internet Server carrying out packet capturing, wherein, cable modem during message interaction
Device message of reaching the standard grade includes configuration message and management ip address assignment message.
The method of work of the desktop system of above-mentioned test CMC basic service, comprises the steps:
Step one: office PC opens tftp server, and runs simulation router, and tftp server is that cable modem divides
Join configuration file.
Step 2: simulation router opens NAT service and DHCP service, and described DHCP service is that cable modem divides
Joining management ip address, distribute IP operation address for client, described NAT service accesses mutually for client and cable modem
The message of networking or application server carries out source address conversion, to simulate existing network use.
Step 3: cable modem has configured.
Step 4: client is opened Dynamic Host Configuration Protocol server and obtained service IP address.
Step 5: client carries out being connected to the Internet by NAT service, proceeds by operational trials.
The invention have the benefit that
The present invention has abandoned the laboratory test network of traditional complexity, utilizes relatively low cost to build CMC test wrapper on the table
Border, can simulate the upper line process of CM terminal easily, carries out CMC basic service test, and can carry out misarrangement with packet capturing.
Accompanying drawing illustrates:
Fig. 1 is the test system structure figure of traditional CMC system basic service.
Fig. 2 is the test Business Stream schematic diagram of traditional CMC system basic service.
Fig. 3 is the test system structure figure of the present invention.
Fig. 4 is the test Business Stream schematic diagram of the present invention.
Detailed description of the invention:
First several term is explained:
CMC:Cable media converter wire cable medium conversion equipment;
CM:Cable modem cable modem;
DHCP:Dynamic host configuration protocol DHCP;
TFTP;Trivial file transfer protocol TFTP;
CPE:Customer premise equipment client device
VLAN, Virtual Local Area Network, VLAN.
Described system include handle official business PC, CPE(client), CM, CMC system equipment.The annexation of each several part is:
CPE connects the LAN1 mouth of CM by netting twine;Coaxial cable interconnection is used between CM and CMC.The ether first line of a couplet electricity mouth of CMC is even
Acquiring first network interface card (i.e. network interface card 1 in figure) of public PC, second network interface card (i.e. network interface card 2 in figure) of office PC is connected to outer net
(i.e. the Internet);The first port (i.e. P1 in figure) simulating router on office PC is bridged to the first network interface card, simulates router
The second port (i.e. P2 in figure) be bridged to the second network interface card.
Described office PC is normal office PC, is provided with simulation router and tftp server instrument of increasing income.
Described simulation router operates on virtual unit, is mainly used in handle official business first network interface card of PC, the connection of the second network interface card
Logical, and NAT service and DHCP service are provided.DHCP service is that CM manages business, 2 address pool of CPE business configuration, is respectively used to
For CM allocation manager IP address, distributing service IP address for CPE, simulation router is as their gateway.The wherein address of CM
Pond also needs to additionally specify the configuration file of tftp server address and CM, such as:
ip dhcp pool cm
network 192.168.1.0 255.255.255.0
bootfile cm.cfg
next-server 172.16.34.30
default-router 192.168.1.1
dns-server 61.139.2.69 8.8.8.8
Wherein cm.cfg is the profile name of CM, and 172.16.34.30 is tftp server address.Because the CM that CMC forwards
Management message, CPE address D HCP obtain message, the message of CPE access outer net is with VLAN, so at simulation router first
Need on port divide sub-interface termination VLAN and configuration of IP address as its gateway, such as the management business of CM:
interface FastEthernet1/0.100
encapsulation dot1Q 100
ip address 192.168.1.1 255.255.255.0
Wherein encapsulation dot1Q 100 order is the business of termination VLAN 100;Second port of simulation router
Configuration address for directly going up the Internet, and configure nat feature so that permission CPE business of networking can access the Internet,
CM accesses tftp server by NAT;Office PC, as tftp server, provides CM configuration file cm.cfg for client.
PC runs TFTP Open-Source Tools and enables tftp server functionality, the IP of second network interface card of configuration PC and simulation router
The second port at the same network segment and the Internet can be accessed, the two can mutually PING lead to.CM accesses tftp server
Flow mates NAT after the second port of simulation router, and in its message, the source address of CM is converted into simulation router
Second port address, destination address is constant, and in the request message that such tftp server receives, source address is simulation router
Second port address, can directly communicate with, and thus achieves CM and accesses the purpose of tftp server acquisition configuration.
CPE is connected with the Internet by NAT, carries out miscellaneous service test, as VOD program request, FTP download, WEB handle official business, on
Net etc..
Described CMC system equipment includes CMC headend, CM terminal unit and coaxial cable;
Described CPE can be the ustomer premises access equipments such as operational trials PC, Set Top Box.CPE utilizes DHCP protocol to obtain business IP ground
Location, carries out the application test of CMC business.
Below the data in system are flowed away to explanation.
Be illustrated in fig. 4 shown below, system have 3 kinds of flows, be respectively CM reach the standard grade Business Stream (described in Business Stream of reaching the standard grade include that CM joins
Put message flow and management ip address assignment message stream), CPE obtain the DHCP Business Stream of IP operation address, CPE obtain IP operation ground
The application test stream of the Internet is accessed behind location.Wherein, CM reaches the standard grade Business Stream, and CPE obtains the DHCP Business Stream both stream of address
Trend be the same, i.e. arrived first network interface card of office PC by CMC system, and then end in the port the of simulation router
On Single port;CPE accesses the application test stream of outer net and then also needs to go to access from router port the second port after obtaining address
Extraneous Internet Server.
Preferably, office PC installs packet capturing software, it is achieved to line process message interaction, CPE and outer net service on CM
Message interaction between device carries out packet capturing, can understand and learn CMC system work process in depth.Cable modem is reached the standard grade
Message includes configuration message and management ip address assignment message
Below the method for testing of native system is illustrated.
Step one: office PC opens tftp server, and runs simulation router, and tftp server is cable modem
Device assignment configuration file;
Step 2: simulation router opens NAT service and DHCP service, described DHCP service is cable modem distribution pipe
Managing IP address, distribute IP operation address for client, described NAT service accesses the Internet for client and cable modem
Or the message of application server carries out source address conversion, to simulate existing network use;
Step 3: cable modem has configured;
Step 4: client is opened Dynamic Host Configuration Protocol server and obtained service IP address;
Step 5: client carries out being connected to the Internet by NAT service, proceeds by operational trials.