[go: up one dir, main page]

CN109194386A - A kind of data message forwarding method and device - Google Patents

A kind of data message forwarding method and device Download PDF

Info

Publication number
CN109194386A
CN109194386A CN201811100355.2A CN201811100355A CN109194386A CN 109194386 A CN109194386 A CN 109194386A CN 201811100355 A CN201811100355 A CN 201811100355A CN 109194386 A CN109194386 A CN 109194386A
Authority
CN
China
Prior art keywords
rpr
data message
ring
mac address
virtual ring
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.)
Granted
Application number
CN201811100355.2A
Other languages
Chinese (zh)
Other versions
CN109194386B (en
Inventor
项学锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201811100355.2A priority Critical patent/CN109194386B/en
Publication of CN109194386A publication Critical patent/CN109194386A/en
Application granted granted Critical
Publication of CN109194386B publication Critical patent/CN109194386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/03Arrangements for fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/27Arrangements for networking
    • H04B10/275Ring-type networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0073Provisions for forwarding or routing, e.g. lookup tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/009Topology aspects
    • H04Q2011/0092Ring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention provides a kind of data message forwarding method and devices, data message forwarding method is applied to RPR node device, this method comprises: receiving Ethernet data message, according to the port information and RPR virtual ring division rule predetermined for receiving Ethernet data message, determine the corresponding RPR virtual ring of port information, search the corresponding RPR MAC Address of target MAC (Media Access Control) address of Ethernet data message, and RPR forwarding table corresponding with RPR MAC Address on RPR virtual ring, according to RPR MAC Address, Ethernet data message is encapsulated as RPR data message, according to the exit port of RPR MAC Address in RPR forwarding table, forward RPR data message.By this programme, the forward efficiency of data message can be improved.

Description

A kind of data message forwarding method and device
Technical field
The present invention relates to Internet technical fields, more particularly to a kind of data message forwarding method and device.
Background technique
RPR (Resilient Packet Ring, resilient packet ring) technology is that one kind optimizes data message on ring structure Novel MAC (Media Access Control, media access control) agreement of forwarding, can run on SONET (Synchronous Optical Network, Synchronous Optical Network)/SDH (Synchronous Digital Hierarchy, together Step number word series), DWDM (Dense Wavelength Division Multiplexing, level of confidentiality wavelength-division multiplex), Ethernet On equal multiple physical layers, a plurality of types of data messages such as voice, image can be effectively forwarded, are broadband IP MAN operation Quotient provides flexible and efficient networking plan.
RPR ring is known as using the loop network that RPR technology forms, RPR ring structure is as shown in Figure 1, the equipment on RPR ring claims For RPR node device.RPR ring uses reverse twin nuclei, and link of the data message between RPR node device is forwarded, Only a pair of of optical fiber between two RPR node devices, at the same time when the multiple data messages of upper ring or multiple users send simultaneously When upper loop data message, in order to guarantee the accuracy of each data message forwarding, need serially to forward these data messages.
But for the RPR ring of high bandwidth, serially forward the broadband utilization rate of each data message very low and It has forwarded forwarding time required for all data messages very long, has seriously reduced the forward efficiency of data message.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of data message forwarding method and device, to improve data message Forward efficiency.Specific technical solution is as follows:
In a first aspect, being applied to RPR node device, institute the embodiment of the invention provides a kind of data message forwarding method The method of stating includes:
Receive Ethernet data message;
According to the port information and RPR virtual ring division rule predetermined for receiving the Ethernet data message, Determine the corresponding RPR virtual ring of the port information;
The corresponding RPR MAC Address of purpose MAC address of the Ethernet data message is searched, and RPR forwarding table corresponding with the RPR MAC Address on the RPR virtual ring;
According to the RPR MAC Address, the Ethernet data message is encapsulated as RPR data message;
According to the exit port of RPR MAC Address described in the RPR forwarding table, the RPR data message is forwarded.
Second aspect, the embodiment of the invention provides a kind of data message forwarding devices, are applied to RPR node device, institute Stating device includes:
Receiving module, for receiving Ethernet data message;
Determining module, for empty according to the port information and RPR predetermined that receive the Ethernet data message Near-ring division rule determines the corresponding RPR virtual ring of the port information;
Searching module, the corresponding RPR MAC Address of target MAC (Media Access Control) address for searching the Ethernet data message, with And RPR forwarding table corresponding with the RPR MAC Address on the RPR virtual ring;
Package module, for according to the RPR MAC Address, the Ethernet data message to be encapsulated as RPR datagram Text;
Forwarding module forwards the RPR number for the exit port of the RPR MAC Address according to the RPR forwarding table According to message.
A kind of data message forwarding method and device provided in an embodiment of the present invention, RPR node device is by receiving ether Network data message, according to receive the Ethernet data message port information and RPR virtual ring division rule predetermined, It determines RPR virtual ring corresponding with port information, searches the corresponding RPR MAC of target MAC (Media Access Control) address of the Ethernet data message RPR forwarding table corresponding with RPR MAC Address on address and RPR virtual ring, according to RPR MAC Address, by Ethernet data Message is encapsulated as RPR data message, according to the exit port of RPR MAC Address in RPR forwarding table, forwards RPR data message.RPR Virtual ring is according to RPR virtual ring division rule predetermined, and RPR physical rings affiliated to RPR node device are divided to obtain, be connect The port information and RPR virtual ring for receiving telegraph literary have corresponding relationship, can be according to reception datagram after receiving data message The port information of text, will need the data message forwarded by RPR physical rings to share RPR virtual ring corresponding with port information On, the data message that can be realized ring on different port concurrently forwards in RPR physical rings.The embodiment of the present invention is different from existing There is RPR physical rings Netcom to cross the mode of 0 ring and 1 ring forwarding data packets, be that RPR physics looped network has been subjected to the virtualization of 1:N, One RPR physics looped network is virtualized as multiple logical cyclic ring networks, the broadband utilization rate of data message is effectively improved, shortens Forwarding time required for all data messages is forwarded, to improve the forward efficiency of data message.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the structural schematic diagram of the RPR ring of the prior art;
Fig. 2 is the structural schematic diagram of the RPR ring of the embodiment of the present invention;
Fig. 3 is the flow diagram of the data message forwarding method of the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the extendedcontrol field in the RPR message format of the prior art;
Fig. 5 is the configuration that the data message of the prior art handles the service logic mouth between chip and key process unit Figure;
Fig. 6 is that the data message of one embodiment of the invention handles the service logic mouth between chip and key process unit Configuration diagram;
Fig. 7 is the structural schematic diagram of the data message forwarding device of the embodiment of the present invention;
Fig. 8 is the structural schematic diagram of the RPR node device of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Understood to be more convenient for being provided for the embodiments of the invention data message forwarding method and device, lower kept man of a noblewoman First the relevant basic conception of RPR technology is made to introduce.
RPR technology is designed to support the data service of large capacity in Metropolitan Area Network, has the following characteristics that object Manage layer diversity;Support broadcast and multicast;Topological automatic discovering supports the plug and play of RPR node device;Quickly protection machine System can be realized the fault self-recovery in 50ms by topology protection;By supporting bandwidth reservation business and rate limit to provide Flow grade guarantees;Fair node bandwidth distribution.These features provide support for the extensive use of RPR technology.
RPR uses reverse twin nuclei, as shown in Figure 1, data-message transmission direction is the clockwise (solid line in Fig. 1 The ring of composition) it is known as 0 ring, data-message transmission direction is that (ring of the dotted line composition in Fig. 1) counterclockwise is known as 1 ring.Connection One section of transmission channel of adjacent node is known as link, is connected between adjacent node by contrary both links, and two Contrary both links constitute section between adjacent node;Node in multiple continuous sections and these sections constitutes domain; Reception data message, the physical port to send datagram on 1 ring are known as west to port on 0 ring;Data are sent on 0 ring Message, the physical port that data message is received on 1 ring are known as east orientation port;When section and/or the adjacent node of section break down When, section, which is unable to data message transmission, just becomes side;The state of RPR ring is divided into closed loop states and open loop situations, and there is no the RPR on side Ring is closed loop states, is open loop situations there are the RPR ring on side;Website is linked into two physical ports (east of RPR ring on RPR ring To port with western to port) constitute the service logic mouth of RPR physical rings.
RPR function is supported on Ethernet switch, it is necessary to use special rpr interface plate, rpr interface plate includes PP (Packet Processor, data message handle chip) and key process unit.PP is used for and the ETH in other slot positions The mutual forwarding data packets of (Ethernet, Ethernet) interface board;Key process unit be used to be packaged data message and Decapsulation operation, wherein key process unit can be DSP (Digital Signal Processing, Digital Signal Processing Device), ASIC (Application Specific Integrated Circuit, specific integrated circuit), FPGA (Field- Programmable Gate Array, field programmable gate array) etc..Pass through ETH interface phase between PP and key process unit Even.
In order to improve the forward efficiency of data message, in the embodiment of the present invention, it is empty that RPR physical rings are divided into multiple RPR Near-ring.RPR ring connects due to having to be switched fast with looped network bandwidth control ability, the bottom that can be used as all upper-layer services Enter platform.The especially RPR looped network of high bandwidth, such as 100G RPR looped network can logically divide a RPR physical rings At multiple RPR virtual rings, each RPR virtual ring possesses independent looped network bandwidth resources, and the business on different virtual rings is mutual Isolation.
RPR physical rings are divided according to RPR virtual ring division rule predetermined, i.e., it is RPR physical rings are virtual Change, is equivalent to and provides multiple RPR rings, each RPR ring possesses independent resource, it is therefore contemplated that a RPR virtual ring is just It is an independent RPR ring.
It is physically exactly 1 RPR physical rings as shown in Fig. 2, physically there was only 1 pair of optical fiber between RPR node device, But 3 RPR virtual rings have been logically divided into, each virtual ring possesses independent bandwidth resources, possesses independent data and turns Send out plane.
Optionally, the division rule of RPR virtual ring may include:
Each port on RPR node device is grouped, wherein be configured to same service logic with the port in group Mouthful;
RPR physical rings belonging to RPR node device are divided into the corresponding RPR virtual ring of each service logic mouth.
One RPR virtual ring can be defined as a RPR Instance (RPR example), data message handle chip PP and Port between key process unit is reserved multiple in design, and when RPR does not divide virtual ring, all of the port is logically It is exactly a service logic mouth.By the way that each port to be grouped, at least one port is divided into one group, each group of port configuration One service logic mouth.
When multiple ports are divided into one group, these ports are configured to the same service convergence trunk group, due to these ends Mouth belongs to the same business trunk group, and in a business trunk group, under normal circumstances, each port is all UP (opening); Therefore, in terms of service layer, these ports possess identical business configuration, it is believed that are same service logic mouths.By by port It is grouped, and configures same service logic mouth for the port in same group, due in service layer, a service logic Mouth can be understood as the node port of a RPR ring, distinguish in this manner it is possible to which RPR physical rings are divided into each service logic mouth Corresponding RPR virtual ring.
Optionally, the division rule of RPR virtual ring can also include:
RPR node device is divided into multiple virtual units, wherein the port on same virtual unit is configured to same industry Business logic interface;
RPR physical rings belonging to RPR node device are divided into the locating RPR virtual ring of each virtual unit difference.
Other than the port based on RPR node device divides RPR physical rings, due to can also be to RPR node Equipment carries out virtualization division, such as utilizes MDC (Multitenant Device Context, multi-tenant facility environment) strategy One physical equipment can be divided into multiple virtual units etc. default virtual unit partition strategy, each virtual unit has Complete functions of the equipments have independent software environment and data, hardware resource, in this way, by virtual unit partition strategy, it will RPR node device is divided into multiple virtual units, and each virtual unit can be used as the node of a RPR virtual ring, same void Propose standby upper port and be configurable to same service logic mouth, so as to realize a RPR physical rings are divided into it is multiple RPR virtual ring.
Optionally, during division obtains RPR virtual ring, following steps can also be performed:
Obtain total band width in physical of RPR physical rings;
According to preset ratio, total band width in physical is distributed to each RPR virtual ring.
Total band width in physical of RPR physical rings be it is fixed, can be with when RPR physical rings are divided into multiple RPR virtual rings Different RPR virtual ring configured bandwidths is distributed, realizes the flexible deployment of business.All RPR virtual rings share a RPR object The band width in physical of ring to be managed, bandwidth can be divided equally under default condition, each RPR virtual ring is assigned to the bandwidth of same size, due to Each data message it is of different sizes, according to the demand of forwarding data packets, the bandwidth that each RPR virtual ring occupies can be configured Ratio, RPR virtual ring biggish for forwarding data packets can distribute the bandwidth of greater proportion.It is complete between each RPR virtual ring Full isolation, efficient, the peace that are exactly multiple completely self-contained RPR rings, may be implemented to existing RPR node device that user is presented Complete utilization.
The embodiment of the invention provides a kind of data message forwarding method, the executing subject of this method can be in RPR ring Any RPR node device, which can be the network access equipments such as above-mentioned Ethernet switch, router, The exchange chip with control function is included at least in RPR node device.Realize data message provided by the embodiment of the present invention The mode of retransmission method can be at least one of the software, hardware circuit and logic circuit being set in executing subject.
As shown in figure 3, data message forwarding method provided by the embodiment of the present invention may include steps of:
S301 receives Ethernet data message.
User terminal by Ethernet to other users end forward Ethernet data message when, if repeating process need through It crosses RPR ring to turn, then can send a service request to rpr interface plate and request for the PP into rpr interface plate as Ethernet Data message distributes RPR physical rings, and the RPR node device of one reception Ethernet data message of distribution, the RPR node are set Standby distribution can be determined based on the business information carried in service request.Ethernet data message can be to be multiple Multiple data messages that one user terminal is sent simultaneously, the multiple data messages for being also possible to a plurality of clients while sending.
S302, according to receive Ethernet data message port information and RPR virtual ring division rule predetermined, Determine the corresponding RPR virtual ring of port information.
In RPR virtual ring division rule predetermined, the corresponding relationship of port information Yu RPR virtual ring is defined, i.e., Which port is divided into same RPR virtual ring.In this way, can determine this according to the port information for receiving Ethernet data message The corresponding RPR virtual ring of port information.
S303, search Ethernet data message the corresponding RPR MAC Address of target MAC (Media Access Control) address and RPR virtual ring on RPR forwarding table corresponding with RPR MAC Address.
The target MAC (Media Access Control) address of the data message is carried in data message, target MAC (Media Access Control) address is ether netting index in Ethernet According to the address information for the purpose user terminal that message needs to be forwarded to, the target MAC (Media Access Control) address is corresponding with RPR MAC Address, RPR MAC Address is the mac address information for the RPR node device that data message needs lower ring, that is, corresponds to data message from which RPR Ring under node device can reach purpose user terminal.
It can be true according to optimal ring selection strategy (such as the shortest RPR ring in selection path, selection the smallest RPR ring of flow etc.) Surely by 0 ring or 1 ring forwarding data packets to RPR MAC Address, ring selection result determines the next of data message forwarding RPR node device.Each RPR virtual ring is equivalent to independent RPR ring, and therefore, each RPR virtual ring has independent RPR forwarding table, record has forwarding relevant information, such as target MAC (Media Access Control) address, RPR MAC Address etc. in RPR forwarding table.
Ethernet data message is encapsulated as RPR data message according to RPR MAC Address by S304.
In RPR virtual ring, data message is forwarded with RPR format, in addition to including Ethernet data report in RPR data message It should also include RPR MAC Address other than text, that is, the data message final RPR node device that needs to be forwarded to MAC Address, to guarantee that data message can be accurately forwarded to purpose user terminal.Since each RPR virtual ring is equivalent to independence RPR ring, therefore, each RPR virtual ring carry out data message encapsulation/decapsulation be independent from each other.
Optionally, S304 is specifically as follows:
Ethernet data message is sealed according to RPR virtual ring corresponding priority mapping rule according to RPR MAC Address Dress is RPR data message corresponding with the priority of Ethernet data message.
Since each RPR virtual ring is equivalent to independent RPR ring, each RPR virtual ring has independent excellent First grade mapping ruler.Each data message has different priority, and the higher message of priority can be forwarded preferentially, and ether The priority of network data message is corresponding with the priority of RPR data message, i.e. the priority of Ethernet data message is higher, right Its priority for encapsulating obtained RPR data message is also higher, and the priority mapping rule of each RPR virtual ring is mutually indepedent.
Optionally, S304 is specifically as follows:
According to RPR MAC Address, Ethernet data message is encapsulated, and empty in the specified reserved place of specific field record RPR The ring of near-ring identifies, and obtains RPR data message.
Most of RPR node device after receiving RPR data message, be merely able to identify the RPR data message from which A RPR node device forwards, the RPR data message is needed from the information such as ring under which RPR node, and can not identify this RPR data message is the data message of which RPR virtual ring, needs to identify forwarding RPR data message again by the above method RPR virtual ring, in this way, forwarding rate can be seriously affected, therefore, in order to guarantee that other RPR node devices can distinguish RPR number It is the data message of which RPR virtual ring according to message, improves forwarding rate, needs to carry RPR virtual ring in RPR data message Ring mark.
Comprising an extended control (extension control) field in RPR data message, for providing RPR datagram The data description of text, as shown in figure 4, extended control field includes 8 altogether, wherein ef accounts for 1, is used to indicate this Whether RPR data message is amplifying message;Fi accounts for 2, is used to indicate whether the RPR data message is broadcasting packet;Ps accounts for 1 Whether position is used to indicate the RPR data message for the second time by source RPR node device;So accounts for 1, is used to indicate the RPR data Whether message is sequence message;Res is reserved place, accounts for 3, since res is reserved place, can identify the RPR by extending res Which RPR virtual ring data message belongs to, and after RPR node device receives RPR data message, is determined according to res by this RPR number Corresponding RPR virtual ring processing logic, which is sent to, according to message is forwarded processing.
Certainly, the ring mark of RPR virtual ring is not limited only to carry in extended control field, can also utilize The reserved place of other fields is carried.
S305 forwards RPR data message according to the exit port of RPR MAC Address in RPR forwarding table.
After determining RPR virtual ring, logic is handled into corresponding RPR virtual ring, due to being stored in RPR forwarding table RPR MAC Address, what the exit port of the RPR MAC Address determined forwarding RPR data message is the east orientation end of RPR node device Mouth is western to port.Also, the type of data message also determine RPR node device to the mode of operation of RPR data message, For example, in each intermediate node of data message approach, then passing through east orientation port or west if data message is unicast message Ring operation was executed to RPR data message to port;If data message is broadcasting packet, pass through east orientation port or west to end While mouth executed ring operation to RPR data message, lower ring operation is executed to RPR data message.
When ring under carrying out RPR data message operates, can be determined based on the RPR virtual ring of forwarding RPR data message The service logic mouth of Ethernet data message after sending RPR data message decompression on RPR node device, from business logic interface It in trunk group, optionally selects a port and sends datagram, ring determines RPR virtual ring in the process and Ethernet data message Process it is exactly the opposite, I will not elaborate.
Using the present embodiment, RPR virtual ring is according to RPR virtual ring division rule predetermined, to RPR node device Affiliated RPR physical rings divide to obtain, and the port information and RPR virtual ring for receiving message have corresponding relationship, are receiving data After message, the data message forwarded by RPR physical rings can will be needed to share according to the port information for receiving data message On RPR virtual ring corresponding with port information, the data message of ring on different port can be realized concurrently in RPR physical rings Forwarding.The embodiment of the present invention is different from the mode that 0 ring and 1 ring forwarding data packets are crossed by existing RPR physical rings Netcom, is by RPR Physics looped network has carried out the virtualization of 1:N, and a RPR physics looped network is virtualized as multiple logical cyclic ring networks, is effectively improved The broadband utilization rate of data message shortens forwarding time required for having forwarded all data messages, to improve data The forward efficiency of message.
Below with reference to specific example, it is provided for the embodiments of the invention data message forwarding method and is introduced.
As shown in figure 5, reserving 4 ends in design between ethernet processing chip PP and RPR processing logic chip FPGA Mouthful, it is exactly 1 service logic mouth on this 4 port logics when not having to divide RPR virtual ring.By RPR physics shown in fig. 5 Ring is divided into 2 RPR virtual rings, as shown in fig. 6,1,2 ports correspond to RPR virtual ring 1,3,4 ports correspond to RPR virtual ring 2, i.e., 1,2 ports configure same service logic mouth, and 3,4 ports configure same service logic mouth.
Assuming that in RPR network shown in Fig. 2, RPR node device A, RPR node device B, RPR node device C and RPR section The RPR MAC Address of point device D is followed successively by RPR MAC201, RPR MAC202, RPR MAC203 and RPR MAC204.
RPR node device A receives Ethernet data message, and receives the port-for-port 1 of the Ethernet data message. Then division rule according to Fig.4, can determine the corresponding RPR virtual ring 1 in port 1, that is to say, that the Ethernet data message It needs to be forwarded by RPR virtual ring 1.
Assuming that the target MAC (Media Access Control) address of the Ethernet data message corresponds to RPR MAC203, RPR node device A can be received Collect the network topological information of RPR virtual ring, calculates the unicast path or broadcast route for reaching other RPR node devices.
RPR node device A determines that reaching the shortest path of RPR node device C is RPR node according to the topology information of collection Equipment A-RPR node device D-RPR node device C, then record the Ethernet data in the forwarding table on RPR virtual ring 1 Target MAC (Media Access Control) address, RPR MAC Address of message etc..
According to RPR MAC Address, Ethernet data message is encapsulated as RPR data message, and in RPR data message The ring mark of the res reserved place record RPR virtual ring 1 of extendedcontrol field, in this way, RPR data message is being forwarded to After RPR node device D, RPR node device D can be identified according to ring and RPR MAC Address, determines that the RPR data message is answered This continues which RPR node device be forwarded to along which RPR virtual ring.
Due to having recorded RPR MAC Address in forwarding table, RPR node device A can be determined under RPR data message forwarding One RPR node device is RPR node device D, and therefore, RPR node device A can turn from the west of port 1 or port 2 to port Send out RPR data message.If Ethernet data message be broadcasting packet, RPR node device D after receiving RPR data message, Other than forwarding RPR data message from corresponding exit port, also RPR data message can be decompressed to obtain Ethernet data report Text, and lower ring operation is executed to the Ethernet data message.
Corresponding to above method embodiment, the embodiment of the invention provides a kind of data message forwarding devices, such as Fig. 7 institute Show, be applied to RPR node device, described device includes:
Receiving module 710, for receiving Ethernet data message;
Determining module 720, for according to the port information and RPR predetermined for receiving the Ethernet data message Virtual ring division rule determines the corresponding RPR virtual ring of the port information;
Searching module 730, the corresponding RPR MAC Address of target MAC (Media Access Control) address for searching the Ethernet data message, And RPR forwarding table corresponding with the RPR MAC Address on the RPR virtual ring;
Package module 740, for according to the RPR MAC Address, the Ethernet data message to be encapsulated as RPR data Message;
Forwarding module 750, for the exit port of the RPR MAC Address according to the RPR forwarding table, described in forwarding RPR data message.
Optionally, described device can also include:
Grouping module, for each port on the RPR node device to be grouped, wherein match with the port in group It is set to same service logic mouth;
Division module is right respectively for RPR physical rings belonging to the RPR node device to be divided into each service logic mouth The RPR virtual ring answered.
Optionally, described device can also include:
Division module, for the RPR node device to be divided into multiple virtual units, wherein on same virtual unit Port be configured to same service logic mouth;RPR physical rings belonging to the RPR node device are divided into each virtual unit point Not locating RPR virtual ring.
Optionally, described device can also include:
Module is obtained, for obtaining total band width in physical of the RPR physical rings;
Distribution module, for according to preset ratio, total band width in physical to be distributed to each RPR virtual ring.
Optionally, the package module 740, specifically can be used for:
According to the RPR MAC Address, according to the corresponding priority mapping rule of the RPR virtual ring, by the ether Network data message is encapsulated as RPR data message corresponding with the priority of the Ethernet data message;
The forwarding module 750, specifically can be used for:
According to the exit port of RPR MAC Address described in the RPR forwarding table, according to the corresponding team of the RPR virtual ring Column scheduling rule forwards the RPR data message.
Optionally, the package module 740, specifically can be used for:
According to the RPR MAC Address, the Ethernet data message is encapsulated, and is remembered in the specified reserved place of specific field The ring mark for recording the RPR virtual ring, obtains RPR data message.
Using the present embodiment, RPR virtual ring is according to RPR virtual ring division rule predetermined, to RPR node device Affiliated RPR physical rings divide to obtain, and the port information and RPR virtual ring for receiving message have corresponding relationship, are receiving data After message, the data message forwarded by RPR physical rings can will be needed to share according to the port information for receiving data message On RPR virtual ring corresponding with port information, the data message of ring on different port can be realized concurrently in RPR physical rings Forwarding.The embodiment of the present invention is different from the mode that 0 ring and 1 ring forwarding data packets are crossed by existing RPR physical rings Netcom, is by RPR Physics looped network has carried out the virtualization of 1:N, and a RPR physics looped network is virtualized as multiple logical cyclic ring networks, is effectively improved The broadband utilization rate of data message shortens forwarding time required for having forwarded all data messages, to improve data The forward efficiency of message.
In order to solve problems in the prior art, the embodiment of the invention also provides a kind of RPR node devices, as shown in figure 8, It may include: processor 801 and machine readable storage medium 802, the machine readable storage medium 802 is stored with can be by institute The machine-executable instruction of the execution of processor 801 is stated, the processor 801 is promoted to realize above-mentioned by the machine-executable instruction Data message forwarding method.
Above-mentioned machine readable storage medium may include RAM (Random Access Memory, random access memory), It also may include NVM (Non-volatile Memory, nonvolatile memory), for example, at least a magnetic disk storage.It is optional , machine readable storage medium can also be that at least one is located remotely from the storage device of above-mentioned processor.
Above-mentioned processor can be general processor, including CPU (Central Processing Unit, central processing Device), NP (Network Processor, network processing unit) etc.;Can also be DSP (Digital Signal Processing, Digital signal processor), ASIC (Application Specific Integrated Circuit, specific integrated circuit), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device are divided Vertical door or transistor logic, discrete hardware components.
In the present embodiment, the processor of RPR node device can by the machine stored in read machine readable storage medium storing program for executing It executes instruction, and by running the machine-executable instruction, can be realized: RPR virtual ring is virtual according to RPR predetermined Ring division rule, RPR physical rings affiliated to RPR node device divide to obtain, and the port information and RPR virtual ring for receiving message have There is corresponding relationship, after receiving data message, can will be needed according to the port information for receiving data message through RPR object The data message of reason ring forwarding is shared on RPR virtual ring corresponding with port information, can be realized the number of ring on different port It is concurrently forwarded in RPR physical rings according to message.The embodiment of the present invention is different from existing RPR physical rings Netcom and crosses 0 ring and 1 ring turn The mode for sending out data message, is that RPR physics looped network has been carried out the virtualization of 1:N, is more by a RPR physics looped network virtualization A logical cyclic ring network effectively improves the broadband utilization rate of data message, shortens required for having forwarded all data messages Forwarding time, to improve the forward efficiency of data message.
Corresponding to data message forwarding method provided by above-described embodiment, the embodiment of the invention provides a kind of machines can Storage medium is read, machine-executable instruction is stored with, when being called and being executed by processor, realizes above-mentioned data message forwarding side Method.
In the present embodiment, machine readable storage medium is stored with executes data provided by the embodiment of the present invention at runtime The machine-executable instruction of message forwarding method, therefore can be realized: RPR virtual ring is according to RPR virtual ring predetermined Division rule, RPR physical rings affiliated to RPR node device divide to obtain, and the port information and RPR virtual ring for receiving message have Corresponding relationship can will be needed according to the port information for receiving data message through RPR physics after receiving data message The data message of ring forwarding is shared on RPR virtual ring corresponding with port information, can be realized the data of ring on different port Message concurrently forwards in RPR physical rings.The embodiment of the present invention is different from existing RPR physical rings Netcom and crosses 0 ring and the forwarding of 1 ring The mode of data message is that RPR physics looped network has been carried out the virtualization of 1:N, and it is multiple that a RPR physics looped network, which is virtualized, Logical cyclic ring network effectively improves the broadband utilization rate of data message, shortens to have forwarded and turn required for all data messages The time is sent out, to improve the forward efficiency of data message.
For RPR node device and machine readable storage medium embodiment, method content as involved in it It is substantially similar to embodiment of the method above-mentioned, so being described relatively simple, related place is said referring to the part of embodiment of the method It is bright.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For RPR node device and machine readable storage medium embodiment, since it is substantially similar to the method embodiment, so description It is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (12)

1. a kind of data message forwarding method, which is characterized in that be applied to Resilient Packet Ring RPR node device, the method packet It includes:
Receive Ethernet data message;
According to the port information and RPR virtual ring division rule predetermined for receiving the Ethernet data message, determine The corresponding RPR virtual ring of the port information;
Search the corresponding RPR MAC Address of purpose MAC address of the Ethernet data message and described RPR forwarding table corresponding with the RPR MAC Address on RPR virtual ring;
According to the RPR MAC Address, the Ethernet data message is encapsulated as RPR data message;
According to the exit port of RPR MAC Address described in the RPR forwarding table, the RPR data message is forwarded.
2. the method according to claim 1, wherein the definition mode of the RPR virtual ring division rule, packet It includes:
Each port on the RPR node device is grouped, wherein be configured to same service logic with the port in group Mouthful;
RPR physical rings belonging to the RPR node device are divided into the corresponding RPR virtual ring of each service logic mouth.
3. the method according to claim 1, wherein the definition mode of the RPR virtual ring division rule, packet It includes:
The RPR node device is divided into multiple virtual units, wherein the port on same virtual unit is configured to same industry Business logic interface;
RPR physical rings belonging to the RPR node device are divided into the locating RPR virtual ring of each virtual unit difference.
4. according to the method in claim 2 or 3, which is characterized in that the method also includes:
Obtain total band width in physical of the RPR physical rings;
According to preset ratio, total band width in physical is distributed to each RPR virtual ring.
5. the method according to claim 1, wherein described according to the RPR MAC Address, by the Ethernet Data message is encapsulated as RPR data message, comprising:
According to the RPR MAC Address, according to the corresponding priority mapping rule of the RPR virtual ring, by the ether netting index RPR data message corresponding with the priority of the Ethernet data message is encapsulated as according to message;
The exit port of the RPR MAC Address according to the RPR forwarding table, forwards the RPR data message, comprising:
According to the exit port of RPR MAC Address described in the RPR forwarding table, according to the corresponding queue tune of the RPR virtual ring Metric then, forwards the RPR data message.
6. the method according to claim 1, wherein described according to the RPR MAC Address, by the Ethernet Data message is encapsulated as RPR data message, comprising:
According to the RPR MAC Address, the Ethernet data message is encapsulated, and records institute in the specified reserved place of specific field The ring mark for stating RPR virtual ring, obtains RPR data message.
7. a kind of data message forwarding device, which is characterized in that be applied to RPR node device, described device includes:
Receiving module, for receiving Ethernet data message;
Determining module, for according to the port information and RPR virtual ring predetermined for receiving the Ethernet data message Division rule determines the corresponding RPR virtual ring of the port information;
Searching module, the corresponding RPR MAC Address of target MAC (Media Access Control) address for searching the Ethernet data message, Yi Jisuo State RPR forwarding table corresponding with the RPR MAC Address on RPR virtual ring;
Package module, for according to the RPR MAC Address, the Ethernet data message to be encapsulated as RPR data message;
Forwarding module forwards the RPR datagram for the exit port of the RPR MAC Address according to the RPR forwarding table Text.
8. device according to claim 7, which is characterized in that described device further include:
Grouping module, for each port on the RPR node device to be grouped, wherein be configured to the port in group Same service logic mouth;
Division module, it is corresponding for RPR physical rings belonging to the RPR node device to be divided into each service logic mouth RPR virtual ring.
9. device according to claim 7, which is characterized in that described device further include:
Division module, for the RPR node device to be divided into multiple virtual units, wherein the end on same virtual unit Mouth is configured to same service logic mouth;RPR physical rings belonging to the RPR node device are divided into each virtual unit difference institute The RPR virtual ring at place.
10. device according to claim 8 or claim 9, which is characterized in that described device further include:
Module is obtained, for obtaining total band width in physical of the RPR physical rings;
Distribution module, for according to preset ratio, total band width in physical to be distributed to each RPR virtual ring.
11. device according to claim 7, which is characterized in that the package module is specifically used for:
According to the RPR MAC Address, according to the corresponding priority mapping rule of the RPR virtual ring, by the ether netting index RPR data message corresponding with the priority of the Ethernet data message is encapsulated as according to message;
The forwarding module, is specifically used for:
According to the exit port of RPR MAC Address described in the RPR forwarding table, according to the corresponding queue tune of the RPR virtual ring Metric then, forwards the RPR data message.
12. device according to claim 7, which is characterized in that the package module is specifically used for:
According to the RPR MAC Address, the Ethernet data message is encapsulated, and records institute in the specified reserved place of specific field The ring mark for stating RPR virtual ring, obtains RPR data message.
CN201811100355.2A 2018-09-20 2018-09-20 Data message forwarding method and device Active CN109194386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811100355.2A CN109194386B (en) 2018-09-20 2018-09-20 Data message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811100355.2A CN109194386B (en) 2018-09-20 2018-09-20 Data message forwarding method and device

Publications (2)

Publication Number Publication Date
CN109194386A true CN109194386A (en) 2019-01-11
CN109194386B CN109194386B (en) 2020-06-19

Family

ID=64908864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811100355.2A Active CN109194386B (en) 2018-09-20 2018-09-20 Data message forwarding method and device

Country Status (1)

Country Link
CN (1) CN109194386B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753010A (en) * 2019-10-22 2020-02-04 新华三信息安全技术有限公司 Message forwarding method and device
CN111355805A (en) * 2020-03-06 2020-06-30 苏州浪潮智能科技有限公司 A network communication method, device, device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744556A (en) * 2004-09-04 2006-03-08 华为技术有限公司 Ethernet data transmission method via RPR transmission
CN1780258A (en) * 2004-11-25 2006-05-31 华为技术有限公司 Method for realizing Ethernet virtual special network in elastic grouping ring net
CN101051983A (en) * 2007-05-11 2007-10-10 杭州华三通信技术有限公司 Construction method for reliable RPR circular net and relative RPR station device
CN101188539A (en) * 2006-11-21 2008-05-28 日本电气株式会社 Resilient packet ring (RPR) network system, RPR node device, and redundancy method for the same
US20080259920A1 (en) * 2007-04-17 2008-10-23 Tellabs Operations, Inc. Method and apparatus for establishing virtual resilient packet ring (RPR) subrings over a common communications path
CN101854283A (en) * 2010-06-01 2010-10-06 杭州华三通信技术有限公司 Communication method and equipment of RPR (Resilient Packet Ring) looped network
CN104009903A (en) * 2014-06-05 2014-08-27 杭州华三通信技术有限公司 Flow forwarding method and device for RPR network
CN106899507A (en) * 2017-01-16 2017-06-27 新华三技术有限公司 A kind of file transmitting method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744556A (en) * 2004-09-04 2006-03-08 华为技术有限公司 Ethernet data transmission method via RPR transmission
CN1780258A (en) * 2004-11-25 2006-05-31 华为技术有限公司 Method for realizing Ethernet virtual special network in elastic grouping ring net
CN101188539A (en) * 2006-11-21 2008-05-28 日本电气株式会社 Resilient packet ring (RPR) network system, RPR node device, and redundancy method for the same
US20080259920A1 (en) * 2007-04-17 2008-10-23 Tellabs Operations, Inc. Method and apparatus for establishing virtual resilient packet ring (RPR) subrings over a common communications path
CN101051983A (en) * 2007-05-11 2007-10-10 杭州华三通信技术有限公司 Construction method for reliable RPR circular net and relative RPR station device
CN101854283A (en) * 2010-06-01 2010-10-06 杭州华三通信技术有限公司 Communication method and equipment of RPR (Resilient Packet Ring) looped network
CN104009903A (en) * 2014-06-05 2014-08-27 杭州华三通信技术有限公司 Flow forwarding method and device for RPR network
CN106899507A (en) * 2017-01-16 2017-06-27 新华三技术有限公司 A kind of file transmitting method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753010A (en) * 2019-10-22 2020-02-04 新华三信息安全技术有限公司 Message forwarding method and device
CN111355805A (en) * 2020-03-06 2020-06-30 苏州浪潮智能科技有限公司 A network communication method, device, device and storage medium

Also Published As

Publication number Publication date
CN109194386B (en) 2020-06-19

Similar Documents

Publication Publication Date Title
US8472325B2 (en) Network availability enhancement technique for packet transport networks
US20230261995A1 (en) Information notification method, communication node and computer readable medium
US6952397B2 (en) Communication in a bidirectional ring network with single-direction receiving
US11546256B2 (en) Multi-region virtual overlay wide area network
US8917607B2 (en) Optimized layer-2 network switching systems and methods
US8462636B2 (en) Systems and methods for communication of management traffic over link aggregation group interface for a network element with distributed architecture
EP1713199A1 (en) Architecture for provisioning broadcast services over managed multicast virtual private LAN trees
US20070237150A1 (en) Self-Routed Layer 4 Packet Network System and Method
JP5936603B2 (en) Control layer for multi-stage optical burst switching system and method
KR20120036903A (en) Inter-node link aggregation system and method
US9742518B2 (en) Flexible interconnection of scalable systems integrated using optical networks for datacenters
CN100568822C (en) A kind of graphical display method for service topology based on Resilient Packet Ring
CN105743780B (en) Message transmitting method and device
WO2022063010A1 (en) Service protection method and network node
CN104009903A (en) Flow forwarding method and device for RPR network
US12177118B2 (en) Data frame sending method and network device
CN109194386A (en) A kind of data message forwarding method and device
CN114629843A (en) Message processing method and device
US20160344607A1 (en) Transport Software Defined Networking (SDN) - Zero Configuration Adjacency via Packet Snooping
CN101453412A (en) Method and apparatus for automatic topology discovery and resource management in PBB network
US20230300062A1 (en) Route optimization method, physical network device and computer-readable storage medium
US9407532B2 (en) Method for generating tunnel forwarding entry and network device
US11251245B1 (en) Responding to a failure of a main die of a switch data-plane device
Huynh et al. RRR: Rapid ring recovery submillisecond decentralized recovery for ethernet ring
CN112637066A (en) Network slicing and path selection optimization method and system for power internet of things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant