Packet identification method during CM reaches the standard grade in a kind of CMC system
Technical field
The present invention relates to data communication technology field, particularly relate to the message during CM reaches the standard grade in a kind of CMC system and know
Other method.
Background technology
CMC original text is " Cable Media Convert ", wire cable medium conversion equipment.It is C-DOCSIS system
In headend.
CM original text is " Cable Modem ", cable modem.It is responsible for connecting PC and the hfc plant of user, to network
It is modulated with user data/demodulates and transmit, it is achieved network and the two-way interactive of user data.
DOCSIS original text is " Data-over-Cable Service Interface Specification ", cable count
According to business interface specification, its basic function is transparent transmission IP message between head end and user side equipment.
HFC original text is " Hybrid Fiber Coaxial ", optical fiber-coaxial cable hybrid network.
C-DOCSIS original text is " China DOCSIS ", the standard that DOCSIS generates in China's evolution, can be simply viewed as
Being a subset of DOCSIS system, C-DOCSIS system is by C-DOCSIS head end, C-DOCSIS terminal, configuration system and network
Management system forms, and is mainly used in Broadcast and TV system network.
C-DOCSIS head end connects Coaxial distribution network network and aggregation networks, is responsible for the data between them and forwards, by converging
The configuration system of poly-network insertion operator and NMS.
C-DOCSIS terminal unit connects Coaxial distribution network network and the subscriber equipment of operator, is responsible for the data between them
Forward.
C-DOCSIS configuration system provides business and the equipment configuration service of C-DOCSIS system, it is achieved CM configuration file
Generate, issue, the function such as terminal software upgrading, including Dynamic Host Configuration Protocol server, profile service device etc..Configuration system and CM and
CPE may be in the network of the different physics network segments.
C-DOCSIS system initialization mainly includes two parts, be first that head end CMC completes substantially to initialize, afterwards CM
Initialization is reached the standard grade to be needed to carry out repeatedly just being finally completed alternately with head end CMC and configuration service device.The initialization of CM is reached the standard grade bag
Include following 5 basic steps:
The scanning of 1.CM downlink channel and CMC DL synchronization stream.
Line parameter in 2.CMC acquisition.
3.CMC finds range, and is automatically adjusted physical parameter adaptive with CM.
4.CM sets up IP and connects (as shown in Figure 1).
5.CM registers.
Step 1-3 is that hardware radio-frequency module is automatically performed, and 4,5 complete for software system.
Step 4 is set up IP and is connected as present invention is primarily concerned with content.IP connection procedure includes following two parts:
CM, by mutual with the Dynamic Host Configuration Protocol server in configuration system, obtains IP address, gateway address, CM profile service device and
Filename.
CM, after obtaining IP address, downloads CM configuration file by TFTP from configuration service device, and this configuration file ensures CM
Normally work after reaching the standard grade.
In actual application scenarios, due to configuration system and CM may not at a VLAN, between may be through two layers of friendship
Change aggregation networks, then CM sets up DHCP, TFTP message mutual with configuration service device in IP connection procedure needs its institute of labelling
The VLAN ID belonged to, proper communication could complete to connect, and the place reason head end CMC of this part completes.
Head end CMC needs to identify DHCP, TFTP message that CM is sent to configuration service device, and interpolation comprises correct VLAN
The VLAN TAG of ID, then needs to divest VLAN TAG on CMC response to DHCP, TFTP message of CM for configuration service device
After be sent to CM.
DHCP message recognition methods: UDP message and destination slogan are 68 or 69, CMC software analytic message process is relative
Simply;Although TFTP is also UDP message, but the request message destination slogan sent except client is fixed as 69, but follow-up
TFTP information transmission message and ACK message port numbers the most fixing, each TFTP connect dynamically distributed by tftp server.
So except first TFTP request message identification is simple, follow-up TFTP information transmission and ACK message are relative complex.Common
Method is exactly to record client source port numbers and the source port number of tftp server end distribution that each TFTP connects, if CM is relatively
Many, the TFTP of CMC software solution new record connects number to be increased the most therewith, and not only resolving is complex, and owing to message is known
Other process is that every message will perform, and also can reduce the forwarding performance of CMC.
Summary of the invention
For solving the problems referred to above, the invention provides the packet identification method during CM reaches the standard grade in a kind of CMC system.
Described system includes carrier network, switch, CMC, HFC, some CM being connected by HFC with CMC;Operator
Network, switch, CMC, HFC, CM are sequentially connected with, it is characterised in that in described CMC, storage has a CM information table, described CM
Information table storage has the mac address information of each CM.
Said method includes uplink message transmission flow, and this flow process comprises the steps:
Step one: certain or some CM initialize, and send uplink message to CMC.
Step 2: CMC receives uplink message, sequentially performs each uplink message to operate as follows:
Step 2.1: the source MAC obtained in uplink message head is compared one by one with the mac address information in CM information table, sentences
Whether this source MAC disconnected is the MAC Address of certain CM, the most then perform subsequent step, otherwise continue up transmission.
Step 2.2: judge whether this uplink message has VLAN Tag, without being then considered as TFTP message, and performs
Step 2.3.
Step 2.3: to VLAN Tag belonging to tftp server on this uplink message labelling, continue up transmission;
Step 3: repeated execution of steps two, until having traveled through all uplink messages.
Further, step 2.2 is particularly as follows: carry out type judgement to uplink message, it is judged that method is: first determine whether on this
Row message the most labelling VLAN Tag, and if the most labeled; would illustrate be this message be DHCP message, continue up transmission
And no longer perform subsequent step, then it is considered as TFTP message without VLAN Tag, and performs step 2.3.
Further, described method includes downlink data transmission flow, comprises the steps:
Step one: CMC receives downlink message, sequentially performs each downlink message to operate as follows:
Step 1.1: the target MAC (Media Access Control) address in downlink message head is compared one by one with the MAC in CM information table, it is judged that this purpose
Whether MAC Address is the MAC Address of certain CM, the most then be considered to be sent to the management message of corresponding CM, continue executing with
Step 3, otherwise continues directly to up transmission.
Step 1.2: check whether this downlink message comprises VLAN Tag, if comprising, deleting VLAN Tag, then holding
Row step 4, otherwise performs step 4.
Step 1.3: continue to send this downlink message.
Step 2: repeated execution of steps 1, until having traveled through all downlink messages.
Further, described CM connects Set Top Box and/or computer and/or mobile phone.
The invention have the benefit that
The present invention is directed to prior art CM and reach the standard grade that to set up IP connection procedure software identification TFTP message process complicated and can affect head
The problem of end CMC forwarding performance, it is provided that a kind of simplify TFTP message knows method for distinguishing, i.e. need not solve as prior art
Analyse message content, keep track of each TFTP connectivity port information, but the message except DHCP is all identified as TFTP report
Literary composition, then carries out VLAN Tag process to message, and uplink message adds VLAN Tag, descending deletion VLAN Tag.The method is not
Need message content is deeply resolved, but take out the source MAC in heading or purpose MAC information and remember in CM information table
The MAC Address of record compares, and MAC is identical and is then identified as TFTP message without VLAN Tag, processes logic and the most easily realizes, and right
CMC forwarding performance is without impact.
Accompanying drawing explanation
Fig. 1 is the flow chart of prior art.
Fig. 2 is CMC system structure schematic diagram.
Fig. 3 is uplink message transmission flow figure.
Fig. 4 is downlink message transmission flow figure.
Detailed description of the invention
It is illustrated in figure 2 the organigram of CMC system in prior art.Described system includes carrier network, exchange
Machine, CMC, HFC (Hybrid Fiber-Coaxial, hybrid fiber coax), some it is connected by HFC with CMC
CM.Described CM connects STB(Set-Top-Box, Set Top Box) and/or the terminal unit that can network such as PC and/or mobile phone.Fortune
Battalion's business's network, switch, CMC, HFC, CM are sequentially connected with.From CM or the terminal unit that is connected with CM to the number of carrier network
Being up direction according to transmission direction, the message of transmission is uplink message, otherwise is then down direction, and the message of transmission is descending report
Literary composition.
Unlike the prior art, prestore in described CMC a CM information table, and described CM information table have recorded this
All CM relevant information including MAC under CMC.This table can be created by DHCP software module.
CM sets up in IP connection procedure and can send uplink message to the configuration system of operator, including DHCP request reaching the standard grade
Ask with TFTP.First the Dynamic Host Configuration Protocol server that CM sends in DHPC request message, with configuration system to configuration system completes alternately
And for CM distribute IP address, then CM to configuration system configuration service device send TFTP request message to obtain configuration file,
Configuration service device then sends configuration file (downlink message) to CM after receiving up TFTP request message, and CM is receiving
Configuring after configuration file and register, CM initialization of reaching the standard grade completes after the registration is finished.
Use the technology design of the present invention, the processing method of uplink message included step as shown in Figure 3:
Step one: certain or some CM initialize, and send uplink message to CMC.
Step 2: CMC receives uplink message, sequentially performs each uplink message to operate as follows:
Step 2.1: the source MAC obtained in uplink message head is compared one by one with the mac address information in CM information table, sentences
Whether this source MAC disconnected is the MAC Address of certain CM, the most then perform subsequent step, otherwise continue up transmission.
Step 2.2: judge whether this uplink message has VLAN Tag, without being then considered as TFTP message, and performs
Step 2.3.
This step can be specifically described as: uplink message is carried out type judgement, it is judged that method is: first determine whether that this is up
Message the most labelling VLAN Tag, and if the most labeled; would illustrate be this message be DHCP message, continue up transmission and
No longer perform subsequent step, be then considered as TFTP message without VLAN Tag,
Step 2.3: to VLAN Tag belonging to tftp server on this uplink message labelling, continue up transmission;
Step 3: repeated execution of steps two, until having traveled through all uplink messages.
The uplink message that CM sends during reaching the standard grade includes DHCP message, TFTP message, the present invention and prior art
It is that in place of difference that the uplink message by CM sends the most simply divides into DHCP message, non-DHCP message, and all non-
DHCP message is all thought into TFTP message by simple.Advantage of this is that the most efficiently, although likely in this process
In have the message of remaining kind that CM sends and be interpreted as TFTP message and sent tftp server, but tftp server will not
It is carried out any process, only processes real TFTP message, do not interfere with the initialization of CM.
Use the technology design of the present invention, the processing method of downlink message included step as shown in Figure 4:
Step one: CMC receives downlink message, sequentially performs each downlink message to operate as follows:
Step 1.1: the target MAC (Media Access Control) address in downlink message head is compared one by one with the MAC in CM information table, it is judged that this purpose
Whether MAC Address is the MAC Address of certain CM, the most then be considered to be sent to the management message of corresponding CM, continue executing with
Step 3, otherwise directly directly performs step 4.
If target MAC (Media Access Control) address is not the address of CM, then it is assumed that be destined to be connected with CM can on-line customer's terminal set
Standby message, does not processes this kind of message.
Step 1.2: check whether this downlink message comprises VLAN Tag, if comprising, deleting VLAN Tag, then holding
Row step 4, otherwise continues directly to up transmission.
Step 1.3: continue to send this downlink message.
Step 2: repeated execution of steps 1, until having traveled through all downlink messages.
To the processing mode of downlink message similarly to the prior art.The realization of each step above-mentioned can be by operating in
Software inside CMC realizes.