CN104135441B - A kind of message processing method and device - Google Patents
A kind of message processing method and device Download PDFInfo
- Publication number
- CN104135441B CN104135441B CN201410391198.0A CN201410391198A CN104135441B CN 104135441 B CN104135441 B CN 104135441B CN 201410391198 A CN201410391198 A CN 201410391198A CN 104135441 B CN104135441 B CN 104135441B
- Authority
- CN
- China
- Prior art keywords
- mac address
- change
- rpr
- website
- source site
- 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
Landscapes
- Small-Scale Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a kind of message processing method, this method includes:During the MAC Address change of website, first timer is opened;First timer then before, when the website receives the RPR data messages of the MAC Address before the change that purpose website MAC Address is this website or after change, lower ring and lift-off processing are carried out to the RPR data messages;MAC Address before first timer to the change for constantly, deleting this website.Based on same inventive concept, the application also proposes a kind of message process device, and after the MAC Address change of website, whole RPR network topologies are not updated before completion also, ensure that the normal transmission of data message.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of message processing method and device.
Background technology
RPR (Resilient Packet Ring, RPR) is a kind of new media access control (Media
Access Control, MAC) agreement, can run on Synchronous Optical Network (Synchronous Optical Network,
SONET)/Synchronous Digital Hierarchy (Synchronous Digital Hierarchy, SDH), level of confidentiality wavelength-division multiplex (Dense
Wavelength Division Multiplexing, DWDM) and Ethernet on, provide spirit for broadband IP MAN operator
Efficient networking plan living.
RPR uses reverse twin nuclei, and data are forwarded among the nodes along RPR looped networks.When either site on RPR rings
MAC Address when changing, the topology of each website of RPR networks can be caused to occur once to shake to complete new topological database
Foundation, and ring selection table and RPR mac address tables are also required to update therewith.
After the MAC Address change of website, if when topology database update is not yet completed, data message is still according to this
The old RPR mac address tables encapsulation of website, then can cause to can not find purpose website after ring on the RPR data messages after the encapsulation
Lower ring and be dropped.
The content of the invention
In view of this, the application provides a kind of message processing method and device, with solving the MAC before the change using website
The RPR data messages of location encapsulation can not find the problem of point of destination point carries out lower ring and is dropped.
In order to solve the above technical problems, what the technical scheme of the application was realized in:
A kind of message processing method, applied to the either site on RPR ring, methods described includes:
During the MAC address change of website, the website opens first timer;
First timer then before, the website receive purpose website MAC Address be this website change before or become
During the RPR data messages of the MAC Address after change, lower ring and lift-off processing are carried out to the RPR data messages;
In first timer to constantly, the website deletes the MAC Address before the change of this website.
A kind of message process device, applied to the either site on RPR ring, described device includes:Regularly
Unit, receiving unit and processing unit;
The timing unit, when the MAC address for website where the present apparatus changes, opens first and determines
When device;
The receiving unit, for receiving message;
The processing unit, for the first timer that the timing unit is opened then before, the receiving unit connects
Receive purpose website MAC Address for the MAC Address before the change of website where the present apparatus or after change RPR data messages when,
Lower ring and lift-off processing are carried out to the RPR data messages;The first timer opened in the timing unit is deleted to constantly
MAC Address before the change of website where device.
In summary, the application is by after the MAC Address of the website changes, by the MAC before the change of the website
Address retains certain time, the RPR data messages of the MAC Address before purpose website MAC Address is received for this site change
When, lower ring and lift-off processing still are carried out to the message, after the MAC Address change of website, whole RPR network topologies are also not more
Before new completion, the normal transmission of data message ensure that.
Brief description of the drawings
Fig. 1 is the website message processing method schematic flow sheet of MAC Address change in the embodiment of the present application;
Fig. 2 is that the website of MAC changes in the embodiment of the present application controls Message processing process to RPR;
Fig. 3 is IRF division networking schematic diagrams in the application RPR networks;
Fig. 4 is the message process device structural representation in the application specific embodiment applied to above-mentioned technology.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below in conjunction with the accompanying drawings and according to embodiment,
Technical scheme is described in detail.
Referring to Fig. 1, Fig. 1 is the website message processing method schematic flow sheet of MAC Address change in the embodiment of the present application.Tool
Body step is:
Step 101, during the MAC Address change of website, the website opens first timer.
Step 102, first timer then before, the website receive purpose website MAC Address be this website change
During the RPR data messages of the MAC Address after preceding or change, lower ring and lift-off processing are carried out to the RPR data messages.
After the application is in the MAC Address change of website, the MAC Address before the website is not changed directly is deleted,
But a timer is opened, the MAC Address before the timer then preceding safeguards the change, so that the topology of RPR rings is not more
Before new completion, lower ring can be normally carried out by remaining able to the RPR messages to purpose website MAC Address for the MAC Address before change
And lift-off processing, so as to ensure that the normal transmission of data message.
When implementing, the timing of the first timer can be configured according to practical application, such as be ensured
The topology of RPR rings updates can carry out normal process before completion to RPR data messages.
Step 103, in first timer to constantly, the website deletes the MAC Address before the change of this website.
In first timer to constantly, the website deletes the MAC Address before the change safeguarded.The first timer is while shadow
The processing that this website controls RPR message is rung, detailed process is as follows:
Referring to Fig. 2, Fig. 2 is that the website of MAC changes in the embodiment of the present application controls Message processing process to RPR.Specific step
Suddenly it is:
Step 201, website first timer then before, on RPR rings other websites send carry the website change
The RPR control messages of the MAC Address before MAC Address and change after change, so that other stations awares website on RPR rings
MAC Address changes, and the MAC Address before change and after change.
MAC Address after the site change controls the Source Site MAC Address field of message to carry by the RPR of transmission, becomes
MAC Address before change is carried by the custom field or reserved field in the RPR of transmission control messages.
Step 202, the website first timer then after, sent to the other websites on RPR rings and carry this website
The RPR control messages of MAC Address after change.
The website first timer then after, then to other websites send RPR control messages when, compared with realization, no
Need to carry the MAC Address before the change of this website.
If the website is as the unchanged website of MAC Address, the RPR controls that other websites are sent on RPR rings are received
It is handled as follows during message:
(1) if, the RPR control message carry send the RPR control message Source Site change after and change before MAC
The MAC Address after the Source Site changes is not present in address, and local topology database, there is the MAC before the change of the Source Site
Address, then control the topology information calculating network topology that message is carried, when the network topology calculated is with locally opening up according to the RPR
Flutter the Source Site of this in database change before the corresponding network topology of MAC Address it is identical when, then using the change of the Source Site after
MAC Address replace local topology database in the Source Site change before MAC Address;
Contents in table and the MAC Address pair before the change of the Source Site are set up for the MAC Address after the change of the Source Site
The contents in table identical RPR MAC address entries answered;And set up contents in table and the source for the MAC Address after the change of the Source Site
The corresponding contents in table identical RPR of MAC Address before the change of website integrates ring selection list item.
Meanwhile, the website integrates ring selection for the corresponding RPR MAC address entries of MAC Address and RPR before the change of the Source Site
List item sets second timer;Wherein, before the timing of second timer is more than the Source Site for the change of the Source Site
The timing for the timer that MAC Address is set;
Two timer then before, receive the corresponding RPR MAC address entries pair of the MAC Address before the change of the Source Site
During the message answered, the corresponding RPR MAC address entries of MAC Address not refreshed before the change of the Source Site;
In the second timer to constantly, the website deletes the corresponding RPR of MAC Address before the change of the Source Site
MAC address entries and RPR integrate ring selection list item.
(2) if, the RPR control message carry send the RPR control message Source Site change after and change before MAC
The MAC Address after the Source Site changes is not present in address, local topology database, with there is the MAC before the change of the Source Site
Location, then control the topology information calculating network topology that message is carried, when the network topology and local topology that calculate according to the RPR
When the corresponding network topology of MAC Address before the change of the Source Site of this in database is differed, RPR control messages are not handled, directly
To the local corresponding topology information of MAC Address being not present before change.
(3), the RPR control messages outside (1) and (2) two kinds of situations, are handled by existing realization.
Due to the renewal processing procedure of RPR MAC Address list item above, cause second timer then before, website may
There is the RPR MAC Address list items that corresponding two next-hops of destination address are differed, therefore, now receive purpose MAC
During the data message of address, it is handled as follows:
Website receives data message, and when determining that the data message need to carry out upper ring processing, if according to the data message
Target MAC (Media Access Control) address find two RPR MAC Address list items, then select purpose MAC in most newly-established RPR MAC address entries
The corresponding next hop address in address carries out RPR encapsulation and forwarded.
Below in conjunction with the accompanying drawings, after the MAC Address of any node changes on RPR rings in detailed description the application, each
The processing procedure of node.
The MAC Address change of website on RPR rings has a variety of situations, and the change such as artificially configured, the website is other
Standby equipment, the website are IRF equipment in system and main equipment and standby equipment in IRF equipment change.
Referring to Fig. 3, Fig. 3 is IRF division networking schematic diagrams in the application RPR networks.As shown in figure 3, the website on RPR rings
A is IRF equipment, and the IRF equipment is stacked and formed by device A 1 and device A 2, and device A 2 is that the member that election is main equipment sets
It is standby, device A 1 be do not elect be main equipment member device.Two logic interfacings of the IRF equipment (website A) on RPR rings exist
In device A 1.
During IRF equipment normal works, website A MAC Address is the MAC Address (00E0-0000- of main equipment (device A 2)
00A0)。
If a certain moment, IRF equipment divides, device A 1 is only existed in the new IRF equipment where device A 1, because
This, device A 1 is elected as main equipment, then website A MAC Address becomes the MAC Address 00E0-0000-00A1 for turning to device A 1
If (there is multiple equipment in the IRF where device A 1, the MAC for the equipment for being main equipment will be elected in this multiple equipment
Location as website A MAC Address).Therefore, website A MAC Address changes, and the MAC Address before change is 00E0-0000-
00A0, the MAC Address after change is 00E0-0000-00A1.
Now, website A opens a timer, configures timing by concrete application, is such as set to 3 seconds, in this 3 seconds,
When website A receives the RPR data messages that purpose website MAC Address is 00E0-0000-00A0 or 00E0-0000-00A1, stand
Point A carries out lower ring and lift-off processing to the RPR data messages.
It is timed to constantly in this timer, website A deletes the MAC Address before the change of maintenance, can also identify this
MAC Address before change is not the MAC Address of this equipment;Receive the RPR that purpose website MAC Address is 00E0-0000-00A0
Data message is handled by existing realization.
The application is when implementing, when website A MAC Address changes, and other equipment may not felt also on ring
Know, this retains the MAC Address before change using a period of time, it is the MAC before change that can make point of destination point MAC Address
Location 00E0-0000-00A0 message still can correctly perform lower ring and lift-off processing.
After website A MAC Address changes, can with the MAC Address 00E0-0000-00A1 after changing on ring other
Website sends RPR control messages, for example, TC (Topology Checksum, topology verification and) message, TP (Topology
Protection, topology protection) message, ATD (Attribute Discovery, Attribute Discovery) message, i.e., RPR control report
MAC Address 00E0-0000-00A1 after the Source Site MAC fields filling change of text, while carrying one in RPR control messages
MAC Address 00E0-0000-00A0 before mark and change, i.e., control reserved field or the custom field filling of message in RPR
MAC Address 00E0-0000-00A0 before change, so as to receive stations aware website A on the ring of these RPR control messages
MAC Address is changed, and knows the MAC Address before change and after change.
Website A, to constantly, is sent in timer with the MAC Address 00E0-0000-00A1 after change to other equipment on ring
When RPR controls message, the MAC Address 00E0-0000-00A0 before change is no longer carried.
Other websites receive the MAC Address 00E0-0000- before the change that website A is carried while website A is sent on ring
During the 00A0 and MAC Address 00E0-0000-00A1 after change RPR control messages, it is handled as follows and (enters by taking website D as an example
Row explanation):
(1), website D determines to be not present in local topology database after the change for the website A that the RPR controls message to carry
MAC Address 00E0-0000-00A1, and there is the MAC Address 00E0-0000- before RPR control message carrying websites A change
During 00A0, according to the RPR control message carry topology information calculating network topology, when the network topology calculated with local
When the corresponding network topologies of MAC Address 00E0-0000-00A0 in topological database before website A change are identical, it is determined that should
RPR controls message to be that the MAC Address before changing sends for 00E0-0000-00A0 website A, then by local topology data
MAC Address 00E0-0000-00A0 in storehouse is revised as 00E0-0000-00A1.
In this case, website D needs processing RPR to integrate ring selection table and RPR after topological database has been updated, also
Mac address table.
Website D sets up 00E0- in the RPR MAC Address list items that next hop address is 00E0-0000-00A1, the list item
The corresponding other guides of 0000-00A1 replicate the corresponding content of list item that next-hop mac address is 00E0-0000-00A0.
Referring to table 1, table 1 is the content that the RPR MAC Address list items that next hop address is 00E0-0000-00A0 are included.
Referring to table 2, table 2 is the content that the RPR MAC Address list items that next hop address is 00E0-0000-00A1 are included.
MAC Address | Next-hop |
0000-0000-0002 | 00E0-0000-00A0 |
Table 1
MAC Address | Next-hop |
0000-0000-0002 | 00E0-0000-00A1 |
Table 2
From Tables 1 and 2, table 2 is equivalent to the content for replicating a table 1, and by the next-hop 00E0-0000- in table 1
00A0 is revised as after 00E0-0000-00A1, is used as the content of table 2.
The letter that VLAN ID, status, TTL etc. need to record can also be included in existing realization in RPR mac address tables
Breath, the application is when implementing, to this and without modification, and related content present in list item is replicated.
After the completion of the foundation of table 2, ageing time can be set to table 1, and (as set timer, the timing of timer is
For ageing time), time of the ageing time slightly larger than the timer opened on website A of setting, arrived in the ageing time
Shi Qian, website D are not carried out when receiving the data message that source MAC is 0000-0000-0002 to the list item shown in table 1
Refresh;In the ageing time to constantly, website D deletes the list item shown in table 1.For newly-established table 2, by real in existing realization
It is existing, ageing time is such as set, refreshes ageing time.
Website D is that MAC Address 00E0-0000-00A1 sets up RPR synthesis ring selection list items, the 00E0- in the list item of foundation
The RPR that the corresponding contents of 0000-00A1 replicate MAC Address 00E0-0000-00A1 integrates corresponding content in ring selection list item.
Referring to table 3, table 3 integrates the corresponding content of ring selection table for MAC Address 00E0-0000-00A0 RPR.
Referring to table 4, table 4 integrates the corresponding content of ring selection table for MAC Address 00E0-0000-00A1 RPR.
MAC Address | Ring number |
00E0-0000-00A0 | 0 |
Table 3
MAC Address | Ring number |
00E0-0000-00A1 | 0 |
Table 4
From table 3 and table 4, table 4 is equivalent to the content for replicating a table 3, and by the MAC Address 00E0- in table 3
0000-00A0 is revised as after 00E0-0000-00A1, is used as the content of table 4.
RPR, which is integrated, in existing realization can also include the information that TTL, TYPE, device identification etc. need to record in ring selection table,
The application is when implementing, to this and without modification, and related content present in list item is replicated.
It is that table 3 sets ageing time (such as to set timer, the timing of timer is old after the completion of the foundation of table 4
The change time), the ageing time of setting is identical with the ageing time set for table 1, when ageing time then, delete table 3 institute
The list item shown;Table 4 can integrate the ageing time of ring selection table compared with setting RPR is realized, with the ageing time of table 2.
When implementing, RPR can also be integrated ring selection list item and merge realization with RPR MAC Address list items,
Together handled, be not detailed herein.
(2), website D determines to be not present in local topology database after the change for the website A that the RPR controls message to carry
MAC Address 00E0-0000-00A1, and there is the MAC Address 00E0-0000- before RPR control message carrying websites A change
During 00A0, according to the RPR control message carry topology information calculating network topology, when the network topology calculated with local
When the corresponding network topologies of MAC Address 00E0-0000-00A0 in topological database before website A change are different, this is not handled
RPR controls message.
(3), website D determines exist in local topology database after the website A change that the RPR controls message carrying
(no matter whether RPR control messages also carry other MAC Address to MAC Address 00E0-0000-00A1, before such as website A change
MAC Address), by existing realization handle, according to the control message carry topology information calculating network topology, and determine calculate
Whether the network topology gone out network topology corresponding with the MAC Address of this in local topology database 00E0-0000-00A1 is identical,
If it is, maintaining the corresponding network topologies of MAC Address 00E0-0000-00A1 in local topology database constant;Otherwise, make
MAC Address 00E0-0000-00A1 map networks topology in local topology database is updated with the network topology calculated.
(4), website D is when receiving other RPR control messages, compared with realization, according to message content determine whether into
Row network topology updates.
Message repeating process is described below in detail:
The first step, when website D receives the data message of PC A transmissions, source MAC study is carried out to the data message,
And searched according to the target MAC (Media Access Control) address of the data message in local mac forward table, if correspondence list item is not found, by existing
Realization is handled;If finding correspondence list item, handled according to contents in table:
When the outgoing interface in the MAC forwarding-table items found is local port, then the message is passed through into the port that finds
Forwarding;If the outgoing interface found is RPR logic interfaces, illustrate that this data message needs to perform upper ring processing on website D.
Second step, when data message needs to carry out upper ring processing, need to find the target MAC (Media Access Control) address correspondence of the data message
Next hop address encapsulate the data message for RPR data messages;And know by being sent out with which logic interface that the RPR is bound
Send, i.e., sent by outer shroud or inner ring.
Website D is according to the target MAC (Media Access Control) address 0000-0000-0002 of the data message in local RPRMAC address tables
Search, when finding a correspondence MAC Address list item, according to corresponding next-hop in the RPRMAC address list items to the data
Message carries out the encapsulation of RPR;
And hair is found in RPR integrates ring selection table according to the target MAC (Media Access Control) address 0000-0000-0002 of the data message
Give the RPR ring numbers of the data message, and the data message of encapsulation RPR is passed through on the corresponding ring of RPR ring numbers that finds
The port for sending message is sent.
When being searched in RPR mac address tables, if finding next in two correspondence list items, most newly-established list item
Address is jumped, that is, the MAC Address after changing carries out RPR encapsulation., can will be newly-established and originally set up when implementing
This two list item mark-ons are known, and are the MAC Address after change to distinguish the corresponding next hop address of which list item.
3rd step, the purpose website MAC Address that website B receives website D transmissions is 00E0-0000-00A1 or 00E0-
During 0000-00A0 RPR data messages, because the purpose website MAC Address of the RPR data messages is not website B MAC
Location, therefore the RPR data messages carried out ring processing.
4th step, website A timer then before, receive purpose website MAC Address for 00E0-0000-00A1 or
During 00E0-0000-00A0 RPR data messages, lower ring and lift-off processing are carried out to the RPR data messages.
Specifically, website A timer then before, receive purpose website MAC Address for 00E0-0000-00A1 or
During 00E0-0000-00A0 RPR data messages, the RPR heads of the RPR data messages are peeled off, and according to peeling off after RPR
The target MAC (Media Access Control) address of data message is searched in local mac forward table, and is transmitted to PC B according to lookup result.Also, website
A no longer forwards the RPR data messages.
Website A, to constantly, the MAC Address 00E0-0000-00A0 before the change of maintenance is deleted, then receives in timer
During to the RPR data messages that purpose website MAC Address is 00E0-0000-00A0, realize, sent on RPR rings, directly by existing
TTL to data RPR messages terminates for 0.
Based on same inventive concept, a kind of message process device is proposed in the application specific embodiment, applied to RPR rings
On either site.Referring to Fig. 4, Fig. 4 is the message process device structure in the application specific embodiment applied to above-mentioned technology
Schematic diagram.The message process device includes:Timing unit 401, receiving unit 402 and processing unit 403;
Timing unit 401, when the MAC Address for website where the present apparatus changes, opens first timer;
Receiving unit 402, for receiving message;
Processing unit 403, for the first timer that timing unit 401 is opened then before, receiving unit 402 is received
Carrying purpose website MAC Address for the MAC Address before the change of website where the present apparatus or after change message when, to this
Message carries out lower ring and lift-off processing;The first timer opened in timing unit 401 deletes present apparatus place website to constantly
Change before MAC Address.
It is preferred that the device further comprises:Transmitting element 404.
Transmitting element 404, after the MAC Address change of website where the present apparatus, the first of the unlatching of timing unit 401
Timer then before, on RPR rings other websites send carry the present apparatus where website change after MAC Address and change
The RPR control messages of preceding MAC Address, so that the MAC Address of website becomes where other stations aware present apparatus on RPR rings
Change, and the MAC Address before and after change.
It is preferred that
Processing unit 403, the MAC Address for website where the present apparatus does not change, is received in receiving unit 402
During the RPR control messages that other websites are sent on RPR rings, if RPR control messages, which are carried, sends the source station that the RPR controls message
The MAC Address after the Source Site changes is not present in MAC Address after the change of point and before change, local topology database, deposits
MAC Address before changing in the Source Site, then control the topology information calculating network topology that message is carried according to the RPR, work as meter
When the network topology calculated is identical with the corresponding network topology of MAC Address before the change of the Source Site of this in local topology database,
The MAC Address in local topology database before the change of the Source Site is replaced using the MAC Address after the change of the Source Site;For
MAC Address after the change of the Source Site is set up in contents in table list item corresponding with the MAC Address before the change of the Source Site
Hold identical RPR MAC address entries;And the change of contents in table and the Source Site is set up for the MAC Address after the change of the Source Site
The corresponding contents in table identical RPR of preceding MAC Address integrates ring selection list item.
It is preferred that
Timing unit 401, be further used for the corresponding RPR MAC address entries of the MAC Address before the change for the Source Site and
RPR integrates ring selection list item and sets second timer;Wherein, it is the Source Site that the timing of second timer, which is more than the Source Site,
Change before MAC Address set timer timing;The second timer then before, receiving unit 402 is received
During the corresponding message of corresponding RPR MAC address entries of MAC Address before to the change of the Source Site, the change of the Source Site is not refreshed
The corresponding RPR MAC address entries of preceding MAC Address;
Processing unit 403, is further used for the second timer set in timing unit 401 to constantly, deleting the source station
The corresponding RPR MAC address entries of MAC Address and RPR before the change of point integrate ring selection list item.
It is preferred that
Processing unit 403, is further used for when receiving unit 402 receives data message, and determine that the data message is needed
When carrying out upper ring processing, if finding two RPR MAC Address list items according to the target MAC (Media Access Control) address of the data message, select
The corresponding next hop address of the target MAC (Media Access Control) address carries out RPR encapsulation and forwarded in most newly-established RPR MAC address entries.
The unit of above-described embodiment can be integrated in one, and can also be deployed separately;A unit is can be merged into, also may be used
To be further split into multiple subelements.
In summary, the application is by after the MAC Address of website changes, by the MAC before the change of the website
Location retains certain time, the RPR data messages of the MAC Address before the change that purpose website MAC Address is this website is received
When, lower ring and lift-off processing still are carried out to the message, after the MAC Address change of website, whole RPR network topologies are also not more
Before new completion, the normal transmission of data message ensure that.
When RPR websites MAC changes, before the change that website is carried in the RPR control messages sent within a certain period of time
MAC Address, other RPR websites receive the RPR control message after, the MAC Address that can be allowed before the change of website is corresponding
Topology information and forward table information smoothing be transformed into the MAC Address after the change of website, it is to avoid network topology updates what is brought
Concussion.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.
Claims (10)
1. a kind of message processing method, applied to the either site on RPR ring, it is characterised in that methods described
Including:
During the MAC address change of website, the website opens first timer;Wherein, first timing
The topology renewal for completing RPR rings is ensure that in device timing;
First timer then before, the website receive purpose website MAC Address be this website change before or change after
MAC Address RPR data messages when, lower ring and lift-off processing are carried out to the RPR data messages;
In first timer to constantly, the website deletes the MAC Address before the change of this website.
2. according to the method described in claim 1, it is characterised in that methods described further comprises:
The website MAC Address change after, first timer then before, on RPR rings other websites send carry the station
The RPR control messages of MAC Address after the change of point and the MAC Address before change, so that other stations awares station on RPR rings
The MAC Address of point changes, and the MAC Address before change and after change.
3. method according to claim 1 or 2, it is characterised in that methods described further comprises:
When the MAC Address of the website does not change, the website RPR that other websites are sent on RPR rings are received controls
During message processed, if RPR control messages carry the MAC after the change of the Source Site for sending RPR control message and before change
The MAC Address after the Source Site changes is not present in location, and local topology database, with there is the MAC before the change of the Source Site
Location, then control the topology information calculating network topology that message is carried, when the network topology and local topology that calculate according to the RPR
When the corresponding network topology of MAC Address before the change of the Source Site of this in database is identical, the MAC after the change of the Source Site is used
Replace the MAC Address before the change of the Source Site in local topology database in address;
The MAC that the website is set up for the MAC Address after the change of the Source Site before the change of contents in table and the Source Site
The corresponding contents in table identical RPR MAC address entries in location;And for the Source Site change after MAC Address set up contents in table with
The corresponding contents in table identical RPR of MAC Address before the change of the Source Site integrates ring selection list item.
4. method according to claim 3, it is characterised in that methods described further comprises:
The website integrates ring selection list item for the corresponding RPR MAC address entries of MAC Address and RPR before the change of the Source Site and set
Second timer;Wherein, the timing of second timer is more than the Source Site and set for the MAC Address before the change of the Source Site
The timing for the timer put;
The second timer then before, the website receives the corresponding RPR MAC of the MAC Address before the change of the Source Site
During the corresponding message of list item, the corresponding RPR MAC address entries of MAC Address not refreshed before the change of the Source Site;
In the second timer to constantly, the website deletes the corresponding RPR MAC tables of the MAC Address before the change of the Source Site
Item and RPR integrate ring selection list item.
5. method according to claim 3, it is characterised in that methods described further comprises:
The website receives data message, and when determining that the data message need to carry out upper ring processing, if according to the data message
Target MAC (Media Access Control) address find two RPR MAC Address list items, then select purpose MAC in most newly-established RPR MAC address entries
The corresponding next hop address in address carries out RPR encapsulation and forwarded.
6. a kind of message process device, applied to the either site on RPR ring, it is characterised in that described device
Including:Timing unit, receiving unit and processing unit;
The timing unit, when the MAC address for website where the present apparatus changes, opens the first timing
Device;Wherein, the topology renewal for completing RPR rings is ensure that in the first timer timing;
The receiving unit, for receiving message;
The processing unit, for the first timer that the timing unit is opened then before, the receiving unit is received
During the RPR data messages of the MAC Address before the change of website where the present apparatus of purpose website MAC Address or after change, to this
RPR data messages carry out lower ring and lift-off processing;The first timer opened in the timing unit is to constantly, the deletion present apparatus
MAC Address before the change of place website.
7. device according to claim 6, it is characterised in that the device further comprises:Transmitting element;
The transmitting element, after the MAC Address change of website where the present apparatus, the first of the timing unit unlatching determines
When device then before, on RPR rings other websites send carry the present apparatus where website change after MAC Address and change before
MAC Address RPR control messages so that the MAC Address of website where other stations aware present apparatus becomes on RPR rings
Change, and the MAC Address before change and after change.
8. the device according to claim 6 or 7, it is characterised in that
The processing unit, the MAC Address for website where the present apparatus does not change, is received in the receiving unit
During the RPR control messages that other websites are sent on RPR rings, if RPR control messages, which are carried, sends the source station that the RPR controls message
MAC Address after the change of point and before change, and in the absence of the MAC Address after the change of the Source Site in local topology database,
MAC Address before changing in the presence of the Source Site, then control the topology information calculating network topology that message is carried according to the RPR, when
The corresponding network topology of MAC Address before the network topology calculated changes with the Source Site of this in local topology database is identical
When, using the MAC Address after the change of the Source Site with replacing the MAC in local topology database before the change of the Source Site
Location;Contents in table table corresponding with the MAC Address before the change of the Source Site is set up for the MAC Address after the change of the Source Site
Item content identical RPR MAC address entries;And set up contents in table and the Source Site for the MAC Address after the change of the Source Site
The corresponding contents in table identical RPR of MAC Address before change integrates ring selection list item.
9. device according to claim 8, it is characterised in that
The timing unit, is further used for the corresponding RPRMAC list items of the MAC Address before the change for the Source Site and RPR is comprehensive
Close ring selection list item and second timer is set;Wherein, the timing of second timer is more than the change that the Source Site is the Source Site
The timing for the timer that MAC Address before change is set;The second timer then before, the receiving unit receives this
During the corresponding message of corresponding RPR MAC address entries of MAC Address before the change of Source Site, before the change for not refreshing the Source Site
The corresponding RPR MAC address entries of MAC Address;
The processing unit, is further used for the second timer set in the timing unit to constantly, deleting the Source Site
Change before the corresponding RPR MAC address entries of MAC Address and RPR integrate ring selection list item.
10. device according to claim 8, it is characterised in that
The processing unit, is further used for when the receiving unit receives data message, and determine that the data message need to enter
During row upper ring processing, if finding two RPRMAC address list items according to the target MAC (Media Access Control) address of the data message, select newest
The corresponding next hop address of the target MAC (Media Access Control) address carries out RPR encapsulation and forwarded in the RPR MAC address entries of foundation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410391198.0A CN104135441B (en) | 2014-08-11 | 2014-08-11 | A kind of message processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410391198.0A CN104135441B (en) | 2014-08-11 | 2014-08-11 | A kind of message processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104135441A CN104135441A (en) | 2014-11-05 |
CN104135441B true CN104135441B (en) | 2017-10-27 |
Family
ID=51807965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410391198.0A Active CN104135441B (en) | 2014-08-11 | 2014-08-11 | A kind of message processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104135441B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104348730B (en) * | 2014-11-28 | 2017-10-27 | 新华三技术有限公司 | Message forwarding method and system in a kind of RPR networks |
CN107819622B (en) * | 2017-11-06 | 2019-08-16 | 中国联合网络通信集团有限公司 | MAC Address management method and device |
CN108718267B (en) * | 2018-03-13 | 2021-04-20 | 新华三技术有限公司 | Method and device for transmitting data message in RPR ring |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0556012B1 (en) * | 1992-02-10 | 2001-12-19 | Matsushita Electric Industrial Co., Ltd. | Migration communication control device |
CN101188541A (en) * | 2006-11-16 | 2008-05-28 | 华为技术有限公司 | Redundant protection method and system for RPR bridge |
CN102891902A (en) * | 2012-09-28 | 2013-01-23 | 北京星网锐捷网络技术有限公司 | Media access control address updating method and network equipment |
-
2014
- 2014-08-11 CN CN201410391198.0A patent/CN104135441B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0556012B1 (en) * | 1992-02-10 | 2001-12-19 | Matsushita Electric Industrial Co., Ltd. | Migration communication control device |
CN101188541A (en) * | 2006-11-16 | 2008-05-28 | 华为技术有限公司 | Redundant protection method and system for RPR bridge |
CN102891902A (en) * | 2012-09-28 | 2013-01-23 | 北京星网锐捷网络技术有限公司 | Media access control address updating method and network equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104135441A (en) | 2014-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243630B (en) | MAC address learning method and device in VXLAN networks | |
CN104320342B (en) | Message forwarding method and device in a kind of transparent interconnection of lots of links internet | |
CN106131919B (en) | A kind of synchronous method of non-stop layer self-organized network topology | |
CN106603413B (en) | Method and device for transmitting flow through designated path | |
CN101815107B (en) | Method, system and equipment for managing address in Ethernet ring | |
CN107547383A (en) | Path detection method and device | |
US8589588B2 (en) | Method of identifying domain-to-domain link based on automatically switched optical network | |
CN105024985A (en) | Message processing method and apparatus | |
CN104243318A (en) | MAC (media access control) address learning method and MAC address learning device in VXLAN (virtual extensible local area network) | |
CN104704779A (en) | Method and apparatus for accelerating forwarding in software-defined networks | |
JP6633775B2 (en) | Packet transmission | |
CN101252503B (en) | Method and apparatus for switching traffic of looped network | |
CN105591798B (en) | The method, apparatus of OAM Information is transmitted in DCN | |
CN102299835A (en) | Ring network fault switching method and apparatus | |
CN106487537A (en) | Business chain implementation method and policy control platform | |
CN104135441B (en) | A kind of message processing method and device | |
CN103023773A (en) | Method, device and system for forwarding message in multi-topology network | |
CN104660502B (en) | To the method and device of outside neighborhood of border gate protocol notice route | |
CN103746881A (en) | Neighbor state detection method and neighbor state detection device in EVI (Ethernet Virtualization Interconnection) network | |
CN103457756B (en) | A kind of loop path detection, Apparatus and system | |
CN101631060B (en) | Method and device for managing edge port | |
CN105634952A (en) | Fast notification method and apparatus for LSP message | |
CN107277187A (en) | The system and method for ARP Hot Spare Fast synchronizations | |
CN102045233A (en) | Method and device for controlling message forwarding in network communication | |
CN100591044C (en) | Method and device for establishing forward filtering table |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |