Summary of the invention
The purpose of this invention is to provide a kind of method and apparatus of realizing edge-to-edge pseudo-line simulation, be used for solving at IP-DSLAM equipment, that the method for existing edge-to-edge pseudo-line simulation exists because exchange chip does not support that the multi protocol label clearing house causes is difficult to realize MPLS, and the master control borad exchange chip can't determine whether the circuit that the user inserts is the defective of PWE3 service circuit.
Therefore the invention provides a kind of method that realizes edge-to-edge pseudo-line simulation, comprise up process and descending process, in described up process and descending process, a multi protocol label exchange transaction card is set, and further comprise: in the described up process, step 1. the inside multi protocol label exchange message that the master control borad exchange chip will be received is transmitted to described transaction card; Step 2. this transaction card will exchange the data message that message is encapsulated as the edge-to-edge pseudo-line simulation form, and this message switching is arrived described exchange chip; In the described descending process, steps A. the outside multi protocol label exchange message that described exchange chip will be received is transmitted to described transaction card; The data message that this transaction card of step B. will exchange in the message is encapsulated as described inner multi protocol label exchange message, and this exchange message switching after will encapsulating is to described exchange chip.
Said method, wherein, before the described step 1, data message enters user's plate, the exchange device of this user's plate will be encapsulated as described inner multi protocol label exchange message from the described data message of pseudo wire emulation edge-to-edge business circuit, and exchange to described master control borad exchange chip by interface; After the described step 2, described master control borad exchange chip sends described exchange message switching to upper connective plate and the port by this upper connective plate.
Said method, wherein, before the described steps A, descending data message enters upper connective plate, and this upper connective plate sends to described master control borad exchange chip with this data message, and this exchange chip is judged the type of this message; If described outside multi protocol label exchange message then arrives described transaction card with this message switching, otherwise this message is switched directly to user's plate; After the step B, described inner multi protocol label exchange message is forwarded to described user's plate by described master control borad exchange chip, and this user's plate carries out decapsulation, and the Payload that takes out in this exchange message sends by edge-to-edge pseudo-line simulation outlet circuit.
Said method, wherein, described user's plate comes the swap data message by described exchange device, and this exchange device adopts field programmable logic array, and this field programmable logic array is supported the relevant configuration of pseudo wire emulation edge-to-edge business circuit; And there is user's place in circuit attribute list on this field programmable logic array, the relevant information of preserving user's place in circuit in this table, the index of this table is user's place in circuit sign.
Said method, wherein, in up process, after described data message entered user's plate, this user's plate was discerned user's place in circuit of this message, and inquired about described user's place in circuit attribute list according to this user's place in circuit; If this place in circuit is the pseudo wire emulation edge-to-edge business circuit, then this data message is encapsulated as described inner multi protocol label exchange message as Payload, exchange to described master control borad exchange chip then; For the described data message that non-pseudo wire emulation edge-to-edge business circuit transmits, described field programmable logic array arrives described master control borad exchange chip according to the purpose Media Access Control address of this message and the information exchange of VLAN ID.
Said method, wherein, in up process, described master control borad exchange chip exchanges transaction card with described inner multi protocol label exchange message switching to described multi protocol label by the type of recognition data message or according to the purpose Media Access Control address; To be switched directly to upper connective plate from the data message of non-pseudo wire emulation edge-to-edge business circuit.
Said method, wherein, described multi protocol label exchange transaction card is realized virtual circuit label list, user's place in circuit attribute list, multi protocol label switch label table; This virtual circuit label list is preserved virtual circuit label and corresponding user's place in circuit index; This user's place in circuit attribute list is preserved user's place in circuit relevant information; The identification information of this multi protocol label switch label table record virtual circuit label.
Said method, wherein, further comprise in the described step 2: the type that described transaction card is discerned described message is described inner multi protocol label exchange message, parse user's place in circuit information of this message, utilize this circuit information inquiry to be positioned at described user's place in circuit attribute list of this transaction card, obtain the place in circuit type, the sign of virtual circuit label, inquire about the virtual circuit label list with the sign of this virtual circuit label again, obtain the ectonexine label at outlet opposite end provider edge, next jumps media access control information, and according to the described place in circuit type package data message that is described edge-to-edge pseudo-line simulation form, send this message to described master control borad exchange chip, and carry out service quality mapping; If do not find described next jump media access control information, then send corresponding message to described master control borad CPU, transmit described inner multi protocol label exchange message or trigger address resolution protocol and resolve next and jump media access control information by this CPU.
Said method, wherein, among the described step B, described transaction card extracts tunnel label and virtual circuit label, with this virtual circuit searching label multi protocol label switch label table, obtains the sign of virtual circuit label, inquire about the virtual circuit label list with the sign of this virtual circuit label again, obtain user's place in circuit index, utilize this search index user place in circuit attribute list then, obtain edge-to-edge pseudo-line simulation outlet circuit and packaging information; Again encapsulating this data message is that described inner multi protocol label exchanges message and sends this message to described master control borad exchange chip, and carries out service quality mapping.
Said method wherein, sends this message after the described master control borad exchange chip at described multi protocol label exchange transaction card, and this master control borad exchange chip is forwarded to described user's plate with this message; The field programmable logic array of described user's plate is received the message of sending, judge if described inner multi protocol label exchange message, then decapsulation is taken out edge-to-edge pseudo-line simulation outlet circuit information, is removed medium access control head, information of virtual local area network and type field in this message, sends to edge-to-edge pseudo-line simulation outlet circuit with the Payload taking-up and after carrying out corresponding operating; If judge it is non-pseudo wire emulation edge-to-edge business message, then be switched directly to user port.
Said method, wherein, before the described step B, described outside multi protocol label exchange message is switched to after the described transaction card, and this transaction card is discerned this message if the control message is then delivered to master control borad CPU with this message.
Said method, wherein, the described inner multi protocol label exchange message after the encapsulation comprises purpose Media Access Control address, source Media Access Control address, internal head, type of message, Payload at least;
And the type of message after this encapsulation is designated inner multi protocol label exchange, and described internal head comprises user's place in circuit information, message length.
A kind of device of realizing edge-to-edge pseudo-line simulation, comprise DSLAM, this multiplexer comprises master control borad, user's plate, upper connective plate at least, and increases a multi protocol label exchange transaction card, and this transaction card takies a physical slot position of this multiplexer; Described user's plate comprises the exchange device, and described master control borad comprises exchange chip; Described exchange device on described user's plate is connected with the inline mouth of described exchange chip by interface; Described transaction card is connected with the inline mouth of described exchange chip by Media Independent Interface; Described exchange chip is connected with described upper connective plate by interface.
Said apparatus, wherein, described master control borad further comprises a CPU, if described multi protocol label exchange transaction card receives the multi protocol label exchange message of down direction, and judges that this message is the control message, then directly is sent to described CPU with this message.
Said apparatus, wherein, the exchange device on described user's plate adopts field programmable logic array, and this field programmable logic array is connected by the inline mouth of upper united mouth with the exchange chip of described master control borad; And this field programmable logic array has user's place in circuit attribute list, the relevant information of preserving user's place in circuit in this table, and the index of this table is user's place in circuit sign.
Said apparatus, wherein, described multi protocol label exchange transaction card is realized virtual circuit label list, user's place in circuit attribute list, multi protocol label switch label table; Described virtual circuit label list is preserved multi protocol label switch label and corresponding user's place in circuit index; Described user's place in circuit attribute list is preserved user's place in circuit relevant information; The identification information of described multi protocol label switch label table record virtual circuit label.
Said apparatus, wherein, uplink data messages is exchanged to the exchange chip of described master control borad by described user's plate, this exchange chip exchanges to described multi protocol label exchange transaction card with the data message from the pseudo wire emulation edge-to-edge business circuit in this uplink data messages, this transaction card is encapsulated as this data message the message of edge-to-edge pseudo-line simulation form, send this message to described exchange chip, this exchange chip sends this message switching to described upper connective plate and the port by this upper connective plate.
Said apparatus, wherein, downlink data message enters described upper connective plate, this upper connective plate sends to this message the exchange chip of described master control borad, this exchange chip sends to described multi protocol label exchange transaction card with outside multi protocol label exchange message wherein, this transaction card is encapsulated as inner multi protocol label exchange message with this message after obtaining edge-to-edge pseudo-line simulation outlet circuit and packaging information according to this message, and send this message to described exchange chip, be forwarded to described user's plate by this exchange chip, this message of this user's plate decapsulation takes out Payload and sends by edge-to-edge pseudo-line simulation outlet circuit.
Use technical scheme of the present invention, increased a MPLS transaction card, this transaction card has the protocol processes function, makes and realized the PWE3 business on IP-DSLAM; And owing to increased user's place in circuit attribute list, the user's data message according to the information in this user's place in circuit attribute list form exchange to the master control borad exchange chip behind the inner MPLS message after, this inside MPLS message has guaranteed can not lose user's place in circuit information.
Embodiment
For making purpose of the present invention, technical scheme and implementation result clearer, below in conjunction with the accompanying drawings and the specific embodiments technical scheme of the present invention is described in detail.
The purpose of this invention is to provide a kind of method and apparatus of on IP-DSLAM, realizing the PWE3 function.For achieving the above object, on IP-DSLAM equipment, increase a MPLS transaction card, this card takies the physical slot position of IP-DSLAM, and by MII interface and master control borad exchange chip inline mouthful is connected, this MPLS transaction card has the protocol processes function, can carry out the encapsulation and the conversion of mpls protocol processing and data message.The exchange device of user's plate adopts FPGA, and this FPGA supports the relevant configuration of PWE3 service circuit.
The flow process of PWE3 business is finished jointly by FPGA, master control borad exchange chip, the MPLS transaction card of user's plate; Wherein, the master control borad exchange chip is finished the data exchanging function of PWE3 business datum between user's plate and MPLS transaction card, the FPGA of user's plate and MPLS transaction card to the PWE3 data message make amendment, operation such as encapsulation, decapsulation, the specific implementation flow process is as follows:
On the FPGA of user's plate, realize user's place in circuit attribute list, the relevant information of preserving user's place in circuit, the index of this table is user's place in circuit sign.When user's plate is received data message from the PWE3 service circuit, be identified at according to described user's place in circuit and carry out matched and searched in this table, the relevant information of the user's place in circuit that inquires will be packaged in the inside MPLS message of neotectonics, should inside MPLS message be customization type wherein, be used for the PWE3 service message on the MPLS transaction card identification up direction, so that in message switching to the MPLS transaction card, the MPLS transaction card can obtain the relevant information of user's place in circuit, thereby determines that PWE3 connects and according to the dissimilar encapsulation of carrying out different-format of user's place in circuit.
Realize virtual circuit (VC, Virtual Circuit) label list, user's place in circuit attribute list, MPLS label list on the MPLS transaction card; Wherein the VC label list is preserved the MPLS label, and this MPLS label comprises vpn label, i.e. the PW label; Outer layer label, i.e. tunnel label, and corresponding user's place in circuit index, this index is VC ID; User's place in circuit attribute list is preserved user's place in circuit relevant information, for example circuit types, VC ID etc., and index identifies for user's place in circuit; The MPLS label list comprises information such as VC ID, and index is the VC label.
Adopt the IP-DSLAM equipment that increases the MPLS transaction card described above, realize the transmission of user data message, wherein, user data message up direction is meant that this data message is up to the PSN network from CE, the processing procedure of this data message comprises following steps as shown in Figure 2:
Step 201. user's data message enters user's plate, and user's plate is discerned user's place in circuit of this data message, and the user's place in circuit attribute list among the FPGA on the inquiring user plate.If finding this place in circuit is the PWE3 service circuit, encapsulation forms inner MPLS message as Payload then the data message that receives to be handled the back, this inside MPLS message has increased purpose medium access control (MAC, MediaAccess Control) parameters such as address, source MAC, user's place in circuit information, message length, and be inner MPLS message with the type identification of this message; For the data message on the non-PWE3 service circuit, described FPGA carries out two layers of exchange according to the target MAC (Media Access Control) address of this message and the information of VLAN (VLAN, Virtual Local Area Network) ID.
Step 202. user plate FPGA sends to the master control borad exchange chip to the inside MPLS message of neotectonics, and this exchange chip should inside MPLS message switching arrive the MPLS transaction card by the type of this inside MPLS message of identification reception or according to the target MAC (Media Access Control) address in this message; If the data message of right and wrong PWE3 service circuit, this exchange chip is switched directly to upper connective plate with it.
The described inner MPLS message switching of step 203. is behind the MPLS transaction card, it is inner MPLS message that the MPLS transaction card is discerned this type of message, then parse the information of the original user place in circuit of this data message, utilize this information inquiry to be arranged in user's place in circuit attribute list of MPLS transaction card, obtain place in circuit type, VC ID etc.; Again with this VC ID inquiry VC label list, obtain the information such as ectonexine label, next-hop MAC of outlet opposite end PE, the encapsulation formation of carrying out data message according to described place in circuit type meets the message of PWE3 form, and carries out service quality (QoS, Quality of Service) mapping.
If step 204. finds next-hop mac address, then this MAC Address is encapsulated in header, send this message to the master control borad exchange chip; If do not find next-hop mac address, then send a message to master control borad CPU, transmit the MPLS message or trigger address resolution protocol (ARP, AddressResolution Protocol) parsing next-hop mac address by this CPU.Dotted line among the figure is represented control information, does not transmit control message to CPU when the MPLS transaction card finds next-hop mac address.
Step 205. master control borad exchange chip carries out two layers of exchange to the message that meets the PWE3 form from the MPLS transaction card, sends this message to upper connective plate.
Step 206. upper connective plate is not done other processing, directly sends this message.
The increase of adopt describing the IP-DSLAM equipment of MPLS transaction card realize the transmission of user data message, wherein, user data message down direction is meant that this data message goes downwards to CE from the PSN network, it is the inverse process of up direction, the processing procedure of this data message comprises following steps as shown in Figure 3:
Step 301~302. downlink data messages enter upper connective plate, and this upper connective plate does not deal with this message and directly sends to the master control borad exchange chip.
Step 303. master control borad exchange chip is judged the type of this message, if outside MPLS message then sends to message the MPLS transaction card; Exchange to user's plate otherwise directly carry out two or three layers, promptly walk normal flow process.
The message that the identification of step 304.MPLS transaction card is received is if MPLS control message then sends to master control borad CPU by the dotted line D1 that identifies among the figure and handles; If outside MPLS data message then extracts tunnel label, i.e. outer layer label, with the VC label, promptly vpn label is used VC searching label MPLS label list, obtain VC ID, with this VC ID inquiry VC label list, obtain user's place in circuit index again, utilize this search index user place in circuit attribute list then, obtain PWE3 outlet circuit and packaging information, again encapsulate this data message and form inner MPLS message, and carry out the QoS mapping, send this message then to the master control borad exchange chip.
Step 305. master control borad exchange chip carries out Layer 2 data and is forwarded to user's plate.
Step 306. user plate FPGA receives the message that exchange chip is sent, find if inner MPLS message, carrying out corresponding decapsulation handles, take out PWE3 outlet circuit information, remove the fields such as MAC head, vlan information and type in the message, Payload is taken out carry out sending to PWE3 outlet circuit after the respective handling; Non-PWE3 service message mails to user port by normal two layers of exchange flow process.
A kind of method that realizes the IP-DSLAM equipment of pseudo wire emulation edge-to-edge business and on this IP-DSLAM equipment, realize pseudo wire emulation edge-to-edge business of the present invention, make on IP-DSLAM and to support the PWE3 service application, the data transparency of user side is sent to far-end CE.By in IP-DSLAM equipment, increasing a MPLS transaction card, not only can realize the point-to-point PWE3 service application of two layers of same principle (like-to-like) well, has favorable expansibility for demands such as three layers of MPLS vpn service that may occur later on, virtual special local area network service (VPLS, Virtual Private LAN Service) business, PWE3 isomery place in circuit business.
Describe a preferred embodiment of the present invention in detail below in conjunction with accompanying drawing.Behind the system initialization at IP-DSLAM equipment place, configuring static route or dynamic routing protocol, label allocation distribution protocol (LDP, Label Distribution Protocol) or other label protocols, like this, IP-DSLAM will learn all routing iinformations and the corresponding label information on the network.Configuration PWE3 service circuit and the VC ID on this service circuit, the IP address of far-end PE, the parameters such as mode of operation of service circuit, system can carry out the PWE3 establishment of connection and all list items of each table in FPGA, the MPLS transaction card are set.When described all command configuration finish and IP-DSLAM study stable after, system just can transmit the data on the PWE3 service circuit.As shown in Figure 4, be that embodiment of the invention FPGA handles up PWE3 business datum message flow chart:
Step 401. user plate is received the data message that user's place in circuit is sent.
Step 402.FPGA inquiry is positioned at user's place in circuit attribute list of user's plate, whether judges this data message from the PWE3 service circuit, if change step 404, otherwise changes step 403.
Step 403. data message directly carries out two layers of exchange.
Step 404. judges whether this message is the ATM type, if change step 406, otherwise changes step 405
Step 405. is for the Ethernet message, removes checksum field and extracts the data of remainder.
Step 406. then will be analyzed the mode of operation of place in circuit for the ATM message, judges whether it is ATM Adaptation Layer 5 (AAL5, ATM Adaptation Layer 5) pattern, if then change step 407, otherwise changes step 408.
Step 407. is extracted the Common Part Convergence Sublayer (CPCS, Common PartConvergence Sublayer) of AAL5, protocol Data Unit (PDU, Protocol Data Unit).
Step 408. data message is a cell-mode, then extracts whole cell data.
As shown in Figure 5, the Payload that extracts in the above step is carried out the ethernet frame encapsulation, promptly be encapsulated as inner MPLS message; According to place in circuit place veneer structure, the inside MPLS message after the encapsulation comprises five main parts at least usually: target MAC (Media Access Control) address 501, and the MPLS transaction card is pointed in this address; Source MAC 502; Ethernet type 503, the type are labeled as inner MPLS; Internal data 504, this internal data head comprises information such as data type, valid data length, control word; Payload data 505.
Packaged inside MPLS message is sent to the master control borad exchange chip from the upper united mouth of the FPGA of user's plate, this master control borad exchange chip again should inside MPLS message switching to the MPLS transaction card.
As shown in Figure 6, described in up or descending process, after the master control borad exchange chip exchanged to the MPLS transaction card with described data message, this MPLS transaction card was handled the step of the data message that is received:
Step 601.MPLS transaction card receives the data message that the master control borad exchange chip forwards.
Step 602. judges that this data message is uplink message or control message, if uplink message changes step 603, otherwise changes step 606.
Step 603. parses the ifq circuit information of this uplink message, utilizes this circuit information inquiring user place in circuit attribute list, obtains VC ID.
Step 604. is obtained the ectonexine label of opposite end PE again with this VC ID inquiry VC label list, and information such as next-hop mac address.
Step 605. is carried out the encapsulation of the PWE3 data message of standard according to the place in circuit type, sends to the master control borad exchange chip after this data message encapsulation is finished, and carries out two layers of exchange after the master control borad exchange chip receives data are sent from upper connective plate.
Step 606.MPLS transaction card judges whether the data message that receives is the control message, if change step 607, otherwise changes step 608.
Step 607. directly will be controlled message and be sent to the CPU processing that is positioned at master control borad.
Step 608. take out to be extracted tunnel label, i.e. outer layer label and VC label, and promptly vpn label with VC searching label MPLS label list, obtains VC ID.
Step 609. with VC ID inquiry VC label list, obtains user's place in circuit index again.
Step 610. is utilized this user's place in circuit search index user place in circuit interface attributes table, obtains exporting circuit and packaging information.
Step 611. is according to the form of Fig. 5 encapsulation of data message again, wherein purpose MAC is the MAC Address of user's plate, source MAC is the MAC Address of MPLS transaction card, the encapsulation back forms inner MPLS message, and carry out QoS mapping, send this inside MPLS message then to the master control borad exchange chip, the master control borad exchange chip carries out two layers of forwarding and is sent to user's plate.
After user's plate receives the PWE3 business datum message of down direction, whether the target MAC (Media Access Control) address of judging this message is the MAC Address of the PWE3 business configuration of this user's plate, if not then directly abandoning, otherwise from this message, extract the outlet circuit information, remove fields such as MAC head, vlan information and type, respective handling is carried out in the Payload taking-up send to outlet PWE3 circuit.
Corresponding with the method for describing, the present invention also provides a kind of device of realizing edge-to-edge pseudo-line simulation, as shown in Figure 7, this device comprises user's plate 701, master control borad 702, MPLS transaction card 703, upper connective plate 704, and described upper connective plate also can be called up ply-yarn drill.Described transaction card 703 takies a physical slot position on DSLAM; Described user's plate 701 comprises the exchange device, and described master control borad 702 comprises exchange chip; Exchange device on described user's plate 701 is connected by the inline mouth of interface with the exchange chip of described master control borad 702; Described transaction card 703 is connected by the inline mouth of Media Independent Interface with the exchange chip of master control borad 702; The exchange chip of described master control borad 702 is connected with upper connective plate 704.
Described master control borad 702 further comprises a CPU705, if described multi protocol label exchange transaction card 703 receives the multi protocol label exchange message of down direction, and judge that this message is the control message, then directly is sent to this message the CPU705 on the master control borad 702.
Exchange device on described user's plate 701 adopts field programmable logic array, and this field programmable logic array is connected by the inline mouth of upper united mouth with the exchange chip of master control borad 702; And this field programmable logic array has user's place in circuit attribute list, the relevant information of preserving user's place in circuit in this table, and the index of this table is user's place in circuit sign.
Described multi protocol label exchange transaction card 703 is realized virtual circuit label list, user's place in circuit attribute list, multi protocol label switch label table;
Wherein the virtual circuit label list is preserved multi protocol label switch label and corresponding user's place in circuit index; User's place in circuit attribute list is preserved user's place in circuit relevant information; The identification information of multi protocol label switch label table record virtual circuit label.
Uplink data messages is exchanged to the exchange chip of master control borad 702 by user's plate 701, the exchange chip of this master control borad 702 exchanges to multi protocol label exchange transaction card 703 with the data message from the pseudo wire emulation edge-to-edge business circuit in the described uplink data messages, 703 pairs of these data messages of this transaction card are encapsulated as the message of edge-to-edge pseudo-line simulation form, send the exchange chip of this message to master control borad 702 then, the exchange chip of master control borad 702 sends this message switching to upper connective plate 704 and the port by this upper connective plate 704.
Downlink data message enters upper connective plate 704, this upper connective plate 704 sends to this message the exchange chip of master control borad 702, this exchange chip sends to multi protocol label exchange transaction card 703 with outside multi protocol label exchange message wherein, multi protocol label exchange transaction card 703 is encapsulated as inner multi protocol label exchange message with this message after obtaining edge-to-edge pseudo-line simulation outlet circuit and packaging information according to this message, and this message sent the exchange chip of this message to master control borad 702, exchange chip by master control borad 702 is forwarded to user's plate 701, and this message of user's plate 701 decapsulations takes out Payload and sends by edge-to-edge pseudo-line simulation outlet circuit.
Should be noted that above embodiment is only unrestricted in order to technical scheme of the present invention to be described, all parameter values can be according to the actual conditions adjustment, and in this rights protection scope.Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spiritual scope of technical solution of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.