CN104954259B - A kind of method that realizing PTN business convergence and PE - Google Patents
A kind of method that realizing PTN business convergence and PE Download PDFInfo
- Publication number
- CN104954259B CN104954259B CN201510209509.1A CN201510209509A CN104954259B CN 104954259 B CN104954259 B CN 104954259B CN 201510209509 A CN201510209509 A CN 201510209509A CN 104954259 B CN104954259 B CN 104954259B
- Authority
- CN
- China
- Prior art keywords
- mac
- resource
- message
- release message
- vsi
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/58—Association of routers
- H04L45/586—Association of routers of virtual routers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Abstract
The invention discloses a kind of method for realizing PTN business convergence and PE, PTN system includes more than one provider edge router PE equipment, this method comprises: the MAC resource usage amount of the first preset duration of PE equipment interval detection VSI;According to the MAC resource usage amount detected, the MAC resource for needing to discharge is determined;The MAC resource that the needs determined discharge is discharged, and MAC release message message is constructed according to the MAC resource that the needs determined discharge;MAC release message message is sent to other PE equipment, the MAC resource in other PE equipment release MAC release message messages.The technical solution provided through the invention realizes the flexible release of MAC resource, so as to complete the fast convergence of VPLS business.
Description
Technical field
The present invention relates to mobile communication technology, espespecially a kind of method and fortune for realizing Packet Transport Network (PTN) business convergence
It seeks quotient's edge router (PE).
Background technique
With the fast development of mobile bandwidth, the rise of the high band width service such as broadband escalation policy and network video divides
Group transmission net (PTN) system can due to have high bandwidth, multiple service supporting, stringent service quality (Qos) and a carrier class
The advantages that by property, is widely used deployment in convergence access layer.Virtual Private LAN Service is disposed using PTN system
(VPLS) or hierarchical vp LS (H-VPLS), when user accesses frequently variation or user group switches, PTN system can be at one section
Time memory in user media access control (MAC, the Media Access Control) resource used, is not occupying thus
The resource of the provider edge router (PE) of virtual switch instance (VSI, Virtual Switch Instance), thus
The MAC resource of more VSI is caused to be deactivated occupancy, when new user traffic access, if the progress of MAC resource can not be obtained
Mac learning will lead to user's message loss, and the aging mechanism of MAC itself can only be waited to discharge MAC resource in this case, caused
Make business can not quick intercommunication.
Fig. 1 is the schematic diagram that existing business accesses VPLS, as shown in Figure 1, it is assumed that PTN system includes: Provider Edge road
By device 1 (PE1), PE2 and PE3.Customer edge router 1 (CE1), CE2, CE3 pass through PE1, PE2, PE3 access VPLS respectively
In, user is wherein hung under CE equipment, business intercommunication needs the PE equipment mac learning of VSI between the user hung under different CE equipment,
When user accesses CE, customer service is sent to CE, and CE forwards the message to PE equipment according to MAC forwarding process, and PE receives CE
When the customer service message of device forwards, then progress source mac learning first is forwarded according to the purpose MAC of message, if
Purpose MAC is not present, then floods message to other PE equipment of VSI, guarantee that PE learning equipment arrives user's by this kind of mode
MAC Address.When hanging user group under CE equipment, in user group switching or the when of deletion, at this time the PE device-aware of VSI less than with
The variation of family business, PE equipment have a large amount of invalid MAC resource occupation, and causing the PE equipment of VSI to be in MAC resource can not
With.
When the PE equipment of VSI is in the not available situation of MAC resource (i.e. since old invalid resource cannot get fast quick-release
Put), when new user traffic access VSI, current mechanism is to wait the aging of MAC, is passed through again after releasing MAC resource
Business intercommunication is realized in mac learning, this kind of mechanism is limited to the time of MAC aging, not can guarantee the fast convergence of business.Meanwhile
Since the ageing time of the PE equipment MAC resource of each equipment of VSI is asynchronous, when service access, if VSI corresponds to each PE's
MAC resource does not obtain whole releases, and service message is also that can not be forwarded, and equally affects VSI business under this kind of scene
Fast convergence.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of method for realizing PTN business convergence and PE, Neng Goushi
The flexible release of existing MAC resource, to complete the fast convergence of VPLS.
In order to reach the object of the invention, the present invention provides a kind of method for realizing Packet Transport Network PTN business convergence,
PTN system includes more than one provider edge router PE equipment, comprising:
The MAC resource usage amount of the first preset duration of PE equipment interval detection VSI;
According to the MAC resource usage amount detected, the MAC resource for needing to discharge is determined;
The MAC resource that the needs determined discharge is discharged, and MAC is constructed according to the MAC resource that the needs determined discharge
Release message message;
MAC release message message is sent to other PE equipment, other PE equipment discharge in MAC release message messages
MAC resource.
Further, the determining MAC resource for needing to discharge, comprising:
Judge whether the MAC resource usage amount is greater than pre-set first threshold;
When the MAC resource usage amount is greater than or equal to first threshold, acquisition is not used by more than the second preset duration
Each MAC resource;According to the acquisition be more than the second preset duration be not used by each MAC resource determination need to discharge
MAC resource.
Further, when the MAC resource usage amount is less than first threshold, terminate this process;Alternatively,
This method further include: judge that the acquisition is more than the number for each MAC resource that the second preset duration is not used by
Whether amount is more than pre-set second threshold;When the acquisition is more than each MAC money that the second preset duration is not used by
It is more than that each MAC resource for being not used by of the second preset duration is true according to the acquisition when quantity in source is more than second threshold
The MAC resource for needing to discharge calmly.
Further, described according to acquisition is more than that each MAC resource for being not used by of the second preset duration determines needs
The MAC resource of release, comprising:
Each each MAC resource being not used by more than the second preset duration is carried out according to the time being not used by
Sequence, it is the MAC resource that needs discharge that K is more than the MAC resource that is not used by of the second preset duration greatly before determining;Wherein, K is
Positive integer greater than 1.
Further, the MAC release message message include: two layers of head, channel TUNNEL label, PW label, PW with
Path channels head ACH and MAC release message;
Wherein, the MAC release message includes forwarding equivalence class FEC TLV field and MAC Address Address TLV word
Section;
The FEC TLV field includes: the Virtual Private Network VPN where the MAC resource that the needs of the determination discharge
VSI-ID and VSI type;The MAC Address TLV field includes the ground for the MAC resource that the needs of the determination discharge
Location;The VSI type includes: ether business or the ether business with VLAN.
Further, the MAC resource that the needs that the basis is determined discharge constructs MAC release message message, comprising:
Creation sends control block by the MAC release message of major key KEY of VPN-ID and MAC release message-ID;
Fill the FEC TLV field and MAC Address of VPN-ID, MAC release message-ID, MAC release message
TLV field;
Whole pseudo-wire PW of traverses network side fill PW ACH, and stamp PW label and channel TUNNEL label.
Further, which is characterized in that the MAC resource in other PE equipment release MAC release message messages, packet
It includes:
The FEC TLV field in the MAC release message message is parsed, VSI-ID and VSI type is obtained;
According to VSI-ID the and VSI type of acquisition, determine itself configuration VPN whether the VSI-ID and VSI class with acquisition
Type is corresponding;
When the VPN of itself configuration is corresponding with VSI-ID the and VSI type of acquisition, according to the MAC release message report
MAC Address TLV field discharges corresponding MAC resource in text.
Further, this method further include: it is pre- that the MAC release message message is continuously transmitted by third by service channel
If value time is to other PE equipment and deletes the MAC release message transmission control block.
The present invention also provides a kind of provider edge router PE for realizing Packet Transport Network PTN business convergence, special
Sign is, comprising: detection module, determining module, processing module and sending module;Wherein,
Detection module, for being spaced the MAC resource usage amount of the first preset duration detection VSI;
Determining module, for determining the MAC resource for needing to discharge according to the MAC resource usage amount detected;
Processing module, the MAC resource discharged for discharging the needs determined, and discharged according to the needs determined
MAC resource constructs MAC release message message;
Sending module, for MAC release message message to be sent to other PE equipment.
Further, the determining module is specifically used for:
Judge whether the MAC resource usage amount is greater than pre-set first threshold;
When the MAC resource usage amount is greater than or equal to first threshold, acquisition is not used by more than the second preset duration
Each MAC resource;According to the acquisition be more than the second preset duration be not used by each MAC resource determination need to discharge
MAC resource;
When the MAC resource usage amount is less than first threshold, terminate;Alternatively,
Whether the quantity for judging that the acquisition is more than each MAC resource that the second preset duration is not used by is more than preparatory
The second threshold of setting;When the quantity that the acquisition is more than each MAC resource that the second preset duration is not used by is more than the
It is more than the determining MAC for needing to discharge of each MAC resource that the second preset duration is not used by according to the acquisition when two threshold values
Resource.
Further, the determining module is more than each MAC resource that the second preset duration is not used by according to acquisition
Determine the MAC resource for needing to discharge, comprising:
Each each MAC resource being not used by more than the second preset duration is carried out according to the time being not used by
Sequence, it is the MAC resource that needs discharge that K is more than the MAC resource that is not used by of the second preset duration greatly before determining;Wherein, K is
Positive integer greater than 1.
Further, the MAC release message message include: two layers of head, channel TUNNEL label, PW label, PW with
Path channels head ACH and MAC release message;
Wherein, the MAC release message includes forwarding equivalence class FEC TLV field and MAC Address Address TLV word
Section;
The FEC TLV field includes: the Virtual Private Network VPN where the MAC resource that the needs of the determination discharge
VSI-ID and VSI type;The MAC Address TLV field includes the ground for the MAC resource that the needs of the determination discharge
Location;The VSI type includes: ether business or the ether business with VLAN.
Further, the processing module, is specifically used for:
Creation sends control block by the MAC release message of major key KEY of VPN-ID and MAC release message-ID;
Fill the FEC TLV field and MAC Address of VPN-ID, MAC release message-ID, MAC release message
TLV field;
Whole pseudo-wire PW of traverses network side fill PW ACH, and stamp PW label and channel TUNNEL label.
Further, the sending module, is also used to: continuously being sent out the MAC release message message by service channel
Third preset value time is sent to other PE equipment and deletes the MAC release message transmission control block.
The present invention also provides a kind of provider edge router PE for realizing Packet Transport Network PTN business convergence, special
Sign is, comprising: receiving module, parsing module and release module;Wherein,
Receiving module, the MAC release message message sent for receiving other PE equipment;
Parsing module obtains VSI-ID and VSI type for solving the FEC TLV field in parsing MAC release message message;
Release module, for VSI-ID the and VSI type according to acquisition, determine itself configuration VPN whether with acquisition
VSI-ID and VSI type is corresponding;When the VPN of itself configuration is corresponding with VSI-ID the and VSI type of acquisition, according to MAC
MAC Address TLV field discharges corresponding MAC resource in release message message.
The present invention also provides a kind of provider edge router PE for realizing Packet Transport Network PTN business convergence, special
Sign is, including the PE and PE as claimed in claim 15 as described in claim 9-14 any one.
Technical solution of the present invention includes: that PTN includes more than one provider edge router PE equipment, this method packet
It includes: the MAC resource usage amount of the first preset duration of PE equipment interval detection VSI;According to the MAC resource usage amount detected, really
The MAC resource for needing to discharge calmly;Discharge the MAC resource that the needs determined discharge, and the MAC discharged according to the needs determined
Resource constructs MAC release message message;MAC release message message is sent to other PE equipment, other PE equipment release MAC are released
Put the MAC resource in message packet.Technical solution of the present invention realizes the flexible release of MAC resource, so as to complete VPLS industry
The fast convergence of business.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram that existing business accesses VPLS;
Fig. 2 is the flow chart for the method that the present invention realizes PTN business convergence;
Fig. 3 is the structural schematic diagram as transmitting terminal PE that the present invention realizes PTN business convergence;
Fig. 4 is the structural schematic diagram as receiving end PE that the present invention realizes PTN business convergence;
Fig. 5 is work flow diagram of the embodiment of the present invention one as transmitting terminal PE;
Fig. 6 is work flow diagram of the embodiment of the present invention two as receiving end PE.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Under scene shown in Fig. 1, the present invention is proposed, PE equipment increases MAC resources measurement reclaim mechanism, when MAC resource
When occupying over certain threshold value, the MAC Address not refreshed in a period of time in PE equipment is obtained, executes release MAC resource
Operation, the MAC for sending definition to the other equipment of the VPLS entirely connected entirely remove message, receive the device clear pair of the message
The MAC fast convergence VPLS business for answering VPN, reduces invalid Mac list item to the occupancy of device resource, guarantees that new business can
Fast convergence.
Fig. 2 is the flow chart for the method that the present invention realizes PTN business convergence, and PTN system includes more than one PE equipment,
As shown in Figure 2, comprising the following steps:
The MAC resource usage amount of step 201:PE the first preset duration of equipment interval detection VSI.
It should be noted that on how to detect the conventional techniques that the MAC resource usage amount of VSI is this field,
This is repeated no more, the present invention is spaced default first duration and is detected it is emphasised that periodically detection.
Step 202: according to the MAC resource usage amount detected, determining the MAC resource for needing to discharge.It specifically includes:
Judge whether MAC resource usage amount is greater than pre-set first threshold;
When MAC resource usage amount is greater than or equal to first threshold, obtain each more than what the second preset duration was not used by
A MAC resource;It is more than the determining MAC money for needing to discharge of each MAC resource that the second preset duration is not used by according to acquisition
Source.
When MAC resource usage amount is less than first threshold, terminate this process;Alternatively,
This step further include: judge that acquisition is more than that the quantity for each MAC resource that the second preset duration is not used by is
No is more than pre-set second threshold;When acquisition is more than the quantity for each MAC resource that the second preset duration is not used by
It is more than that each MAC resource for being not used by of the second preset duration determines and needs to discharge according to acquisition when more than second threshold
MAC resource;
When the quantity that acquisition is more than each MAC resource that the second preset duration is not used by is less than second threshold,
Terminate this process.
It wherein, is more than that each MAC resource for being not used by of the second preset duration determines the MAC for needing to discharge according to acquisition
Resource specifically includes:
It is arranged more than each MAC resource that the second preset duration is not used by according to the duration being not used by each
Sequence, it is the MAC resource that needs discharge that K is more than the MAC resource that is not used by of the second preset duration greatly before determining;Wherein, K is big
In 1 positive integer.
It should be noted that can be set according to the actual situation about K.Second preset duration needs to be less than aging
Time accelerates the removing (discharging) of invalid MAC resource in this way, improves for example, can be set as 1/3 ageing time
Business convergence speed.
Step 203: discharging the MAC resource that the needs determined discharge, and the MAC resource discharged according to the needs determined
Construct MAC release message message.
Wherein, MAC release message message include: two layers of head, channel (TUNNEL) label, pseudo-wire (PW) label, PW with
Path channels head (ACH, Associated Channel Header) and MAC release message;Wherein,
MAC release message include forwarding equivalence class (FEC, Forwarding Equivalence Class) TLV field and
MAC Address (Address) TLV field.Wherein, the void where the MAC resource that the needs that FEC TLV field comprises determining that discharge
VSI-ID the and VSI type of quasi- dedicated network VPN;MAC Address TLV field includes the MAC resource that determining needs discharge
Address;VSI type includes: ether business or the ether business with VLAN.
The MAC resource construction MAC release message message that the needs that basis in this step is determined discharge, comprising:
Creation sends control block by the MAC release message of major key KEY of VPN-ID and MAC release message-ID;
Fill the FEC TLV field and MAC Address of VPN-ID, MAC release message-ID, MAC release message
TLV field;
Whole pseudo-wire PW of traverses network side fill PW ACH, and stamp PW label and channel (TUNNEL) label.
Wherein, TLV is the coded format triple for including type (Type), length (Lenght) and value (Value).
Specifically, MAC release message message format is as shown in table 1:
Table 1
Wherein, PW ACH structure is as shown in table 2:
Table 2
In table 2, increasing first 4 bit is Binary Zero 001, and Channel Type is channel type, and Version is version
This, Reserved is to retain, wherein the field in Channel Type is 0xFF, when the field in Channel Type is
When 0xFF, show that the data that message carries in table 1 are MAC release message.
The structure of MAC release message is as shown in table 3:
Table 3
In table 3, Message Type is type of message, and the current 0x300 that defines is MAC release message;
Message Length is that the message of MAC release message length Messaged ID and MAC Address TLV is long
Degree;
FEC TLV is the TLV for identifying the FEC of PW;
MAC Address TLV is the TLV of MAC Address, or the TLV of referred to as MAC list (List);
Optional Parameters is optional parameters.
Wherein, the TLV structure of MAC Address is as shown in table 4:
Table 4
As shown in table 4, the TLV structure of MAC Address is defined as follows:
Type indicates that type of message is defined as 0x0404;
Length indicates that message-length is the length of MAC list below, the multiple that size is 6;
Wherein, when Length is 0, show the dynamic MAC resource for discharging VPN;
When Length is 1, and MAC is full 0, shows the MAC resource of the specified PW for receiving the MAC release message of release;
In other cases, show to remove the MAC resource of the VPN under specified MAC list.
The value defined by the TLV of above-mentioned MAC Address (list) can support flexible MAC reset mode.
Step 204: MAC release message message being sent to other PE equipment, other PE equipment discharge MAC release message report
MAC resource in text.
Further, this method further include: MAC release message message is continuously transmitted by third preset value by service channel
It is secondary to give other PE equipment and delete MAC release message transmission control block.
It should be noted that third preset value can be set according to the actual situation, for example, can be set as 3, continuously
Sending 3 MAC release messages is the stabilization accessibility for guaranteeing message in order to enhance reliability, can also send more numbers or
Person only sends once.
Wherein, the MAC resource in other PE equipment release MAC release message messages, specifically includes:
The FEC TLV field in parsing MAC release message message is solved, VSI-ID and VSI type is obtained;
According to VSI-ID the and VSI type of acquisition, determine itself configuration VPN whether the VSI-ID and VSI class with acquisition
Type is corresponding;
When the VPN of itself configuration is corresponding with VSI-ID the and VSI type of acquisition, according in MAC release message message
MAC Address TLV field discharges corresponding MAC resource.
In the method for the present invention, MAC resource usage amount and release are detected by periodically (being spaced the first preset duration)
The MAC resource for needing to discharge can actively discharge MAC resource that may be useless, guarantee the available of the MAC resource of PE equipment VSI
Property, to guarantee the intercommunication of business, under the more scene of MAC resource consumption, fast convergence between VSI equipment is accelerated, is prevented
Only due to invalid MAC resource occupation, cause business can not normal communication the problem of.Disappear by using customized MAC release
Breath, customized MAC release message can be sent using service channel, avoid the demand for IP ability, customized
MAC release message, message format is simple, is with good expansibility.Suitable for currently disposing the PTN system of VPLS business
System.
Fig. 3 is the structural schematic diagram as transmitting terminal PE that the present invention realizes PTN business convergence, as shown in Figure 3, comprising:
Detection module, determining module, processing module and sending module.Wherein,
Detection module, for being spaced the MAC resource usage amount of the first preset duration detection VSI.
Determining module, for determining the MAC resource for needing to discharge according to the MAC resource usage amount detected.
It is specifically used for:
Judge whether MAC resource usage amount is greater than pre-set first threshold;
When the MAC resource usage amount is greater than or equal to first threshold, acquisition is not used by more than the second preset duration
Each MAC resource;It is more than that each MAC resource for being not used by of the second preset duration determines and needs to discharge according to acquisition
MAC resource;
When the MAC resource usage amount is less than first threshold, terminate;Alternatively,
Whether the quantity for judging that acquisition is more than each MAC resource that the second preset duration is not used by is more than to preset
Second threshold;When the quantity that acquisition is more than each MAC resource that the second preset duration is not used by is more than second threshold,
It is more than the determining MAC resource for needing to discharge of each MAC resource that the second preset duration is not used by according to acquisition.
Wherein it is determined that module is more than that each MAC resource for being not used by of the second preset duration determines needs according to acquisition
The MAC resource of release, comprising:
It is arranged more than each MAC resource that the second preset duration is not used by according to the time being not used by each
Sequence, it is the MAC resource that needs discharge that K is more than the MAC resource that is not used by of the second preset duration greatly before determining;Wherein, K is big
In 1 positive integer.
Processing module, the MAC resource discharged for discharging the needs determined, and discharged according to the needs determined
MAC resource constructs MAC release message message.
Wherein, MAC release message message include: two layers of head, channel (TUNNEL) label, pseudo-wire (PW) label, PW with
Path channels head (ACH) and MAC release message;
Wherein, MAC release message includes forwarding equivalence class (FEC) TLV field and MAC Address (Address) TLV field;
The VSI-ID of Virtual Private Network VPN where the MAC resource that the needs that FEC TLV field comprises determining that discharge
With VSI type;MAC Address TLV field includes the address for the MAC resource that the needs of the determination discharge;VSI type packet
It includes: ether business or the ether business with VLAN.
Wherein, processing module is specifically used for:
Creation sends control block by the MAC release message of major key KEY of VPN-ID and MAC release message-ID;
Fill the FEC TLV field and MAC Address of VPN-ID, MAC release message-ID, MAC release message
TLV field;
Whole pseudo-wire PW of traverses network side fill PW ACH, and stamp PW label and channel TUNNEL label.
Sending module, for MAC release message message to be sent to other PE equipment.
Further, sending module is also used to: it is pre- that MAC release message message continuously transmitted third by service channel
If value time is to other PE equipment and deletes MAC release message transmission control block.
Fig. 4 is the structural schematic diagram as receiving end PE that the present invention realizes PTN business convergence, as shown in Figure 4, comprising:
Receiving module, parsing module and release module.Wherein,
Receiving module, the MAC release message message sent for receiving other PE equipment.
Parsing module obtains VSI-ID and VSI type for solving the FEC TLV field in parsing MAC release message message.
Release module, for VSI-ID the and VSI type according to acquisition, determine itself configuration VPN whether with acquisition
VSI-ID and VSI type is corresponding;When the VPN of itself configuration is corresponding with VSI-ID the and VSI type of acquisition, according to MAC
MAC Address TLV field discharges corresponding MAC resource in release message message.
Embodiment
The above-mentioned PE as the transmitting terminal and PE as receiving end can be a PE.
Fig. 5 is work flow diagram of the embodiment of the present invention one as transmitting terminal PE, as shown in Figure 5, comprising the following steps:
Step 5401: the MAC resource usage amount of interval the first preset duration detection virtual switch instance (VSI).
Step 502: judging whether MAC resource usage amount is greater than pre-set first threshold;When MAC resource usage amount is big
When first threshold, it is transferred to step 504;Otherwise, it is transferred to step 503.
Step 503: obtaining each MAC resource being not used by more than the second preset duration;It is more than second that judgement, which obtains,
Whether the quantity for each MAC resource that preset duration is not used by is more than pre-set second threshold;When acquisition is more than
When the quantity for each MAC resource that two preset durations are not used by is more than second threshold, it is transferred to step 504;Otherwise, it is transferred to step
501。
Step 504: obtaining the MAC resource for meeting release conditions;According to the MAC resource for meeting release conditions of acquisition with
VPN ID and message id are key, and creation sends MAC release message control block.
Step 505: release meets the MAC resource of condition and constructs MAC release message message.This step and step 203 phase
Together, details are not described herein.
Wherein, MAC release message message include: two layers of head, TUNNEL label, PW label, PW ACH and MAC release disappear
Breath;
Wherein, MAC release message includes FEC TLV field and MAC Address TLV field;
The VSI-ID of Virtual Private Network VPN where the MAC resource that the needs that FEC TLV field comprises determining that discharge
With VSI type;MAC Address TLV field includes the address for the MAC resource that the needs of the determination discharge;VSI type packet
It includes: ether business or the ether business with VLAN.
Step 506: whole pseudo-wires (PW) of the network side under traversal VPN encapsulate network side PW label, send MAC release
Message packet.
Step 507: judging whether the PW of each network side has sent third preset value time MAC release message message;When
When having sent third preset value time MAC release message message, it is transferred to step 408;Otherwise, return step 506.
A counter can be set in this step come record send MAC release message message number, counter just
Initial value is 0, MAC release message message of every transmission, and the value of counter is incremented by 1.Wherein, third preset value can be set as 3,
It may be other numbers.
Step 508: deleting and send MAC release message control block.
Fig. 6 is work flow diagram of the embodiment of the present invention two as receiving end PE, as shown in Figure 6, comprising the following steps:
Step 601: receiving MAC release message message;The FECTLV field in parsing MAC release message message is solved, to obtain
VSI-ID the and VSI type of distal end VPN.
Step 602: according to VSI-ID the and VSI type of the distal end VPN of acquisition, searching the VPN of local equipment configuration.
Step 603: judge the local equipment found configuration VPN whether the VSI-ID and VSI with the distal end VPN of acquisition
Type is corresponding;When the VPN of the local equipment configuration found is corresponding with VSI-ID the and VSI type of distal end VPN of acquisition
When, it is transferred to step 604;Otherwise, terminate this process.
Step 604: judging whether there is and receive MAC release message control block;In the absence of, it is transferred to step 605;Otherwise turn
Enter step 606.
Step 605: creation receives MAC release message control block, and starting receives MAC release message ageing timer, is transferred to
Step 507.
Step 606: updating and receive MAC release message ageing timer, be transferred to step 610.
Step 607: the MAC Address TLV field in solution parsing MAC release message message needs to discharge with acquisition
MAC resource information;Corresponding release operation is executed according to the MAC resource information that the needs of acquisition discharge.It is transferred to step 508.
Step 608: judging whether reception MAC release message ageing timer is overtime.When time-out, it is transferred to step 609, it is no
Then it is transferred to step 610.
Step 609: deleting and receive MAC release message control block, be transferred to step 610.
Step 610: terminating this process.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program
Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD
Deng.Optionally, one or more integrated circuits can be used also to realize in all or part of the steps of above-described embodiment.Accordingly
Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module
Formula is realized.The application is not limited to the combination of the hardware and software of any particular form.
The above, preferred embodiments only of the invention, is not intended to limit the scope of the present invention.It is all this
Within the spirit and principle of invention, any modification, equivalent substitution, improvement and etc. done should be included in protection model of the invention
Within enclosing.
Claims (15)
1. a kind of method for realizing Packet Transport Network PTN business convergence, PTN system includes more than one Provider Edge routing
Device PE equipment characterized by comprising
The media access control MAC resource usage amount of the first preset duration of PE equipment interval detection virtual switch instance VSI;
According to the MAC resource usage amount detected, the MAC resource for needing to discharge is determined;
The MAC resource that the needs determined described in the PE release discharge, and provided according to the MAC that the needs determined discharge
Source structure MAC release message message;
The MAC release message message is sent to other PE equipment, other PE equipment discharge in the MAC release message message
MAC resource;
Wherein, the determining MAC resource for needing to discharge, comprising:
Judge whether the MAC resource usage amount is greater than pre-set first threshold;
When the MAC resource usage amount is greater than or equal to first threshold, obtain each more than what the second preset duration was not used by
A MAC resource;It is more than the determining MAC money for needing to discharge of each MAC resource that the second preset duration is not used by according to acquisition
Source;
Alternatively,
Whether judge to obtain be more than the quantity of each MAC resource that the second preset duration is not used by is more than pre-set the
Two threshold values;When the quantity that the acquisition is more than each MAC resource that the second preset duration is not used by is more than second threshold,
It is more than the determining MAC resource for needing to discharge of each MAC resource that the second preset duration is not used by according to the acquisition.
2. the method according to claim 1, wherein being tied when the MAC resource usage amount is less than first threshold
This process of beam.
3. according to the method described in claim 2, it is characterized in that, described according to acquisition is more than that the second preset duration is not made
Each MAC resource determines the MAC resource for needing to discharge, comprising:
It described is arranged more than each MAC resource that the second preset duration is not used by according to the time being not used by each
Sequence, it is the MAC resource that needs discharge that K is more than the MAC resource that is not used by of the second preset duration greatly before determining;Wherein, K is big
In 1 positive integer.
4. the method according to claim 1, wherein the MAC release message message includes: two layers of head, leads to
Road TUNNEL label, pseudo-wire PW label, PW are with path channels head ACH and MAC release message;
Wherein, the MAC release message includes forwarding equivalence class FEC TLV field and MAC Address Address TLV field;
The FEC TLV field includes: the Virtual Private Network VPN where the MAC resource that the needs of the determination discharge
VSI-ID and VSI type;The MAC Address TLV field includes the address for the MAC resource that the needs of the determination discharge;
The VSI type includes: ether business or the ether business with VLAN.
5. according to the method described in claim 3, it is characterized in that, the MAC resource structure that the needs that the basis is determined discharge
Make MAC release message message, comprising:
Creation sends control block by the MAC release message of major key KEY of VPN-ID and MAC release message-ID;
Fill VPN-ID, MAC release message-ID, the FEC TLV field of MAC release message and MAC Address TLV word
Section;
Whole pseudo-wire PW of traverses network side fill PW ACH, and stamp PW label and channel TUNNEL label.
6. method according to claim 4 or 5, which is characterized in that other PE equipment discharge MAC release message message
In MAC resource, comprising:
The FEC TLV field in the MAC release message message is parsed, VSI-ID and VSI type is obtained;
According to VSI-ID the and VSI type of acquisition, determine itself configuration VPN whether the VSI-ID and VSI type phase with acquisition
It is corresponding;
When the VPN of itself configuration is corresponding with VSI-ID the and VSI type of acquisition, according in the MAC release message message
MAC Address TLV field discharges corresponding MAC resource.
7. according to the method described in claim 5, it is characterized in that, this method further include: released the MAC by service channel
Message packet is put to continuously transmit third preset value time to other PE equipment and delete the MAC release message transmission control block.
8. a kind of provider edge router PE for realizing Packet Transport Network PTN business convergence characterized by comprising detection
Module, determining module, processing module and sending module;Wherein,
Detection module, the media access control MAC resource for being spaced the first preset duration detection virtual switch instance VSI use
Amount;
Determining module, for determining the MAC resource for needing to discharge according to the MAC resource usage amount detected;
Processing module, the MAC resource discharged for discharging the needs determined, and according to it is described determine need to discharge
MAC resource construct MAC release message message;
Sending module, for the MAC release message message to be sent to other PE equipment;
Wherein, the determining module is specifically used for:
Judge whether the MAC resource usage amount is greater than pre-set first threshold;
When the MAC resource usage amount is greater than or equal to first threshold, obtain each more than what the second preset duration was not used by
A MAC resource;It is more than the determining MAC money for needing to discharge of each MAC resource that the second preset duration is not used by according to acquisition
Source;Alternatively,
Whether the quantity for judging that the acquisition is more than each MAC resource that the second preset duration is not used by is more than to preset
Second threshold;When the quantity that the acquisition is more than each MAC resource that the second preset duration is not used by is more than the second threshold
It is more than the determining MAC money for needing to discharge of each MAC resource that the second preset duration is not used by according to the acquisition when value
Source.
9. PE according to claim 8, which is characterized in that the determining module also particularly useful for:
When the MAC resource usage amount is less than first threshold, terminate.
10. PE according to claim 9, which is characterized in that when the determining module is more than second default according to acquisition
The long each MAC resource being not used by determines the MAC resource for needing to discharge, comprising:
It described is arranged more than each MAC resource that the second preset duration is not used by according to the time being not used by each
Sequence, it is the MAC resource that needs discharge that K is more than the MAC resource that is not used by of the second preset duration greatly before determining;Wherein, K is big
In 1 positive integer.
11. PE according to claim 8, which is characterized in that the MAC release message message includes: two layers of head, channel
TUNNEL label, pseudo-wire PW label, PW are with path channels head ACH and MAC release message;
Wherein, the MAC release message includes forwarding equivalence class FEC TLV field and MAC Address Address TLV field;
The FEC TLV field includes: the Virtual Private Network VPN where the MAC resource that the needs of the determination discharge
VSI-ID and VSI type;The MAC Address TLV field includes the address for the MAC resource that the needs of the determination discharge;
The VSI type includes: ether business or the ether business with VLAN.
12. PE according to claim 9, which is characterized in that the processing module is specifically used for:
Creation sends control block by the MAC release message of major key KEY of VPN-ID and MAC release message-ID;
Fill VPN-ID, MAC release message-ID, the FEC TLV field of MAC release message and MAC Address TLV word
Section;
Whole pseudo-wire PW of traverses network side fill PW ACH, and stamp PW label and channel TUNNEL label.
13. PE according to claim 12, which is characterized in that the sending module is also used to: by service channel by institute
MAC release message message is stated to continuously transmit third preset value time to other PE equipment and delete the MAC release message transmission control
Clamp dog.
14. a kind of provider edge router PE for realizing Packet Transport Network PTN business convergence characterized by comprising receive
Module, parsing module and release module;Wherein,
Receiving module, the MAC release message message sent for receiving other PE equipment;
Parsing module obtains VSI-ID and VSI type for parsing the FEC TLV field in the MAC release message message;
Release module, for VSI-ID the and VSI type according to acquisition, determine itself configuration VPN whether the VSI- with acquisition
ID and VSI type is corresponding;When the VPN of itself configuration is corresponding with VSI-ID the and VSI type of acquisition, according to the MAC
MAC Address TLV field discharges corresponding MAC resource in release message message.
15. a kind of provider edge router PE for realizing Packet Transport Network PTN business convergence, which is characterized in that including such as weighing
Benefit requires PE described in 8-13 any one and PE as claimed in claim 14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510209509.1A CN104954259B (en) | 2015-04-28 | 2015-04-28 | A kind of method that realizing PTN business convergence and PE |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510209509.1A CN104954259B (en) | 2015-04-28 | 2015-04-28 | A kind of method that realizing PTN business convergence and PE |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104954259A CN104954259A (en) | 2015-09-30 |
CN104954259B true CN104954259B (en) | 2019-04-02 |
Family
ID=54168624
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510209509.1A Active CN104954259B (en) | 2015-04-28 | 2015-04-28 | A kind of method that realizing PTN business convergence and PE |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104954259B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107465634A (en) * | 2016-06-06 | 2017-12-12 | 中兴通讯股份有限公司 | Method for releasing resource, system and device in business function chain |
CN109818811B (en) * | 2019-03-25 | 2020-05-12 | 电子科技大学 | Method for identifying distribution type and mixed type MAC protocol |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607479A (en) * | 2013-10-31 | 2014-02-26 | 杭州华三通信技术有限公司 | MAC (media access control) address learning method and PE (provider edge) equipment |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100461706C (en) * | 2006-11-29 | 2009-02-11 | 杭州华三通信技术有限公司 | Method for recovering sponsor media accessing control address and operation businesss edge apparatus |
US8059549B2 (en) * | 2009-02-17 | 2011-11-15 | Tellabs Operations, Inc. | Method and apparatus for supporting network communications using point-to-point and point-to-multipoint protocols |
CN101730063B (en) * | 2009-11-19 | 2012-05-23 | 福建星网锐捷网络有限公司 | Neighbor table entry resource recovery method, device and IPv6 (internet protocol version 6) node |
CN101984591B (en) * | 2010-10-13 | 2015-05-06 | 中兴通讯股份有限公司 | Service convergence method and system in transport-multiprotocol label switching network |
CN102088415B (en) * | 2011-03-14 | 2014-06-25 | 杭州华三通信技术有限公司 | Method and device for MAC (media access control) address withdrawal |
CN102546855B (en) * | 2011-11-28 | 2017-10-17 | 中兴通讯股份有限公司 | MAC Address recovery method and PE equipment in VPLS network |
CN103560869B (en) * | 2013-09-10 | 2016-10-12 | 杭州华三通信技术有限公司 | A kind of VPLS link switching, auxiliary switching device and method |
-
2015
- 2015-04-28 CN CN201510209509.1A patent/CN104954259B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607479A (en) * | 2013-10-31 | 2014-02-26 | 杭州华三通信技术有限公司 | MAC (media access control) address learning method and PE (provider edge) equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104954259A (en) | 2015-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200280514A1 (en) | Packet forwarding method, apparatus, and system | |
WO2016198013A1 (en) | Packet transmission method and apparatus | |
WO2017054576A1 (en) | Unicast tunnel building method, apparatus and system | |
WO2021213045A1 (en) | Packet processing method and device based on in-situ flow detection | |
WO2015192690A1 (en) | Hard pipe building method and packet forwarding method and device in network | |
US8665782B2 (en) | Loop-detection in moving networks | |
US20130223287A1 (en) | Layer two extensions | |
WO2015144018A1 (en) | Information transmission method, device and communication system | |
WO2015101066A1 (en) | Method and node for establishing quality of service reservation | |
US20150131672A1 (en) | Method, device and system for establishing a pseudo wire | |
CN103067278B (en) | A kind of method for transmission processing of Frame, equipment and system | |
EP4044529A1 (en) | Detnet data packet processing method and apparatus | |
WO2019052406A1 (en) | Methods, nodes and computer readable media for tunnel establishment per slice | |
CN109691031B (en) | Service message transmission method and node equipment | |
CN112104547B (en) | Method and device for avoiding loop in EVPN multi-homing networking | |
CN104995882B (en) | Message processing method and device | |
JP2010088080A (en) | Communication apparatus and communication method | |
CN104954259B (en) | A kind of method that realizing PTN business convergence and PE | |
CN101848143A (en) | Method and device for processing QoS of flow of virtual private network | |
WO2022160665A1 (en) | Packet forwarding method, packet processing method, and device | |
JP2010004350A (en) | Communication device in label switching network | |
WO2022028216A1 (en) | Network layer reachable information transmission method, system and apparatus, and network device | |
US7761589B1 (en) | Flow control for multi-hop networks | |
CN104468386B (en) | Flow equalization method and device in a kind of Ethernet virtualization internet network | |
US9094313B2 (en) | Data and media access controller (MAC) throughputs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |