Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The collocation method of the DiffServ that MPLS that the embodiment of the present invention provides supports, involved networking abstract model can as shown in Figure 1:
A VLSP (Virtual Label Switched Path, virtual label switching path) between Ingress LER101/103 and Egress LER105/107; Wherein, if VLSP is the LSP that a clean culture (point-to-point) is transmitted, then Ingress LER101/103 is an equipment, and Egress LER105/107 is also an equipment; If VLSP is the LSP that P2MP (point-to-multipoint) transmits, then Ingress LER101/103 is an equipment, and EgressLER105/107 is then multiple devices; If VLSP is the LSP that MP2MP (multi-multipoint) transmits, then Ingress LER101/103 and Egress LER105/107 is multiple devices.The tag path that wherein this VLSP mono-is virtual, it can be LDP (LabelDistribution Protocol, tag distribution protocol) LSP, also can be TE LSP, also can be VPN distribute VC label (Virtual Circuit label, virtual link label) between a virtual link; Therefore described VLSP is not limited to and is present in MPLS network, can also be present in IP network.
Ingress LER101/103 and Egress LER105/107 are peer-to-peers communicating of MPLS layer, show as message and enter MPLS layer at Ingress LER end from other communication layers, and hold message to get back to the communication layers corresponding with these other communication layers that Ingress LER holds from MPLS layer at Egress LER.These other communication layers can for but be not limited to IP layer, two layers, when other communication layers are IP layer, message can enter out MPLS layer from IP layer.
The FB(flow block) of the collocation method of the DiffServ that the MPLS that Fig. 2 provides for one embodiment of the invention supports.As shown in Figure 2, the method comprises:
201, transmitting terminal is configured the configuration of DiffServ to local terminal according to the application scenarios of VLSP, and generate DiffServ information, described DiffServ information comprises the described DiffServ of described transmitting terminal configuration, described transmitting terminal is one end of end to end communication, it can be but be not limited to router, can also be switch etc.
For example, when carrying out the configuration of DiffServ to one end of described end to end communication, both can configure the DiffServ of this end on the physical port of this end, also can this end the logic entity with this configuration feature on configure the DiffServ of this end; In the specific implementation, specifically can select according to the demand of user, the embodiment of the present invention does not limit this.Further, carrying out, in the process of DiffServ configuration, not to first to any end being configured, not limiting to one end of described end to end communication, no matter to any end of communication be first configured, all belonging to the scope of embodiment of the present invention protection.
202, the DiffServ information of described generation is sent to receiving terminal by described transmitting terminal, and described receiving terminal is the opposite end of carrying out with described transmitting terminal communicating, i.e. the other end of end-to-end communication, and it can be but be not limited to router, can also be switch etc.
For example, in embodiments of the present invention, described DiffServ information is being sent in the process of receiving terminal, can but be not limited to and by described transmitting terminal, described DiffServ information sent to described receiving terminal by the mode of extension of message; Can also adopt other mode that described DiffServ information is sent to described receiving terminal, described DiffServ information is sent to described receiving terminal by described transmitting terminal by the mode as by newly-built message.
Wherein, when described DiffServ information is sent to described receiving terminal by transmitting terminal described in the mode by extension of message, can adopt but be not limited to by expansion LDP (LabelDistribution Protocol, tag distribution protocol) or TLV (the Type Length Value of TE, type lengths values) described DiffServ information is sent to described receiving terminal, make described DiffServ information be sent to the issue of label the opposite end communicated with this transmitting terminal; The mode of other extension of message can also be adopted, such as to BGP (Border GatewayProtocol, Border Gateway Protocol) the community string mode carrying out expanding described DiffServ information is sent to described receiving terminal, the embodiment of the present invention does not limit this; Wherein, specifically do not limit this concrete signaling delivery method embodiment of the present invention in message extended mode, whether such as this signaling delivery method can adopt but be not limited to and consult, adopt sequence number mode to send or other mode transmissions etc.; And concrete which kind of message of expansion etc. in the process of extension of message, the embodiment of the present invention does not limit this, as long as the both sides carrying out communicating can support the expansion of this kind of message just can not do any restriction, only needs two ends signaling to agree to.
The collocation method of the DiffServ that the embodiment of the present invention also provides a kind of MPLS to support, as shown in Figure 3, the method is the method for receiving terminal, specifically comprises the steps:
301, the DiffServ information of receiving terminal receiving end/sending end transmission, comprises the DiffServ of described transmitting terminal configuration in described DiffServ information.
302, described receiving terminal configures the DiffServ of local terminal according to the DiffServ that described transmitting terminal configures, to make the DiffServ of the two ends configuration carrying out communicating consistent.
In embodiments of the present invention, if when described transmitting terminal is Ingress LSR, then described receiving terminal is Egress LSR; If when described transmitting terminal is Egress LSR, then described receiving terminal is Ingress LSR, and the embodiment of the present invention does not limit this.
Compared with prior art, the collocation method of the DiffServ that the MPLS that the embodiment of the present invention provides supports, one end of end to end communication configures the DiffServ of this end, and generate DiffServ information, then described DiffServ information is sent to the opposite end of carrying out end to end communication with described transmitting terminal, i.e. receiving terminal, described receiving terminal is after receiving described DiffServ information, according to the DiffServ of DiffServ information configuration self, the consistent of the DiffServ of the terminal device of communication mutually can be realized, intercommunication end to end can be ensured, and the technical scheme of the embodiment of the present invention, without the need to the configuration respectively by terminal device, has stronger deployable.
And, in the embodiment of the present invention, by arranging its DiffServ in the one end intercomed mutually, and the DiffServ information of generation is sent to the opposite end communicated with, opposite equip. is made only to need passive reception, and according to the DiffServ comprised in the configuration information received, himself is configured, the complexity that the two ends intercomed mutually are all configured difference modes can be reduced, and because the embodiment of the present invention can realize the consistent of the DiffServ of the terminal device of communication mutually, be convenient to the same management of system to a certain extent.
Further, when one end DiffServ information is sent to the opposite end intercomed mutually, can be sent by the mode of extension of message, can system resource be saved to a certain extent.
The collocation method of the DiffServ that the MPLS that another embodiment of the present invention provides supports, embodiment of the present invention Egress LSR holds as transmitting terminal, and Ingress LSR is receiving terminal is example, concrete collocation method of setting forth DiffServ; As shown in Figure 4, the method comprises the steps, comprising:
401, hold at Egress LSR, according to the DiffServ of the application scenarios configuration Egress LSR end of VLSP, and generate DiffServ information, in described DiffServ information, comprise the described DiffServ that described Egress LSR holds configuration.
Wherein, when the DiffServ of the application scenarios configuration Egress LSR end according to VLSP; can based on FEC (Forwarding Equivalence Class; forwarding equivalence class) or the DiffServ of complete machine configuration Egress LSR end; the embodiment of the present invention does not limit this; configure the DiffServ of Egress LSR end based on any mode, all belong to the scope of protection of the invention.
402, after generation DiffServ information, described Egress LSR sends described DiffServ information to IngressLSR.
Wherein, when described Egress LSR sends described DiffServ information to Ingress LSR, can by when described Egress LSR send Mapping message (mapping message) to described Ingress LSR, by the mode of extension of message described DiffServ information is carried in described Mapping message and sends to described receiving terminal; Can also adopt other mode that described DiffServ information is sent to described receiving terminal, such as, by described transmitting terminal, described DiffServ information be sent to described receiving terminal by the mode of newly-built message; In the specific implementation, the embodiment of the present invention does not limit this, any method described DiffServ information being sent to described Ingress LSR, all belongs to the scope of embodiment of the present invention protection.
Wherein, when described DiffServ information being sent to described receiving terminal by the mode of extension of message by described transmitting terminal in the embodiment of the present invention, specifically can but be not limited to, by expanding the TLV of LDP or TE, described DiffServ information sent to described receiving terminal, make described DiffServ information be sent to the issue of label the opposite end communicated with this transmitting terminal; The mode that other message can be expanded can also be adopted, such as by described DiffServ information, described receiving terminal is sent to the mode that the community string of BGP is expanded; Described TLV is a kind of variable format, and the meaning of TLV is exactly: Type type, Length length, Value value; The length of Type and Length is fixed, and is generally 2,4 bytes; The length of Value has Length to specify.Such as, as shown in Figure 5, it comprises three fields to the TLV form of expansion LDP, is respectively TTL type, length and numerical value; Described TTL type field represents the DiffServ that transmitting terminal configures, such as when the value of this field is 01, show that the DiffServ that transmitting terminal configures is Uniform, when the value of this field is 02, show that the DiffServ that transmitting terminal configures is pipe, when the value of this field is 01, show that the DiffServ that transmitting terminal configures is short pipe; Described length field represents the length of numeric field; Described numeric field is for storing concrete data.
403, described Ingress LSR receives the described DiffServ information that described Egress LSR sends, and holds the DiffServ of the DiffServ configuration local terminal of configuration according to Egress LSR in described DiffServ information.
When described Egress LSR is by the mode of extension of message or the mode creating new message, when described DiffServ information being sent to described Ingress LSR, after described IngressLSR receives the message comprising described DiffServ information, carry out described message resolving the DiffServ obtaining described Egress LSR and configure, and configure the DiffServ of self according to described DiffServ.
Compared with prior art, the collocation method of the DiffServ that the MPLS that the embodiment of the present invention provides supports, hold the DiffServ of the described Egress LSR end of configuration at Egress LSR and generate DiffServ information, described DiffServ information is sent to Ingress LSR, by the DiffServ of described Ingress LSR according to described DiffServ information configuration self, the consistent of the DiffServ of the terminal device of communication mutually can be realized, intercommunication end to end can be ensured; And the technical scheme of the embodiment of the present invention, without the need to the configuration respectively by terminal device, has stronger deployable.
And, in the embodiment of the present invention, by arranging its DiffServ in the one end intercomed mutually, and the DiffServ information of generation is sent to the opposite end communicated with, opposite equip. is made only to need passive reception, and according to the DiffServ comprised in the configuration information received, himself is configured, the complexity that the two ends intercomed mutually are all configured difference modes can be reduced, and because the embodiment of the present invention can realize the consistent of the DiffServ of the terminal device of communication mutually, be convenient to the same management of system to a certain extent.
Further, when the DiffServ configured one end is sent to the opposite end intercomed mutually, can be sent by the mode of extension of message, save system resource to a certain extent.
The collocation method of the DiffServ that the MPLS that another embodiment of the present invention provides supports, the embodiment of the present invention is held as transmitting terminal with Ingress LSR, Egress LSR is receiving terminal is example, the collocation method of concrete elaboration DiffServ, as shown in Figure 6, the method comprises the steps, comprising:
501, hold at Ingress LSR, according to the DiffServ of the application scenarios configuration Egress LSR end of VLSP, and generate DiffServ information, in described DiffServ information, comprise the described DiffServ that described Egress LSR holds configuration.
Wherein, when the DiffServ of the application scenarios configuration Egress LSR end according to VLSP; DiffServ can be held based on tunnel (tunnel) or complete machine configuration Ingress LSR; the embodiment of the present invention does not limit this; configure the DiffServ of IngressLSR end based on any mode, all belong to the scope of protection of the invention.
502, after generation DiffServ information, described Ingress LSR sends described DiffServ information to EgressLSR.
Wherein, when described Ingress LSR sends described DiffServ information to Egress LSR, by described transmitting terminal, described DiffServ information can be sent to described receiving terminal by the mode of extension of message; Can also adopt other mode that described DiffServ information is sent to described receiving terminal, such as, by described transmitting terminal, described DiffServ information be sent to described receiving terminal by the mode of newly-built message; In the specific implementation, the embodiment of the present invention does not limit this, any method described DiffServ information being sent to described EgressLSR, all belongs to the scope of embodiment of the present invention protection.
Wherein, when described DiffServ information being sent to described receiving terminal by the mode of extension of message by described transmitting terminal in the embodiment of the present invention, specifically can but be not limited to, by expanding the TLV of LDP or TE, described DiffServ information sent to described receiving terminal, make described DiffServ information be sent to the issue of label the opposite end communicated with this transmitting terminal; The mode of other extension of message can also be adopted, such as by described DiffServ information, described receiving terminal is sent to the mode that the community string of BGP is expanded; When described Ingress LSR issues ILM to its network, the configuration information of described DiffServ can be carried; When described Ingress LSR issues NHLFE to its place network, described DiffServ information can also be carried.
503, described Egress LSR receives the described DiffServ information that described Ingress LSR sends, and configures the DiffServ of local terminal according to the DiffServ that the described Ingress LSR in described DiffServ information configures.
When described Ingress LSR is by the mode of extension of message or the new mode creating message, when described DiffServ information being sent to described Egress LSR, after described EgressLSR receives the message comprising described DiffServ information, carry out described message resolving the DiffServ obtaining described Ingress LSR and configure, and configure the DiffServ of self according to described DiffServ.
Compared with prior art, the collocation method of the DiffServ that the MPLS that the embodiment of the present invention provides supports, in the DiffServ DiffServ information that Ingress LSR holds the described Ingress LSR of configuration to hold, DiffServ information of configuration mode described in this is sent to Egress LSR, Egress LSR is according to the DiffServ of the configuration information configuration of this DiffServ self, the consistent of the DiffServ of the terminal device of communication mutually can be realized, intercommunication end to end can be ensured; And the technical scheme of the embodiment of the present invention, without the need to the configuration respectively by terminal device, has stronger deployable.
And, in the embodiment of the present invention, by arranging its DiffServ in the one end intercomed mutually, and the DiffServ information of generation is sent to the opposite end communicated with, opposite equip. is made only to need passive reception, and according to the DiffServ comprised in the configuration information received, himself is configured, reduce the complexity that the two ends intercomed mutually are all configured difference modes, and because the embodiment of the present invention can realize the consistent of the DiffServ of the terminal device of communication mutually, be convenient to the same management of system to a certain extent.
Further, when one end DiffServ information is sent to the opposite end intercomed mutually, can be sent by the mode of extension of message, save system resource to a certain extent.
The configuration device of the DiffServ that the embodiment of the present invention provides a kind of MPLS to support, this configuration device is one end equipment of end to end communication, in the layoutprocedure of DiffServ, this equipment is as transmitting terminal, can be but be not limited to router, can also be switch etc., in an mpls network, this configuration device can be LSR (LSR), as shown in Figure 7, comprising: dispensing unit 61, generation unit 62 and transmitting element 63.
Dispensing unit 61, for configuring DiffServ according to the application scenarios of virtual label switching path to local terminal; For example, described dispensing unit 61 is when to described transmitting terminal configuration difference modes, both can configure the DiffServ of this end on the physical port of this end, also can configure the DiffServ of this end on the logic entity that this end has this configuration feature; In the specific implementation, specifically can select according to the demand of user, the embodiment of the present invention does not limit this.Further, carrying out, in the process of DiffServ configuration, not to first to any end being configured, not limiting to one end of described end to end communication, no matter to any end of communication be first configured, all belonging to the scope of embodiment of the present invention protection
Generation unit 62, generates DiffServ information for the DiffServ configured according to described dispensing unit 61, comprises the described DiffServ of described transmitting terminal configuration in described DiffServ information.
Transmitting element 63, sends to receiving terminal for the DiffServ information generated by described generation unit 62.For example, in embodiments of the present invention, at transmitting element 63, described DiffServ information is sent in the process of described receiving terminal, by described transmitting terminal, described DiffServ information can be sent to described receiving terminal by the mode of extension of message; By described transmitting terminal, described DiffServ information can also be sent to described receiving terminal by the mode of newly-built message.
When described transmitting element 63 adopts the mode of extension of message described DiffServ information will be sent to described receiving terminal by described transmitting terminal, described transmitting element 63 can but be not limited to, by expanding the TLV of LDP or TE, described DiffServ information sent to described receiving terminal, make described DiffServ information be sent to the issue of label the opposite end communicated with this transmitting terminal; The mode that described transmitting element 63 can also adopt other message to expand, such as sends to described receiving terminal to the mode that the community string of BGP is expanded by described DiffServ information.
The configuration device of the DiffServ that another embodiment of the present invention also provides a kind of MPLS to support, this configuration device is the other end equipment of end to end communication, in the layoutprocedure of DiffServ, this equipment is as receiving terminal, can be but be not limited to router, can also be switch etc., in an mpls network, this configuration device can be LSR (LSR), as shown in Figure 8, this receiving terminal comprises: receiving element 71 and dispensing unit 72.
Receiving element 71, for the DiffServ information that receiving end/sending end sends, comprises the DiffServ of described transmitting terminal configuration in described DiffServ information.
Dispensing unit 72, the DiffServ that the described transmitting terminal for receiving according to described receiving element 71 configures, the DiffServ of configuration receiving terminal, to make the described transmitting terminal intercomed mutually consistent with the DiffServ that receiving terminal configures.
Wherein, when transmitting terminal is by the mode of extension of message or the new mode creating message, when described DiffServ configuration messages is sent to receiving terminal, as shown in Figure 9, described receiving element 71 comprises: receiver module 711 and parsing module 712.
Receiver module 711, for receiving the message that described transmitting terminal sends, comprises described DiffServ information in described message; Parsing module 712, the described message received for resolving described receiver module 711 obtains the described DiffServ of described transmitting terminal configuration.
The embodiment of the present invention also provides a kind of network system, and as shown in Figure 10, this network system comprises: transmitting terminal 81 and receiving terminal 82.
Transmitting terminal 81, for configuring DiffServ according to the application scenarios of virtual label switching path to local terminal, and generates DiffServ information, comprises the DiffServ of described transmitting terminal configuration in described DiffServ information; Described DiffServ information is sent to receiving terminal 82, and described transmitting terminal 81 is one end of end to end communication;
Receiving terminal 82, for receiving the DiffServ information that described transmitting terminal 81 sends, described DiffServ packets of information is containing the DiffServ of described transmitting terminal configuration; According to the DiffServ that described transmitting terminal 81 configures, configure the DiffServ of described receiving terminal 82, described receiving terminal 82 is the other end of described end to end communication.
In embodiments of the present invention, described DiffServ information is sent in the process of receiving terminal by described transmitting terminal 81, by described transmitting terminal, described DiffServ information can be sent to described receiving terminal by the mode of extension of message; Described DiffServ information can also be sent to described receiving terminal by the mode of newly-built message by described transmitting terminal by described transmitting terminal 81.
Wherein, when described DiffServ information to be sent to described receiving terminal by the mode of extension of message by described transmitting terminal by transmitting terminal 81 described in the embodiment of the present invention, specifically can but be not limited to, by expanding the TLV of LDP or TE, described DiffServ information sent to described receiving terminal, make described DiffServ information be sent to the issue of label the opposite end communicated with this transmitting terminal; The mode of other extension of message can also be adopted, such as by described DiffServ information, described receiving terminal is sent to the mode that the community string of BGP is expanded; Wherein, specifically do not limit this concrete signaling delivery method embodiment of the present invention in message extended mode, whether such as this signaling delivery method can adopt but be not limited to and consult, adopt sequence number mode to send or other mode transmissions etc.; And concrete which kind of message of expansion etc. in the process of extension of message, the embodiment of the present invention does not limit this, as long as the both sides carrying out communicating can support the expansion of this kind of message just can not do any restriction, only needs two ends signaling to agree to.
Compared with prior art, the collocation method of the DiffServ that the MPLS that the embodiment of the present invention provides supports, one end of end to end communication configures the DiffServ of this end, and generate DiffServ information, then described DiffServ information is sent to the opposite end of carrying out end to end communication with described transmitting terminal, i.e. receiving terminal, described receiving terminal is after receiving described DiffServ information, according to the DiffServ of DiffServ information configuration self, the consistent of the DiffServ of the terminal device of communication mutually can be realized, intercommunication end to end can be ensured, and the technical scheme of the embodiment of the present invention, without the need to the configuration respectively by terminal device, has stronger deployable.
And, in the embodiment of the present invention, by arranging its DiffServ in the one end intercomed mutually, and the DiffServ information of generation is sent to the opposite end communicated with, opposite equip. is made only to need passive reception, and according to the DiffServ comprised in the configuration information received, himself is configured, the complexity that the two ends intercomed mutually are all configured difference modes can be reduced, and because the embodiment of the present invention can realize the consistent of the DiffServ of the terminal device of communication mutually, be convenient to the same management of system to a certain extent.
Further, when one end DiffServ information is sent to the opposite end intercomed mutually, can be sent by the mode of extension of message, save system resource to a certain extent.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.This, protection scope of the present invention should described be as the criterion with the protection domain of claim.