Background technology
Change under trend promotion in telecommunication service network protocol IP (Internet Protocol), transmit net loaded business
Change to based on IP from based on time division multiplex (TDM, Time Division Multiplexing).In this requirement drive
Under, with multiprotocol label switching-transport architecture (MPLS-TP, Multi-Protocol Label Switching-Transport
) and operator backbone bridge joint-traffic engineering (PBB-TE, Provider Backbone Bridge-Traffic Profile
Engineering) be representative Packet Transport Network (PTN, Packet Transport Network) technology, as IP/MPLS
Or Ethernet bearing technology and the transmission product that is combined of network technology, it is the mainstream scheme for currently realizing Packet Transport Network, can be with
All of movement and fixed service are carried, including voice, data and video traffic etc..
Wherein, MPLS-TP introduces OAM (OAM, the Operations of transmission concept
Administration and Maintenance) mechanism, with powerful transfer capability, can run on various physical layer skills
Art.One of OAM implementations of MPLS-TP are based on field programmable gate array (FPGA, Field-Programmable
Gate Array) realize.MPLS-TP OAM points is three levels, respectively section layer, label switched path (LSP, Label
Switched Path) layer and pseudo-wire (PW, Pseudo-Wire) layer.
Due to this hierarchy, FPGA needs to safeguard multiple actives OAM configuration information tables, on demand OAM configuration information tables
And expect receive information table.Moreover, FPGA also needs to carry out framing according to configuration information, and the cycle according to configuration is by group
The message timing built up is sent to exchange chip;During the MPLS-TP OAM messages sent on exchange chip is received, in addition it is also necessary to right
Message is detected, alarm report and alarm disappearance information is safeguarded, while to detection of connectivity (CV, Connectivity
Verification), loopback request (LBM, Loop Back Message), loopback response (LBR, Loop Back
) etc. Response frame is counted.
In summary it can be seen, in the MPLS-TP OAM implementations based on FPGA, the transmission of MPLS-TP OAM messages, connect
Receive and treatment is all completed by FPGA, cause FPGA to assume responsibility for most of work of MPLS-TP OAM realizations, maintenance list item is numerous
Many, task is heavy.Although FPGA resource is fully utilized, the cost of equipment is also increased simultaneously.
Therefore, the utilization rate of FPGA how is reduced on the basis of equipment MPLS-TP OAM(Operation Administration Maintenance)s are not influenceed, product is reduced
Cost, so as to lift the competitiveness of product in market, become some small-sized Packet Transport Network equipment problems faceds.
The content of the invention
The present invention is regarding to the issue above, it is proposed that a kind of message sending and receiving method, device, is not influenceing MPLS-TP
In the case of OAM(Operation Administration Maintenance), the cost of product is substantially reduced.
In one aspect, the invention provides a kind of file transmitting method, including:
Multiprotocol label switching transport architecture MPLS-TP operation management safeguards that OAM modules receive MPLS-TP OAM and match somebody with somebody confidence
Breath, and send the configuration information and VLAN ID VLAN ID;
Ethernet OAM module receives the configuration information and VLAN ID, judges whether the configuration information is that CV frames are enabled,
If the configuration information is CV frames enabled, driving interface function is called to send Ethernet OAM message to FPGA by exchange chip;
Ethernet OAM message includes the Ethernet CV frames of assigned vlan ID;
Ethernet OAM message is converted to MPLS-TP OAM messages by FPGA, by exchange chip by being pre-created from friendship
The passage for changing the OAM mouthfuls of NNI to exchange chip mouthfuls of chip sends the MPLS-TP OAM messages.
In another aspect, the invention provides a kind of packet transmission device, including:
OAM modules are safeguarded in multiprotocol label switching transport architecture MPLS-TP operation management, for receiving MPLS-TP OAM
Configuration information, concurrently send configuration information and VLAN ID VLAN ID;
Ethernet OAM module, for receiving the configuration information and VLAN ID, judges whether the configuration information is CV frames
Enable;
Exchange chip, for when configuration information for CV is enabled when send Ethernet OAM message;The Ethernet OAM message bag
Include the Ethernet CV frames of assigned vlan ID;
FPGA, for receiving Ethernet OAM message and being converted into MPLS-TP OAM messages;
Exchange chip, is additionally operable to receive the MPLS-TP OAM messages that FPGA sends, and by being pre-created from exchange core
The passage of the OAM mouthfuls of NNI to exchange chip mouthfuls of piece sends MPLS-TP OAM messages.
In another aspect, the invention provides a kind of message method of reseptance, including:
Exchange chip receives MPLS-TP OAM messages and according to the NNI from exchange chip mouthfuls for being pre-created to exchange core
The passage of OAM mouthfuls of piece sends the MPLS-TP OAM messages;
FPGA receives the MPLS-TP OAM messages and is converted into Ethernet OAM message;
Exchange chip judges whether Ethernet OAM message is CV frames, if CV frames are then detected by the CV frames
Obtain warning information.
On the other hand, present invention also offers a kind of message reception device, including:
Exchange chip, for receiving MPLS-TP OAM messages and the NNI from the exchange chip mouthfuls of best friend according to being pre-created
The passage for changing OAM mouthfuls of chip sends MPLS-TP OAM messages;
FPGA, for receiving MPLS-TP OAM messages and being converted into Ethernet OAM message;
Exchange chip, is additionally operable to judge whether Ethernet OAM message is CV frames, if CV frames are then carried out by CV frames
Detection obtains warning information.
The present invention realizes MPLS-TP OAM(Operation Administration Maintenance)s using Ethernet OAM, and FPGA is only responsible for Ethernet OAM message and MPLS-
Conversion between TP OAM messages.Using technical scheme, in the case where MPLS-TP OAM(Operation Administration Maintenance)s are not influenceed, subtract
The task of few FPGA, reduces the cost of product.
Specific embodiment
In order that technical scheme and advantage become more apparent, below in conjunction with accompanying drawing to of the invention exemplary
Embodiment is described in more detail, it is clear that described embodiment is only a part of embodiment of the invention, rather than
The exhaustion of all embodiments.
The embodiment of the present invention proposes a kind of file transmitting method, and Fig. 1 shows the stream that embodiment of the present invention message sends
Cheng Tu, including:
S101, MPLS-TP OAM modules receive MPLS-TP OAM configuration informations, and send the configuration information and void
Intend LAN (VLAN, Virtual Local Area Network) mark (ID, IDentity).
MPLS-TP OAM modules receive the MPLS-TP OAM configuration informations that webmaster is set, and are backed up;Send the configuration
The information such as information and VLAN ID.
Interchanger is generally divided into 255 VLAN, and the ID of each VLAN can be the Any Digit between 1 to 4096, utilize
ID distinguishes different VLAN.
Wherein, VLAN ID are that MPLS-TP OAM modules consult to determine with Ethernet OAM module.Assuming that equipment supports M bars
Section layer LSP layers of OAM, N bar PW layers of OAM and P bars OAM, then VLAN ID be set to 1- (M+N+P).Wherein, 1 to the M category of VLAN ID
In the configuration information of section layer, (M+1) belongs to LSP layers of configuration information to (M+N), and (M+N+1) to (M+N+P) belongs to PW layers and match somebody with somebody
Confidence ceases.
S102, Ethernet OAM module receive the configuration information and the VLAN ID, judge whether the configuration information is CV
Frame is enabled, if the configuration information is CV frames enabled, performs S103.
Due to the transmission cycle minimum 3.3ms of CV frames, regular software sends message and is unable to reach 3.3ms, therefore generally
In the case of, the transmission of CV frames needs exchange chip (alternatively referred to as driving) to complete.Ethernet OAM module judges the configuration information
Middle CV frames enable whether flag CvState is designated CV frames enable, and it is enable generations that such as CV frames enable flag CvState
Table CV frames are enabled, and determine whether to send Ethernet CV frames by judging the flag.
S103, driving interface function is called to send Ethernet OAM message to FPGA.That is, by exchange chip by Ethernet
OAM message is sent to FPGA.
Wherein, the Ethernet OAM message includes the Ethernet CV frames of assigned vlan ID.
Further, enabled if the configuration information is not CV frames, e.g. other MPLS-TP OAM are enabled, then performed
S104。
S104, Ethernet OAM message is packaged into by Ethernet OAM module framing, will included in addition to Ethernet CV frames
Ethernet OAM message is sent to FPGA.
S105, FPGA receive the Ethernet OAM message that driving or Ethernet OAM module send, by the Ethernet OAM message
Be converted to MPLS-TP OAM messages.
Ethernet OAM message is converted into MPLS-TP OAM messages specifically, FPGA takes according to the Ethernet OAM message
The VLAN ID of band are by VLAN ID and ingress tag edge router (LER, Label Edge Router) Ingress's
The mapping table (as shown in Figure 2) of label Label finds Ingress Label information corresponding with the VLAN ID, by this
The VLAN ID of message remove, the Ingress Label information corresponding with VLAN ID that addition finds, and for it is added
MPLS-TP OAM message heads, obtain the MPLS-TP OAM messages of standard.
S106, by the standard message send to drive (or exchange chip), led to by being driven through be pre-created first
Road sends standard message.
Further, the first passage being pre-created refers to MPLS-TP OAM messages from OAM mouthfuls of exchange chip to exchange
The passage of NNI (Network to Network Interface) mouth of chip.
Wherein, OAM mouthfuls is that FPGA passes through the end that physical layer (PHY, Physical Layer) chip is connected with exchange chip
Mouthful;The NNI mouthfuls of access for being to realize multi-service transport platform (MSTP, Multi-Service Transfer Platform) network
Ring carries the craft port of business with the convergence ring of grouping conveying network.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of packet transmission device, and Fig. 3 shows the present invention
The structural representation of embodiment packet transmission device, including:
MPLS-TP OAM modules, for receiving MPLS-TP OAM configuration informations, and send the configuration information and virtual
LAN ID VLAN ID;
Ethernet OAM module, for receiving the configuration information and the VLAN ID;Judge whether configuration information is CV frames
Enable, when configuration information is that CV frames are enabled, call driving interface function to send Ethernet OAM message;The Ethernet OAM message
Ethernet CV frames including assigned vlan ID;
FPGA, for receiving the Ethernet OAM message and being converted into MPLS-TP OAM messages;
Exchange chip, for the passage hair of the OAM from the exchange chip mouthfuls of NNI to exchange chip mouthfuls by being pre-created
Send MPLS-TP OAM messages.
Further, when configuration information is not that CV frames are enabled, Ethernet OAM module is additionally operable to, and framing is packaged into ether
Net OAM message.
Further, the VLAN ID that FPGA is used to be carried according to Ethernet OAM message pass through VLAN ID and Ingress
The corresponding relation table search of Label Ingress Label information corresponding with the VLAN ID, VLAN ID are removed, and addition is looked into
The Ingress Label information for finding, and increase MPLS-TP OAM message heads, Ethernet OAM message is converted into MPLS-TP
OAM message.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of message method of reseptance, and Fig. 4 shows the present invention
The flow chart of embodiment message method of reseptance, including:
S201, exchange chip receive MPLS-TP OAM messages, and according to the second channel being pre-created by the MPLS-TP
OAM message is sent to FPGA.
Wherein, the second channel being pre-created refers to MPLS-TP OAM messages from NNI mouthfuls of exchange chip to exchange chip
OAM mouthfuls of passage.
After S202, FPGA receive MPLS-TP OAM messages, the MPLS-TP OAM messages are converted into Ethernet OAM report
Text.
The MPLS-TP OAM messages are converted into Ethernet OAM message specifically, FPGA is reported according to the MPLS-TP OAM
The label Label information of egress tag edge router (LER, Label Edge Router) Egress that text is carried is arrived
VLAN ID with found in Egress Label mapping tables (as shown in Figure 5) it is corresponding with the MPLS-TP OAM messages
VLAN ID;Remove MPLS-TP OAM messages head, add the VLAN ID for finding, MPLS-TP OAM messages are converted into ether
Net OAM message is sent to exchange chip.
S203, exchange chip judge whether the Ethernet OAM message is CV frames.
If CV frames, then perform S204;
If not CV frames, e.g. other OAM frames then perform S205.
S204, CV frames are detected by exchange chip, Loss of continuity (LOC, Loss of is obtained according to configuration information
The warning information such as continuity).
Ethernet OAM module polls detect warning information, the warning information feedback MPLS-TP OAM modules that will be detected,
Webmaster is reported by MPLS-TP OAM modules.
For example:It is 1 that Ethernet OAM module polls detect LOC alarm identifiers position, then represent with the presence of LOC alarms.
The direct transmitted to CPU of Ethernet OAM message is given Ethernet OAM resume module by S205, exchange chip.
After Ethernet OAM module receives the Ethernet OAM message of non-CV frames, it is parsed, counting is processed.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of MPLS-TP OAM messages reception device, Fig. 6
The structural representation of message reception device is shown, including:
Exchange chip, for receiving MPLS-TP OAM messages and the NNI from the exchange chip mouthfuls of best friend according to being pre-created
The passage for changing OAM mouthfuls of chip sends the MPLS-TP OAM messages;
FPGA, for receiving MPLS-TP OAM messages and being converted into Ethernet OAM message;
Exchange chip, is additionally operable to judge whether the Ethernet OAM message is CV frames, if CV frames are then by the CV frames
Carry out detection and obtain warning information.
Further, FPGA is for the Engress Label information according to the carrying of MPLS-TP OAM messages to VLAN ID
With lookup VLAN ID corresponding with MPLS-TP OAM messages in the mapping table of Engress Label, remove MPLS-TP
OAM message head simultaneously adds the VLAN ID for finding, and MPLS-TP OAM messages are converted into Ethernet OAM message.
Further, exchange chip is additionally operable to, if the Ethernet OAM message is non-CV frames, Ethernet OAM message is straight
Connect transmitted to CPU.
The present invention realizes MPLS-TP OAM(Operation Administration Maintenance)s using Ethernet OAM, and FPGA is only responsible for Ethernet OAM in the present invention
Conversion between message and MPLS-TP OAM messages, does not retransmit and detects MPLS-TP OAM messages, also no longer safeguards alarm
Report and disappearance information, so as to give full play to the ethernet feature of exchange chip and save FPGA resource to greatest extent.
Using technical scheme, in the case where MPLS-TP OAM(Operation Administration Maintenance)s are not influenceed, the cost of product is greatly reduced, carried
The competitiveness of product in market is risen.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than is limited.Therefore, without departing substantially from this
In the case of the spiritual and its essence of invention, those skilled in the art can be variously modified, replace and modification.It will be apparent that but
These change, replacement and modification should be all covered by within the protection domain of the claims in the present invention.