Summary of the invention
The invention provides a kind of message processing method and device, at least to solve in correlation technique, for PTN equipment and SDH equipment interconnection, make PTN message smoothly by SDH network transparent transmission, and proceed to process at the PTN of opposite end network, the problem of effective solution is not also proposed.
According to an aspect of the present invention, provide a kind of message processing method, having comprised: received the message from the switch in PTN equipment; Determine the transmission channel that this message is sent to SDH network; This message is sent to SDH network by above-mentioned transmission channel.
Preferably, before the message receiving from the switch in PTN equipment, said method also comprises: with the ident value of switch negotiation packet, wherein, ident value comprises: (Medium Access Control, referred to as MAC) value, VLAN (Virtual Local Area Network, referred to as VLAN) value are controlled in media interviews, MAC value is for identify message process device when communicating with switch, and VLAN value is for identifying the transmission channel of message.
Preferably, comprise with the ident value of switch negotiation packet: receive the MAC value that switch distributes, wherein, MAC value is that switch distributes the position in PTN equipment according to message process device; The information of the one or more transmission channels for message transmission that notice switch message process device self is configured; Receive switch and according to the information of one or more transmission channels, be respectively the VLAN value of one or more channel allocations.
Preferably, determine that the transmission channel that message is sent to SDH network comprises: the ident value of analytic message; According to MAC value, judge whether message is the message that message process device need to be processed; If so, according to VLAN value, determine the transmission channel that message is sent to SDH network; If not, dropping packets.
Preferably, according to VLAN value, determine that the transmission channel that message is sent to SDH network comprises: VLAN value is mated with the VLAN value of pre-assigned one or more transmission channels; According to matching result, determine the transmission channel that message is sent to SDH network.
Preferably, before message is sent to SDH network by transmission channel, said method also comprises: message is carried out to general frame forming mode (Generic Framing Procedure, referred to as GFP) encapsulation, if message is operate/manage and safeguards (Operation/Administration and Maintenance, referred to as OAM) message, carries out GFP encapsulation after processing OAM message.
Preferably, transmission channel is virtual concatenation group (Virtual Concatenation Group, referred to as VCG) passage.
According to another aspect of the present invention, provide a kind of message processing method, having comprised: received the message from SDH network; Message is resolved, and according to the ident value of consulting in advance, the ident value of message is filled in message, wherein, ident value comprises: for PTN equipment in switch identify the ident value of message process device while communicating, for identifying the ident value of the transmission channel of message; Message after filling is sent to switch.
Preferably, before the message receiving from SDH network, said method also comprises: with the ident value of switch negotiation packet, wherein, ident value comprises: MAC value, VLAN value, MAC value is for identify message process device when communicating with switch, and VLAN value is for identifying the transmission channel of message.
Preferably, comprise with the ident value of switch negotiation packet: receive the MAC value that switch distributes, wherein, MAC value is that switch distributes the position in PTN equipment according to message process device; The information of the one or more transmission channels for message transmission that notice switch message process device self is configured; Receive switch and according to the information of one or more transmission channels, be respectively the VLAN value of one or more channel allocations.
Preferably, according to the ident value of consulting in advance, the ident value of message is filled into message and comprises: message is carried out to two layers of Ethernets encapsulation, if message is OAM message, carry out two layers of Ethernets encapsulation after processing OAM message.
Preferably, above-mentioned transmission channel is VCG passage.
According to an aspect of the present invention, provide a kind of message process device, be applied to PTN equipment, having comprised: receiver module, for receiving the message from the switch in PTN equipment; Passage determination module, for determining the transmission channel that this message is sent to SDH network; Sending module, for being sent to SDH network by this message by above-mentioned transmission channel.
Preferably, said apparatus also comprises: package module, for message is carried out to GFP encapsulation, if message is operation management maintain OAM message, carries out GFP encapsulation after processing OAM message.
According to another aspect of the present invention, provide a kind of message process device, be applied to PTN equipment, having comprised: receiver module, for receiving the message from SDH network; Parsing module, for resolving message; Packing module, for the ident value of message being filled into message according to the ident value of consulting in advance, wherein, ident value comprises: for PTN equipment in switch identify the ident value of message process device while communicating, for identifying the ident value of the transmission channel of message transmission; Sending module, for sending to switch by the message after filling.
The present invention, by determining the transmission channel of message, sends this message with this transmission channel to SDH network, and the message that can not only carry out PTN network and SDH network is adaptive, makes PTN message to cross SDH network by smooth transparent transmission, has realized the seamless link in PTN territory and SDH territory.And such processing can well adapt to the business of the various different bandwidths that switch provides, processing mode is comparatively flexible, also can save the bandwidth on message process device of the present invention and SDH communication between devices link, can on certain physical channel, transmit more business, reduce unnecessary bandwidth waste.
Embodiment
It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
The embodiment of the present invention provides a kind of message processing method, and Fig. 1 is the flow chart one according to the message processing method of the embodiment of the present invention, as shown in Figure 1, comprises that following step S102 is to step S106.
Step S102, receives the message from the switch in PTN equipment.
Step S104, determines the transmission channel that this message is sent to SDH network.
Step S106, is sent to SDH network by this message by above-mentioned transmission channel.
In correlation technique, PTN network and SDH network will inevitably long-term co-existence, for PTN equipment and SDH equipment interconnection, make PTN message smoothly by SDH network transparent transmission, and proceed to process at the PTN of opposite end network, also do not propose effective solution.In the embodiment of the present invention, by determining the transmission channel of message, with this transmission channel, to SDH network, send this message, the message that can not only carry out PTN network and SDH network is adaptive, make PTN message to cross SDH network by smooth transparent transmission, realized the seamless link in PTN territory and SDH territory.And such processing can well adapt to the business of the various different bandwidths that switch provides, processing mode is comparatively flexible, also can save the bandwidth on message process device of the present invention and SDH communication between devices link, can on certain physical channel, transmit more business, reduce unnecessary bandwidth waste.Above-mentioned transmission channel is VCG passage.
Before step S102, said method also comprises: with the ident value of switch negotiation packet, wherein, ident value comprises: MAC value, VLAN value, MAC value is for identify message process device when communicating with switch, and VLAN value is for identifying the transmission channel of message.In this preferred embodiment, by MAC value, can determine whether this message needs this message process device to process, can determine the passage of this message of transmission by VLAN value, implementation method is simple.
Comprise with the ident value of switch negotiation packet: receive the MAC value that switch distributes, wherein, MAC value is that switch distributes the position in PTN equipment according to message process device; The information of the one or more transmission channels for message transmission that notice switch message process device self is configured; Receive switch and according to the information of one or more transmission channels, be respectively the VLAN value of one or more channel allocations.
Determine that the transmission channel that message is sent to SDH network comprises: the ident value of analytic message; According to MAC value, judge whether message is the message that message process device need to be processed; If so, according to VLAN value, determine the transmission channel that message is sent to SDH network; If not, dropping packets.
According to VLAN value, determine that the transmission channel that message is sent to SDH network comprises: VLAN value is mated with the VLAN value of pre-assigned one or more transmission channels; According to matching result, determine the transmission channel that message is sent to SDH network.
Before message is sent to SDH network by transmission channel, said method also comprises: message is carried out to GFP encapsulation, if this message is OAM message, carry out GFP encapsulation after processing OAM message.Wherein, OAM message being processed can be that it is modified.In this preferred embodiment, because as network side interface arrangement, being requirement, PTN equipment have OAM to manage, so, for OAM message, need to identify and process.
The embodiment of the present invention also provides a kind of message processing method, and Fig. 2 is according to the flowchart 2 of the message processing method of the embodiment of the present invention, as shown in Figure 2, comprises that following step S202 is to step S206.
Step S202, receives the message from SDH network.
Step S204, message is resolved, and according to the ident value of consulting in advance, the ident value of message is filled in message, wherein, ident value comprises: for PTN equipment in switch identify the ident value of message process device while communicating, for identifying the ident value of the transmission channel of message.
Step S206, sends to switch by the message after filling.
In correlation technique, PTN network and SDH network will inevitably long-term co-existence, for PTN equipment and SDH equipment interconnection, make PTN message smoothly by SDH network transparent transmission, and proceed to process at the PTN of opposite end network, also do not propose effective solution.In the embodiment of the present invention, after message process device in PTN equipment is resolved the message receiving, the ident value of this message is filled in this message, and send to message switching device, make PTN message smoothly by SDH network transparent transmission, and proceed to process at the PTN of opposite end network, realized the seamless link in PTN territory and SDH territory.And such processing can well adapt to the business of the various different bandwidths that switch provides, processing mode is comparatively flexible, also can save the bandwidth on message process device of the present invention and SDH communication between devices link, can on certain physical channel, transmit more business, reduce unnecessary bandwidth waste.Above-mentioned transmission channel is VCG passage.
Before the message receiving from SDH network, said method also comprises: with the ident value of switch negotiation packet, wherein, ident value comprises: MAC value, VLAN value, MAC value is for identify message process device when communicating with switch, and VLAN value is for identifying the transmission channel of message.In this preferred embodiment, by MAC value, can determine whether this message needs this message process device to process, can determine the passage of this message of transmission by VLAN value, implementation method is simple.
Comprise with the ident value of switch negotiation packet: receive the MAC value that switch distributes, wherein, MAC value is that switch distributes the position in PTN equipment according to message process device; The information of the one or more transmission channels for message transmission that notice switch message process device self is configured; Receive switch and according to the information of one or more transmission channels, be respectively the VLAN value of one or more channel allocations.
Before in the ident value of message being filled into message according to the ident value of consulting in advance, said method also comprises: message is carried out to two layers of Ethernets encapsulation, if message is OAM message, carry out two layers of Ethernets encapsulation after processing OAM message.In this preferred embodiment, because as network side interface arrangement, being requirement, PTN equipment have OAM to manage, so, for OAM message, need to identify and process.
Corresponding to the message processing method shown in Fig. 1, the embodiment of the present invention provides a kind of message process device, is applied to PTN equipment, and this message process device can be for realizing the message processing method shown in Fig. 1.Fig. 3 is the structured flowchart one according to the message process device of the embodiment of the present invention, as shown in Figure 3, comprises receiver module 32, passage determination module 34 and sending module 36.Below its structure is described in detail.
Receiver module 32, for receiving the message from the switch in PTN equipment; Passage determination module 34, is connected to receiver module 32, for determining the transmission channel that this message is sent to SDH network; Sending module 36, is connected to passage determination module 34, for this message is sent to SDH network by the definite transmission channel of passage determination module 34.
Preferably, above-mentioned transmission channel is VCG passage.
Preferably, said apparatus also comprises: negotiation module, for the ident value with switch negotiation packet, wherein, ident value comprises: MAC value, VLAN value, and MAC value is for identify message process device when communicating with switch, and VLAN value is for identifying the transmission channel of message.
Negotiation module comprises: the first receiving element, and the MAC value of distributing for receiving switch, wherein, MAC value is that switch distributes the position in PTN equipment according to message process device; Notification unit, is connected to the first receiving element, for notifying the information of the one or more transmission channels for message transmission that switch message process device self is configured; The second receiving element, is connected to notification unit, for receiving switch, is respectively the VLAN value of one or more channel allocations according to the information of one or more transmission channels.
Determination module 34 comprises: resolution unit, for the ident value of analytic message; Judging unit, for judging according to MAC value whether message is the message that message process device need to be processed; Transmitting element, is connected to judging unit, for judgment result is that be in the situation that, determines the transmission channel that message is sent to SDH network according to VLAN value; Discarding unit, is connected to judging unit, in the situation that the determination result is NO, and dropping packets.
Transmitting element comprises: coupling subelement, for VLAN value is mated with the VLAN value of pre-assigned one or more transmission channels; Send subelement, be connected to coupling subelement, for determine the transmission channel that message is sent to SDH network according to matching result.
Preferably, said apparatus also comprises: package module, be connected to determination module 34, and for message is carried out to GFP encapsulation, if message is OAM message, carry out GFP encapsulation after processing OAM message.
Corresponding to the message processing method shown in Fig. 2, the embodiment of the present invention provides a kind of message process device, is applied to packet switching network PTN equipment, and this message process device can be for realizing the message processing method shown in Fig. 2.Fig. 4 is the structured flowchart two according to the message process device of the embodiment of the present invention, as shown in Figure 4, comprises receiver module 42, parsing module 44, packing module 46 and sending module 48.Below its structure is described in detail.
Receiver module 42, for receiving the message from SDH network; Parsing module 44, is connected to receiver module 42, for message is resolved; Packing module 46, be connected to parsing module 44, for the ident value of message being filled into message according to the ident value of consulting in advance, wherein, ident value comprises: for PTN equipment in switch identify the ident value of message process device while communicating, for identifying the ident value of the transmission channel of message transmission; Sending module 48, is connected to packing module 46, for the message after filling is sent to switch.
Preferably, above-mentioned transmission channel is VCG passage.
Said apparatus also comprises: negotiation module, for the ident value with switch negotiation packet, wherein, ident value comprises: MAC value, VLAN value, MAC value is for identify message process device when communicating with switch, and VLAN value is for identifying the transmission channel of message.
Negotiation module comprises: the first receiving element, and the MAC value of distributing for receiving switch, wherein, MAC value is that switch distributes the position in PTN equipment according to message process device; Notification unit, is connected to the first receiving element, for notifying the information of the one or more transmission channels for message transmission that switch message process device self is configured; The second receiving element, is connected to notification unit, for receiving switch, is respectively the VLAN value of one or more channel allocations according to the information of one or more transmission channels.
Said apparatus also comprises: package module, be connected to parsing module 44, and for message being carried out to the encapsulation of two layers of Ethernet, if message is OAM message, carry out two layers of Ethernets encapsulation after processing OAM message.
It should be noted that, the message process device of describing in device embodiment is corresponding to above-mentioned embodiment of the method, and its concrete implementation procedure had been carried out detailed description in embodiment of the method, did not repeat them here.
From above description, above-mentioned message processing method and device make PTN equipment energy and SDH equipment by the interconnected mixed networking that carries out of STM light mouth, the PTN network that the network that makes the message energy transparent transmission of PTN network cross SDH arrives opposite end continues to transmit, and the business granularity that makes this delivering path can adapt to well message in PTN network differs and the unfixed feature of required service bandwidth, can effectively utilize bandwidth, save unnecessary bandwidth waste.Fully save the bandwidth in each stage transmission, saveall is realized cost, improves the bandwidth availability ratio of overall network.
In order to make technical scheme of the present invention and implementation method clearer, below in conjunction with preferred embodiment, its implementation procedure is described in detail.
Fig. 5 is according to the preferred embodiment of the invention with the structured flowchart of the PTN equipment of message process device, as shown in Figure 5, PTN equipment comprises: the encapsulation of the frame of STM and de-encapsulating devices 502(are STM1-4 Framer), message process device 506, message switching device 508, tunnel processing unit 510, the customer service up/down PTN network processing device 512 of PTN network to the message process device 504 of SDH network, SDH network to PTN network.It should be noted that emphasis of the present invention is described in the message process device 506 of PTN network newly-increased in PTN equipment to the message process device 504 of SDH network and SDH network to PTN network, the remainder in PTN equipment is not that the present invention will describe.
Message process device 506 by above-mentioned PTN network to the message process device 504 of SDH network and SDH network to PTN network, the message that can not only carry out PTN network and SDH network is adaptive, make the message of PTN network to cross SDH network by smooth transparent transmission, and the using method based on said apparatus, communication bandwidth between the message process device that provides in message switching device 508 and the embodiment of the present invention (be PTN network message process device 506) to the message process device 504 of SDH network and/or SDH network to PTN network can be effectively provided, thereby saved unnecessary device.
It should be noted that, in practical application, the message process device 506 of PTN network to the message process device 504 of SDH network and SDH network to PTN network can be same device (hereinafter referred to as message process device), and the module that this device comprises (PTN network message transmissions to the message transmissions of SDH network and SDH network to PTN network) under different conditions is carried out different operations.
Above-mentioned message process device comprises: message processing module (MPM), OAM message processing module (MPM), GFP processing module, cascaded series processing module and SDH encapsulation/decapsulation module.Respectively modules is elaborated below.
(1) message processing module (MPM) (having realized the function of above-mentioned negotiation module)
Message switching device interface in message processing module (MPM) and PTN equipment, major function is as follows: (a) carry out needing in some message interaction the content of negotiation, comprise MAC value and VLAN value for differentiated service passage that message is walked; (b) to carrying out mutual message with message switching device, carry out certain processing, comprise the identification of MAC value and VLAN value, peel off and encapsulate.
(2) OAM message processing module (MPM)
OAM module, for the treatment of OAM message, is nonessential.Because as network side interface arrangement, in PTN equipment, be that requirement has OAM management, this device is identified and is processed OAM message by OAM module so.But OAM module not realizes the necessary module that heterogeneous networks of the present invention is realized service message intercommunication.
(3) GFP processing module (having realized the function of above-mentioned package module)
GFP(Generic Framing Procedure) processing module mainly realizes business payload is carried out to GFP encapsulation reconciliation encapsulation process.This processing is mainly in order to adapt to the difference in PTN network and SDH network.This module is in order to pass through synchronous transfer module (Synchronous Transfer Mode with SDH network, referred to as STM) light mouth is interconnected realizes service message intercommunication, SDH requires 8000 frames fixed rate frame per second, and PTN message be have paroxysmal, and bandwidth is fixing, by adaptive this species diversity of energy after GFP generic encapsulation.Can use the business type field sign in GFP and identify the business that this business is PTN.
(4) cascaded series processing module (also claiming VCG processing module)
The processing of cascaded series processing module has adopted virtual concatenation group (Virtual Concatenation Group, referred to as VCG) technology, and has used link capacity to adjust mechanism (Link Capacity Adjustment Scheme, referred to as LCAS) agreement.The function of this module is mainly the service channel that creates many logics, the business that can lead to different bandwidth.This module can be supported vc12 on the member of VCG, vc3, and the particle of the main flows such as vc4, can control the bandwidth granularity of logic business passage more accurately; And use LCAS agreement, can nondestructively adjust band width service, can adjust at any time better the demand of business like this, effective bandwidth is fully used.
(5) SDH encapsulation/decapsulation module
SDH encapsulation/decapsulation module is carried out SDH encapsulation by the service message of handling well, and is sent by light oral instructions.The message that also light mouth can be received carries out decapsulation processing.
Utilize above-mentioned message process device to realize the function that PTN network message transparent transmission is crossed SDH network, method is as follows:
(1) from PTN network toward SDH network side to
Step 1, above-mentioned message process device and switch in PTN equipment are held consultation, and decide through consultation MAC value and the VLAN value of inner Ethernet message while carrying out message interaction between the two, and with this, distinguishing is which this service message of bar channel transfer of which device.
Step 2, the MAC value in analytic message and VLAN value, determine that thus this message really belongs to this device need to be processed, and determine follow-up is by which bar passage to be transmitted.
Step 3, parses etype field, distinguishes OAM message or service message, and this field of corresponding service message is 8847, and this field corresponding to OAM message can configure.OAM message enters OAM message processing module (MPM) and processes, and general service message is from OAM message processing module (MPM) transparent transmission.
Step 4, GFP processing module is carried out GFP standard packaging to message, the member of the VCG passage then distributing according to this business by service message information distribution in each member's time slot.
Step 5, SDH frame sends.
The concrete negotiations process of above-mentioned steps one is as follows:
After powering on, above-mentioned message process device can send out hello packet to message switching device, so that this device of notice message switching device is available.After message switching device confirms that this device is online, a MAC value is distributed to this device in the position according to it in PTN equipment, for the sign of communicating by letter between message switching device and this device.
Message process device is configured the passage of the transport service of correspondence.In this device, be exactly VCG passage, can configure a plurality of VCG passages, and add corresponding member.Permission adopts default configuration when initial, follow-uply according to service traffics, adjusts.
Message process device notice message switching device, the data of the passage in this message process device and numbering, and the current service bandwidth situation that can carry that configures.
Message switching device can, according to the situation of passage in current registered device, be given the VLAN value of each channel allocation in message process device.Before subsequent packet switch sends service message to message process device, when the passage that can will use according to it determines to encapsulate two layers to it, the VLAN value of encapsulation is how many.
(2) from SDH network toward PTN network side to
Step 1 is MAC value between message process device and message switching device and the negotiation of VLAN value equally.Concrete negotiation step is asked for an interview " (1) from PTN network toward SDH network side to " negotiation step of step 1 is described in detail.
Step 2 separates payload from the signal of STM-1/STM-4.
Step 3, carries out the recovery of VCG, and resolves gfp frame, obtains real business information.Whether the validation of information by GFP is PTN message, and by the identification of message field (MFLD), determines whether OAM message, is that OAM message needs OAM processing module to process accordingly.
Step 4, the VLAN consulting according to step 1 before these information and MAC are filled to two layers of head, then the whole message switching device of issuing PTN equipment.
Instantiation below in conjunction with PTN network to the message handling process of SDH network and SDH network to the message handling process of PTN network is elaborated to the function of said apparatus.
(1) message process device to SDH network for PTN network, introduces PTN network is encapsulated to the method step being fitted in SDH network, and as shown in Figure 6, the method comprises that following step S602 is to step S626.
At initialization PTN network, during to the message process device of SDH network, carry out this device and the MAC of message switching device and the negotiation of VLAN.Negotiations process is if step S602 is to as shown in step S608.
Step S602, message process device power in certain groove position of PTN equipment (such as No. 3 groove positions).After power-up initializing completes, this device can send hello packet toward message switching device, represents that this device is online.
Step S604, message switching device can distribute a MAC value to message process device, the MAC value of oneself is issued just in the lump to the device powering on No. 3 groove positions.
Step S606, after MAC value is assigned, this message process device can be configured some for transmitting the VCG passage of PTN business.Message process device can send to message switching device by the data of these VCG passages and numbering.
Step S608, message switching device all distributes a unique VLAN value to each VCG passage in the message process device of reaching the standard grade in No. 3 groove positions according to existing passage situation in current system, and this value is notified to this message process device.
So far the negotiation of MAC and VLAN completes.Message process device can formally be processed PTN message, and concrete treatment step is as follows:
Step S610, judges whether the Ethernet message that message switching device is sent.If receive message, perform step S612, otherwise repeating step S610.
Step S612, judges that whether MAC value is correct, if incorrect, performs step S614, and gets back to step S610 and continue to carry out.If MAC value is correct, peels off MAC value, and continue follow-up step S616.
Step S614, dropping packets.
Step S616, is resolved to VLAN value, and according to this VLAN value, and the VLAN value of consulting in step S608 compares, thereby determines it is which bar passage (VCG passage) transmits this message value.Then peel off VLAN value, continue follow-up step S618.
Step S618, the value of two bytes of etype field in analytic message after VLAN field, field is judged service message or OAM message thus, if OAM message, execution step S620; Otherwise execution step S622.
Step S620, ensuing message can carry out the encapsulation of GFP, and PTN message is successfully encapsulated in follow-up STM signal.
Step S622, carries out special processing to OAM message, i.e. the handled content of above-mentioned OAM message processing module (MPM).
Which VCG step S624 is by assigning to corresponding VCG(through the message after GPF encapsulation definite by VLAN value) each member's time slot in, thereby adapt to neatly the business of various bandwidth.
Step S626, carries out the encapsulation process of STM signal.
The device that above-mentioned PTN network is processed to the message of SDH network as shown in Figure 7, description before and the flow process shown in Fig. 6 have clearly been introduced the function of modules, wherein, STM package module has been realized the encapsulation function in above-mentioned SDH encapsulation/decapsulation module, repeats no more herein.
(2) message process device to PTN network for SDH network, introduces and how to identify and to process the message that comes from SDH network, by PTN message normal process and be delivered in the message switching device of PTN equipment.As shown in Figure 8, comprise that following step S802 is to step S816.
At initialization PTN network, during to the message process device of SDH network, carry out this device and the MAC of message switching device and the negotiation of VLAN, if step S802 is to as shown in step S808.
Step S802, message process device powers on (such as No. 3 groove positions) in certain groove position of PTN equipment, and after power-up initializing completes, this device can send hello packet toward message switching device, represents that this device is online.
Step S804, message switching device can distribute a MAC value to message process device, the MAC value of oneself is issued just in the lump to the device powering on No. 3 groove positions.
Step S806, after MAC value is assigned, this message process device can be configured some for transmitting the VCG passage of PTN business, and this device can send to message switching device by the data of these VCG passages and numbering.
Step S808, message switching device all distributes a unique VLAN value to each VCG passage in the message process device of reaching the standard grade in No. 3 groove positions according to existing passage situation in current system, and this value is notified to message process device.
So far the negotiation of MAC and VLAN completes, and message process device can formally be processed PTN message, and concrete treatment step is as follows:
Step S810 parses payload from SDH frame.
Step S812, carries out the recovery of VCG, then from combine complete message, carries out the decapsulation of GFP.When decapsulation, whether the value of the user's payload sign (User Payload Identifier, referred to as UPI) in judgement Frame is 0x0d, if 0x0d just represents it is service message or the OAM message of PTN.
Step S814, carries out some special processings to the message of OAM, such as LM field etc.To these processing of OAM message, be to carry out in above-mentioned OAM message processing module (MPM).
Step S816, carries out two layers of Ethernet encapsulation to the message after above step process, adds VLAN field and MAC field.This value is consulted to step S808 at step S802, and VLAN value also depends on message derives from which passage (being VCG).
So far message processing finishes, and is passed to skewing mechanism carries out the processing in follow-up PTN equipment and in PTN network by the signal communication means between message switching device and message process device.
The device that above-mentioned PTN network is processed to the message of SDH network as shown in Figure 9, description before and the flow process shown in Fig. 8 have clearly been introduced the function of modules, wherein, STM decapsulation module has realized the decapsulation function in above-mentioned SDH encapsulation/decapsulation module, repeats no more herein.
It should be noted that, in the step shown in the flow chart of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
In sum, according to the abovementioned embodiments of the present invention, a kind of message processing method and device are provided.The present invention, by determining the transmission channel of message, sends this message with this transmission channel to SDH network, and the message that can not only carry out PTN network and SDH network is adaptive, makes PTN message to cross SDH network by smooth transparent transmission, has realized the seamless link in PTN territory and SDH territory.And such processing can well adapt to the business of the various different bandwidths that switch provides, processing mode is comparatively flexible, also can save the bandwidth on message process device of the present invention and SDH communication between devices link, can on certain physical channel, transmit more business, reduce unnecessary bandwidth waste.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.