CN110290078A - Message forwarding method, device, electronic equipment and machine readable storage medium - Google Patents
Message forwarding method, device, electronic equipment and machine readable storage medium Download PDFInfo
- Publication number
- CN110290078A CN110290078A CN201910509383.8A CN201910509383A CN110290078A CN 110290078 A CN110290078 A CN 110290078A CN 201910509383 A CN201910509383 A CN 201910509383A CN 110290078 A CN110290078 A CN 110290078A
- Authority
- CN
- China
- Prior art keywords
- message
- vxlan
- board
- forwarding
- encapsulation
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet switching elements characterised by the switching fabric construction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet switching elements characterised by the switching fabric construction
- H04L49/101—Packet switching elements characterised by the switching fabric construction using crossbar or matrix
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
- H04L49/3009—Header conversion, routing tables or routing tags
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/35—Switches specially adapted for specific applications
- H04L49/354—Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/40—Constructional details, e.g. power supply, mechanical construction or backplane
- H04L49/405—Physical details, e.g. power supply, mechanical construction or backplane of ATM switches
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a kind of message forwarding method, device, electronic equipment and machine readable storage medium.In this application, the object message from the first kind board corresponding ports is received;It checks whether the object message needs to be implemented VXLAN encapsulation, if the object message needs to be implemented VXLAN encapsulation, the object message is forwarded to the Second Type board;To execute VXLAN encapsulation to the object message by the Second Type board;Forwarding is executed to the VXLAN message after the corresponding encapsulation of the object message.Based on the board for supporting VXLAN agreement is increased, realizes and do not support the board of VXLAN agreement that can also carry out message forwarding based on VXLAN agreement on the network equipment, sufficiently reuse and save the cost to reach.
Description
Technical field
This application involves field of communication technology more particularly to message forwarding method, device, electronic equipment and machine readable deposit
Storage media.
Background technique
VXLAN (Virtual Extensible LAN, virtual expansible local area network), is a kind of network virtualization technology,
IP based network and the two-layer VPN technology for using " MAC in UDP " packing forms.
VXLAN technology creates a large amount of virtual expansible local area network, no by establishing the tunnel VXLAN on existing network
Same virtual expansible local area network uses VNI (VXLAN Network Identifier, virtual expansible local net network mark
Symbol) it is identified.It is well known that the head due to VLAN is limited, only 12bit, leading to the limitation number of VLAN is 2^12=
4096, it is unable to satisfy growing demand.And have 24bit in the head of VXLAN message at present, it can support 2^24 power
VNI number (being identified in VXLAN by VNI, be equivalent to VLAN ID).
VXLAN can be applied in different scenes as a result, such as: VPN scene can be existing service based on VXLAN
The dispersion physical site of provider or enterprise IP network provides two layers of interconnection, and business isolation can be provided for different tenants;
Another example is: cloud computing scene, provides the extended deployment based on two layers for the large-scale cloud computing environment across three layers of deployment.
Summary of the invention
The application provides a kind of message forwarding method, and the method is applied to the network equipment, and the network equipment is integrated with
First kind board, Second Type board;Wherein, the first kind board is set with the Second Type board through the network
Standby integrated switching backplane, which is connected, to be communicated, and the first kind board does not support VXLAN agreement, and the Second Type board is supported
VXLAN agreement, which comprises
Receive the object message from the first kind board corresponding ports;
Check whether the object message needs to be implemented VXLAN encapsulation, if the object message needs to be implemented VXLAN envelope
Dress, then be forwarded to the Second Type board for the object message;With by the Second Type board to the object message
Execute VXLAN encapsulation;
Forwarding is executed to the VXLAN message after the corresponding encapsulation of the object message.
Optionally, described to the target if the corresponding exit port of the VXLAN message is located at the Second Type board
VXLAN message after the corresponding encapsulation of message executes forwarding, comprising:
Using the corresponding exit port for being located at the Second Type board of the VXLAN message as first port, from described the
Single port executes forwarding to the VXLAN message.
Optionally, described to the target if the corresponding exit port of the VXLAN message is located at the first kind board
VXLAN message after the corresponding encapsulation of message executes forwarding, comprising:
Using the corresponding exit port for being located at the first kind board of the VXLAN message as second port;
The VXLAN message is forwarded to the first kind board through the switching backplane, by the first kind
Board executes forwarding to the VXLAN message from the second port.
Optionally, if the object message does not need to execute VXLAN encapsulation, further includes:
The object message is forwarded to the Second Type board;With by the Second Type board to the target report
Text executes VLAN TAG replacement;
The replaced message of VLAN TAG is corresponded to the object message and executes forwarding.
Optionally, further includes:
Receive the corresponding back message of the object message;
VXLAN decapsulation is executed to the back message based on the Second Type board, obtains the back message pair
The VXLAN decapsulation message answered;
VXLAN decapsulation message corresponding to the back message executes forwarding.
The application also provides a kind of apparatus for forwarding message, and described device is applied to the network equipment, and the network equipment is integrated
There are first kind board, Second Type board;Wherein, the first kind board and the Second Type board are through the network
The switching backplane of integration of equipments, which is connected, to be communicated, and the first kind board does not support VXLAN agreement, the Second Type board branch
VXLAN agreement is held, described device includes:
Receiving module receives the object message from the first kind board corresponding ports;
VXLAN module, checks whether the object message needs to be implemented VXLAN encapsulation, if object message needs are held
Row VXLAN encapsulation, then be forwarded to the Second Type board for the object message;With by the Second Type board to described
Object message executes VXLAN encapsulation;
Forwarding module executes forwarding to the VXLAN message after the corresponding encapsulation of the object message.
Optionally, if the corresponding exit port of the VXLAN message is located at the Second Type board, the forwarding module into
One step:
Using the corresponding exit port for being located at the Second Type board of the VXLAN message as first port, from described the
Single port executes forwarding to the VXLAN message.
Optionally, if the corresponding exit port of the VXLAN message is located at the first kind board, the forwarding module into
One step:
Using the corresponding exit port for being located at the first kind board of the VXLAN message as second port;
The VXLAN message is forwarded to the first kind board through the switching backplane, by the first kind
Board executes forwarding to the VXLAN message from the second port.
Optionally, if the object message do not need execute VXLAN encapsulation, the forwarding module further,
The object message is forwarded to the Second Type board;With by the Second Type board to the target report
Text executes VLAN TAG replacement;
The replaced message of VLAN TAG is corresponded to the object message and executes forwarding.
Optionally, further includes:
The receiving module is further, receives the corresponding back message of the object message;
The VXLAN module is further, executes VXLAN deblocking to the back message based on the Second Type board
Dress obtains the corresponding VXLAN decapsulation message of the back message;
The forwarding module is further, and VXLAN decapsulation message corresponding to the back message executes forwarding.
The application also provides a kind of electronic equipment, including communication interface, processor, memory and bus, and the communication connects
Pass through bus between mouth, the processor and the memory to be connected with each other;
Machine readable instructions are stored in the memory, the processor is executed by calling the machine readable instructions
Above-mentioned method.
The application also provides a kind of machine readable storage medium, and the machine readable storage medium is stored with machine readable finger
It enables, the machine readable instructions realize the above method when being called and being executed by processor.
It realizes and is not supported on the network equipment based on the board for supporting VXLAN agreement is increased by above embodiments
The board of VXLAN agreement can also carry out message forwarding based on VXLAN agreement, sufficiently reuse and save the cost to reach.
Detailed description of the invention
Fig. 1 is a kind of composition schematic diagram for network equipment that an exemplary embodiment provides;
Fig. 2 is a kind of flow chart for message forwarding method that an exemplary embodiment provides;
Fig. 3 is the schematic diagram that a kind of network equipment that an exemplary embodiment provides executes message forwarding;
Fig. 4 is the schematic diagram that another network equipment that an exemplary embodiment provides executes message forwarding;
Fig. 5 is a kind of block diagram for apparatus for forwarding message that an exemplary embodiment provides;
Fig. 6 is the hardware structure diagram for a kind of electronic equipment that an exemplary embodiment provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present application, below first to this Shen
Please embodiment be related to message forwarding the relevant technologies, be briefly described.
In some scenes, data center usually requires to establish the network based on VXLAN;However, early in data center
The phase old network equipment of deployment does not support VXLAN.Usually there are two types of solutions for prior art, and scheme one: needing will be old
The network equipment replaces with the completely new network equipment for supporting VXLAN;Scheme two: by message up sending to software layer, by software layer to report
Text executes corresponding VXLAN processing.However, all there is respective disadvantage in the existing solution of both the above;Wherein, scheme one is scarce
Point is to need replacing equipment, and cost is relatively high;And the shortcomings that scheme two is: software layer processing is slow, and forward efficiency is lower.
Referring to Figure 1, Fig. 1 is a kind of composition schematic diagram for network equipment that one embodiment of this specification provides.
The network equipment as shown in Figure 1 includes: switching backplane, S1 board, S2 board;Wherein, S1 board and S2 board pass through
Switching backplane, which is connected, to be communicated, and S1 board does not support VXLAN agreement, and S2 board supports VXLAN agreement.
As shown in Figure 1, the port that S1 board includes has: A1, A2, A3;The port that S2 board includes has: B1, B2, B3.
Based on the network equipment as shown in Figure 1, the application is directed to one kind, based on the board pair for supporting VXLAN agreement
Message received by the board of VXLAN agreement is not supported on the network equipment, executes the skill of corresponding VXLAN processing and message forwarding
Art scheme.
When realizing, the network equipment is integrated with first kind board, Second Type board;Wherein, the first kind template
Block the communication that is connected with the switching backplane that the Second Type board is integrated through the network equipment, the first kind board does not prop up
VXLAN agreement is held, the Second Type board supports VXLAN agreement.
Further, the network equipment receives the object message from the first kind board corresponding ports;Described in inspection
Whether object message needs to be implemented VXLAN encapsulation, if the object message needs to be implemented VXLAN encapsulation, by the target report
Text is forwarded to the Second Type board;To execute VXLAN encapsulation to the object message by the Second Type board;To institute
VXLAN message after stating the corresponding encapsulation of object message executes forwarding.
In above scheme, based on the board for supporting VXLAN agreement is increased, realizes and do not support VXLAN on the network equipment
The board of agreement can also carry out message forwarding based on VXLAN agreement, sufficiently reuse and save the cost to reach.
The application is described below by specific embodiment and in conjunction with specific application scenarios.
Referring to FIG. 2, Fig. 2 is a kind of flow chart for message forwarding method that one embodiment of the application provides, the method
Applied to the network equipment, the network equipment is integrated with first kind board, Second Type board;Wherein, the first kind
The switching backplane that board and the Second Type board are integrated through the network equipment is connected communication, and the first kind board is not
Support VXLAN agreement, the Second Type board supports VXLAN agreement, and the above method executes following steps:
Step 202 receives the object message from the first kind board corresponding ports.
Step 204 checks whether the object message needs to be implemented VXLAN encapsulation, if the object message needs to be implemented
VXLAN encapsulation, then be forwarded to the Second Type board for the object message;With by the Second Type board to the mesh
It marks message and executes VXLAN encapsulation.
Step 206 executes forwarding to the VXLAN message after the corresponding encapsulation of the object message.
In the present specification, the above-mentioned network equipment, including the frame network equipment that is any type of, supporting more boards;
For example, the above-mentioned network equipment can be the frame-type switch for supporting more boards, the frame router for supporting more boards,
Support the frame firewall etc. of more boards.
In the present specification, the above-mentioned network equipment is integrated with first kind board, Second Type board;Wherein, above-mentioned
The switching backplane that one type plates card and above-mentioned Second Type board are integrated through the above-mentioned network equipment is connected communication, the above-mentioned first kind
Board does not support VXLAN agreement, and above-mentioned Second Type board supports VXLAN agreement.
For example, shown in Figure 1, above-mentioned first kind board is, for example, S1 board;Above-mentioned Second Type board is for example
For S2 board;Above-mentioned switching backplane is, for example, switching backplane shown in FIG. 1.
In the present specification, above-mentioned object message refers to the IP packet in the original private network of pending VXLAN encapsulation.
For example, above-mentioned object message can be the service message between the multiple equipment in data center.
In the present specification, above-mentioned VXLAN message refers to that above-mentioned object message is executed through above-mentioned Second Type board
Message after VXLAN encapsulation.
For example, above-mentioned VXLAN message can be above-mentioned object message after above-mentioned Second Type board executes VXLAN encapsulation
Service message.
Shown in Figure 3, Fig. 3 is that a kind of network equipment that one embodiment of this specification provides executes showing for message forwarding
It is intended to.Fig. 3 is identical as network equipment composition shown in FIG. 1, and difference is that Fig. 3 increases message flow direction compared to Fig. 1;Such as Fig. 3 institute
1., 2., 3., 4. that shows represents message flow direction, F1 message represents above-mentioned object message, and F2 message represents above-mentioned VXLAN message.
In the present specification, the above-mentioned network equipment receives the above-mentioned target report from above-mentioned first kind board corresponding ports
Text.
For example, as shown in Figure 3 1., it is (above-mentioned that the above-mentioned network equipment receives the message F1 from S1 board corresponding ports A1
Object message).
In the present specification, after receiving above-mentioned object message, whether the above-mentioned network equipment checks above-mentioned object message
Need to be implemented VXLAN encapsulation.
When realizing, after receiving above-mentioned object message, the above-mentioned network equipment can check the IP of above-mentioned object message
Five-tuple and the forwarding-table item of local, to judge whether above-mentioned object message needs to be implemented VXLAN encapsulation.
For example, above-mentioned object message can be in data center be located at different zones under multiple equipment between, need hold
The service message namely above-mentioned object message being loaded on the corresponding tunnel VXLAN need to be implemented VXLAN encapsulation.
In a kind of embodiment shown, if above-mentioned object message needs to be implemented VXLAN encapsulation, the above-mentioned network equipment
Above-mentioned object message is forwarded to above-mentioned Second Type board;To be executed by above-mentioned Second Type board to above-mentioned object message
VXLAN encapsulation.
For example, it is as shown in Figure 3 2., 3., receiving message F1 (the above-mentioned target report from S1 board corresponding ports A1
Text) after, the above-mentioned network equipment is by F1 by not supporting the S1 board of VXLAN agreement to send via switching backplane as shown in Figure 3
To support VXLAN agreement S2 board;To execute VXLAN encapsulation to message F1 by S2 board.
In the present specification, after executing VXLAN encapsulation to above-mentioned object message, the above-mentioned network equipment is to above-mentioned target report
VXLAN message after the corresponding encapsulation of text executes forwarding.
Then above example continues to illustrate, and after S2 board executes VXLAN encapsulation to message F1, obtains above-mentioned object message
Above-mentioned VXLAN message after corresponding encapsulation, the above-mentioned network equipment forward above-mentioned VXLAN message from the port of the above-mentioned network equipment
It goes out.
In a kind of embodiment shown, if the corresponding exit port of above-mentioned VXLAN message is located at above-mentioned Second Type plate
Card, then the above-mentioned network equipment is using the corresponding exit port for being located at above-mentioned Second Type board of above-mentioned VXLAN message as first port,
Forwarding is executed to above-mentioned VXLAN message from above-mentioned first port.
Then above example continues to illustrate, shown in Figure 3, and F2 message (above-mentioned VXLAN message) is corresponding in above-mentioned net
The exit port of network equipment is, for example, B1, wherein B1 is located on S2 board;The above-mentioned network equipment is using B1 as the outlet of F2 message
Mouth namely B1 are that above-mentioned first port is forwarded from B1 by F2 message as shown in Figure 3 4..
In the present specification, when the above-mentioned network equipment executes forwarding to above-mentioned VXLAN message, above-mentioned VXLAN message is corresponding
Exit port can also be located at above-mentioned Second Type board.
Shown in Figure 4, Fig. 4 is that another network equipment that one embodiment of this specification provides executes message forwarding
Schematic diagram.Fig. 4 is identical as network equipment composition shown in FIG. 1, and difference is that Fig. 4 increases message flow direction compared to Fig. 1;Such as Fig. 4
Shown in 1., 2., 3., 4., 5., 6. represent message flow direction, F1 message represents above-mentioned object message, and F2 message represents above-mentioned
VXLAN message.
It should be noted that Fig. 4 is identical as network equipment composition shown in Fig. 3,1., 2., 3. corresponding message is flowed to
Identical, Fig. 4 is from the difference of Fig. 3: above-mentioned VXLAN message is in Fig. 4 (example different with the corresponding exit port of Fig. 3 and its corresponding board
Such as, it is B1 that above-mentioned VXLAN message, which corresponds to exit port in Fig. 3, and B1 is located at S2 board, and above-mentioned VXLAN message corresponds to outlet in Fig. 4
Mouthful be A2, A2 is located at S1 board, the two difference), the message flow direction 4. 4. corresponding from Fig. 3 in Fig. 4 it is different.
In a kind of embodiment shown, if the corresponding exit port of above-mentioned VXLAN message is located at above-mentioned first kind template
Card, the above-mentioned network equipment is using the corresponding exit port for being located at above-mentioned first kind board of above-mentioned VXLAN message as second port;It will
Above-mentioned VXLAN message is forwarded to above-mentioned first kind board through above-mentioned switching backplane, with by above-mentioned first kind board from above-mentioned
Second port executes forwarding to above-mentioned VXLAN message.
For example, shown in Figure 4, the corresponding exit port example in the above-mentioned network equipment of F2 message (above-mentioned VXLAN message)
For example A2, wherein A2 is located on S1 board (above-mentioned first kind board);The above-mentioned network equipment is using A2 as the outlet of F2 message
Mouth namely A2 are above-mentioned second port;It is as shown in Figure 4 4., 5., from the B2 being located on S2 board (above-mentioned Second Type board)
By F2 message, S1 board is forwarded to through switching backplane according to the forwarding table on the above-mentioned network equipment;It is as shown in Figure 4 6., with by
S1 board forwards F2 message from A2 (above-mentioned second port).
In the another embodiment shown, when checking the need for executing VXLAN encapsulation to above-mentioned object message,
If above-mentioned object message does not need to execute VXLAN encapsulation, above-mentioned object message is forwarded to above-mentioned second class by the above-mentioned network equipment
Template card;To execute VLAN TAG replacement to above-mentioned object message by above-mentioned Second Type board;It is corresponding to above-mentioned object message
The replaced message of VLAN TAG executes forwarding.
For example, above-mentioned object message can be the business between the multiple equipment of same branch hub in data center
Message, since multiple equipment is located at same branch hub, VLAN (Virtual Local can be directly based upon by being in communication with each other
Area Network, virtual LAN) agreement communicated and forwarded.When realizing, the above-mentioned network equipment can be by above-mentioned mesh
Mark message is forwarded to above-mentioned Second Type board;To execute VLAN TAG to above-mentioned object message by above-mentioned Second Type board
(VLAN tag) replacement;The replaced message of VLAN TAG is corresponded to above-mentioned object message and executes forwarding, detailed process refers to
Message forwarding process under existing VLAN agreement, which is not described herein again.
It should be noted that above procedure and example correspondence describe above-mentioned object message and forward from the above-mentioned network equipment
Process out, during network communication, the process of message forwarding is all two-way.
In a kind of embodiment shown, the above-mentioned network equipment is reported by the corresponding above-mentioned VXLAN of above-mentioned object message
After text is forwarded to corresponding target device, the back message corresponding with above-mentioned object message from the target device is received.
In the present specification, further, after receiving above-mentioned back message, the above-mentioned network equipment is based on above-mentioned second
Type board executes VXLAN decapsulation to above-mentioned back message, obtains the corresponding VXLAN decapsulation message of above-mentioned back message.
For example, asking as shown in figure 3, above-mentioned back message flows to and above-mentioned object message in the message of the above-mentioned network equipment
For flow direction on the contrary, the message flow of above-mentioned back message is according to direction 4., 3., 2., 1., S2 board executes above-mentioned back message
VXLAN decapsulation processing.
In another example asking as shown in figure 4, above-mentioned back message is in the message flow direction of the above-mentioned network equipment and above-mentioned object message
Flow direction on the contrary, the message flow of above-mentioned back message is according to direction 6., 5., 4., 3., 2., 1., S2 board is to above-mentioned response
Message executes VXLAN decapsulation processing.
It should be noted that above-mentioned Second Type board above-mentioned back message corresponding to above-mentioned object message executes correspondence
The process of VXLAN decapsulation is the process that above-mentioned Second Type board executes corresponding VXLAN decapsulation to above-mentioned object message
Inverse process, detailed example process, which is not described herein again.
In above technical scheme, based on the board for supporting VXLAN agreement is increased, realizes and do not supported on the network equipment
The board of VXLAN agreement can also carry out message forwarding based on VXLAN agreement, sufficiently reuse and save the cost to reach.
Fig. 5 is a kind of block diagram for apparatus for forwarding message that one exemplary embodiment of the application provides.Implement with the above method
Example is corresponding, and present invention also provides a kind of embodiment of apparatus for forwarding message, described device is applied to the network equipment, the net
Network integration of equipments has first kind board, Second Type board;Wherein, the first kind board and the Second Type board
The switching backplane integrated through the network equipment is connected communication, and the first kind board does not support VXLAN agreement, and described second
Type board supports VXLAN agreement, and please referring to a kind of apparatus for forwarding message 50, described device exemplified by Fig. 5 includes:
Receiving module 501 receives the object message from the first kind board corresponding ports;
VXLAN module 502, checks whether the object message needs to be implemented VXLAN encapsulation, if the object message needs
VXLAN encapsulation is executed, then the object message is forwarded to the Second Type board;With by the Second Type board to institute
It states object message and executes VXLAN encapsulation;
Forwarding module 503 executes forwarding to the VXLAN message after the corresponding encapsulation of the object message.
In the present embodiment, if the corresponding exit port of the VXLAN message is located at the Second Type board, the forwarding
Module 503 further,
Using the corresponding exit port for being located at the Second Type board of the VXLAN message as first port, from described the
Single port executes forwarding to the VXLAN message.
In the present embodiment, if the corresponding exit port of the VXLAN message is located at the first kind board, the forwarding
Module 503 further,
Using the corresponding exit port for being located at the first kind board of the VXLAN message as second port;
The VXLAN message is forwarded to the first kind board through the switching backplane, by the first kind
Board executes forwarding to the VXLAN message from the second port.
In the present embodiment, if the object message do not need execute VXLAN encapsulation, the forwarding module 503 further,
The object message is forwarded to the Second Type board;With by the Second Type board to the target report
Text executes VLAN TAG replacement;
The replaced message of VLAN TAG is corresponded to the object message and executes forwarding.
In the present embodiment, further includes:
The receiving module 501 further, receives the corresponding back message of the object message;
The VXLAN module 502 further, based on the Second Type board executes VXLAN solution to the back message
Encapsulation obtains the corresponding VXLAN decapsulation message of the back message;
Further, VXLAN decapsulation message corresponding to the back message executes forwarding to the forwarding module 503.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The module of explanation may or may not be physically separated, and the component shown as module can be or can also be with
It is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
System, device, module or the module that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
The embodiment of the apparatus for forwarding message of the application can be using on electronic equipment shown in Fig. 5.Installation practice
It can also be realized by way of hardware or software and hardware combining by software realization.Taking software implementation as an example, as one
Device on a logical meaning is by the processor of electronic equipment where it by calculating corresponding in machine readable storage medium
Machine program instruction runs the machine-executable instruction of formation after reading.For hardware view, as shown in figure 5, for the application's
A kind of hardware structure diagram of electronic equipment where apparatus for forwarding message, in addition to processor shown in fig. 5, communication interface, bus with
And except machine readable storage medium, the practical function of electronic equipment in embodiment where device generally according to the electronic equipment
Can, it can also include other hardware, this is repeated no more.
Accordingly, it the embodiment of the present application also provides the hardware configuration of a kind of electronic equipment of Fig. 5 shown device, refers to
Fig. 6, Fig. 6 are the hardware structural diagram of a kind of electronic equipment provided by the embodiments of the present application.The equipment includes: communication interface
601, processor 602, machine readable storage medium 603 and bus 604;Wherein, communication interface 601, processor 602, machine can
It reads storage medium 603 and mutual communication is completed by bus 604.Wherein, communication interface 601, for carrying out network communication.Place
Reason device 602 can be a central processing unit (CPU), and processor 602 can execute to be stored in machine readable storage medium 603
Machine readable instructions, to realize process as described above.
Machine readable storage medium 603 referred to herein can be any electronics, magnetism, optics or other physical stores
Device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium may is that easily
Lose memory, nonvolatile memory or similar storage medium.Specifically, machine readable storage medium 603 can be RAM
(Radom Access Memory, random access memory), flash memory, memory driver (such as hard disk drive), solid state hard disk,
Any kind of storage dish (such as CD, DVD) perhaps similar storage medium or their combination.
So far, hardware configuration description shown in fig. 6 is completed.
In addition, the embodiment of the present application also provides a kind of machine readable storage medium including machine-executable instruction, example
Such as the machine-readable readable storage medium storing program for executing 603 in Fig. 6, the machine-executable instruction can be by data processing equipment
Device 602 is managed to execute to realize data processing method described above.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following
Claim is pointed out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (12)
1. a kind of message forwarding method, which is characterized in that the method is applied to the network equipment, and the network equipment is integrated with the
One type plates card, Second Type board;Wherein, the first kind board and the Second Type board are through the network equipment
Integrated switching backplane, which is connected, to be communicated, and the first kind board does not support VXLAN agreement, and the Second Type board is supported
VXLAN agreement, which comprises
Receive the object message from the first kind board corresponding ports;
Check whether the object message needs to be implemented VXLAN encapsulation, if the object message needs to be implemented VXLAN encapsulation,
The object message is forwarded to the Second Type board;To be executed by the Second Type board to the object message
VXLAN encapsulation;
Forwarding is executed to the VXLAN message after the corresponding encapsulation of the object message.
2. the method according to claim 1, wherein if the corresponding exit port of the VXLAN message is positioned at described
Second Type board, the VXLAN message after the corresponding encapsulation to the object message execute forwarding, comprising:
Using the corresponding exit port for being located at the Second Type board of the VXLAN message as first port, from the first end
Mouth executes forwarding to the VXLAN message.
3. the method according to claim 1, wherein if the corresponding exit port of the VXLAN message is positioned at described
First kind board, the VXLAN message after the corresponding encapsulation to the object message execute forwarding, comprising:
Using the corresponding exit port for being located at the first kind board of the VXLAN message as second port;
The VXLAN message is forwarded to the first kind board through the switching backplane, by the first kind board
Forwarding is executed to the VXLAN message from the second port.
4. the method according to claim 1, wherein if the object message does not need to execute VXLAN encapsulation, also
Include:
The object message is forwarded to the Second Type board;To be held by the Second Type board to the object message
Row VLAN TAG replacement;
The replaced message of VLAN TAG is corresponded to the object message and executes forwarding.
5. the method according to claim 1, wherein further include:
Receive the corresponding back message of the object message;
VXLAN decapsulation is executed to the back message based on the Second Type board, it is corresponding to obtain the back message
VXLAN decapsulates message;
VXLAN decapsulation message corresponding to the back message executes forwarding.
6. a kind of apparatus for forwarding message, which is characterized in that described device is applied to the network equipment, and the network equipment is integrated with the
One type plates card, Second Type board;Wherein, the first kind board and the Second Type board are through the network equipment
Integrated switching backplane, which is connected, to be communicated, and the first kind board does not support VXLAN agreement, and the Second Type board is supported
VXLAN agreement, described device include:
Receiving module receives the object message from the first kind board corresponding ports;
VXLAN module, checks whether the object message needs to be implemented VXLAN encapsulation, if the object message needs to be implemented
VXLAN encapsulation, then be forwarded to the Second Type board for the object message;With by the Second Type board to the mesh
It marks message and executes VXLAN encapsulation;
Forwarding module executes forwarding to the VXLAN message after the corresponding encapsulation of the object message.
7. device according to claim 6, which is characterized in that if the corresponding exit port of the VXLAN message is positioned at described
Second Type board, the forwarding module further,
Using the corresponding exit port for being located at the Second Type board of the VXLAN message as first port, from the first end
Mouth executes forwarding to the VXLAN message.
8. device according to claim 6, which is characterized in that if the corresponding exit port of the VXLAN message is positioned at described
First kind board, the forwarding module further,
Using the corresponding exit port for being located at the first kind board of the VXLAN message as second port;
The VXLAN message is forwarded to the first kind board through the switching backplane, by the first kind board
Forwarding is executed to the VXLAN message from the second port.
9. device according to claim 6, which is characterized in that if the object message does not need to execute VXLAN encapsulation, institute
State forwarding module further,
The object message is forwarded to the Second Type board;To be held by the Second Type board to the object message
Row VLAN TAG replacement;
The replaced message of VLAN TAG is corresponded to the object message and executes forwarding.
10. device according to claim 6, which is characterized in that further include:
The receiving module is further, receives the corresponding back message of the object message;
The VXLAN module is further, executes VXLAN decapsulation to the back message based on the Second Type board, obtains
It obtains the corresponding VXLAN of the back message and decapsulates message;
The forwarding module is further, and VXLAN decapsulation message corresponding to the back message executes forwarding.
11. a kind of electronic equipment, which is characterized in that including communication interface, processor, memory and bus, the communication interface,
It is connected with each other between the processor and the memory by bus;
Machine readable instructions are stored in the memory, the processor is executed by calling the machine readable instructions as weighed
Benefit requires 1 to 5 described in any item methods.
12. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with machine readable finger
It enables, the machine readable instructions realize method described in any one of claim 1 to 5 when being called and being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910509383.8A CN110290078A (en) | 2019-06-13 | 2019-06-13 | Message forwarding method, device, electronic equipment and machine readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910509383.8A CN110290078A (en) | 2019-06-13 | 2019-06-13 | Message forwarding method, device, electronic equipment and machine readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110290078A true CN110290078A (en) | 2019-09-27 |
Family
ID=68004283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910509383.8A Pending CN110290078A (en) | 2019-06-13 | 2019-06-13 | Message forwarding method, device, electronic equipment and machine readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110290078A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104378297A (en) * | 2013-08-15 | 2015-02-25 | 杭州华三通信技术有限公司 | Message forwarding method and device |
CN107147532A (en) * | 2017-05-27 | 2017-09-08 | 杭州迪普科技股份有限公司 | The virtual method and device of a kind of distributed apparatus |
CN107770031A (en) * | 2017-10-26 | 2018-03-06 | 郑州云海信息技术有限公司 | A kind of expansible VLAN vxlan message processing methods and device |
US10050855B1 (en) * | 2015-12-17 | 2018-08-14 | Juniper Networks, Inc. | Maintaining a tunnel liveness session in a multi-chassis link aggregation group topology |
CN109412922A (en) * | 2017-08-15 | 2019-03-01 | 华为技术有限公司 | A kind of method of transmitting message, forwarding device, controller and system |
CN109525479A (en) * | 2018-12-19 | 2019-03-26 | 锐捷网络股份有限公司 | A kind of message processing method and equipment |
-
2019
- 2019-06-13 CN CN201910509383.8A patent/CN110290078A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104378297A (en) * | 2013-08-15 | 2015-02-25 | 杭州华三通信技术有限公司 | Message forwarding method and device |
US10050855B1 (en) * | 2015-12-17 | 2018-08-14 | Juniper Networks, Inc. | Maintaining a tunnel liveness session in a multi-chassis link aggregation group topology |
CN107147532A (en) * | 2017-05-27 | 2017-09-08 | 杭州迪普科技股份有限公司 | The virtual method and device of a kind of distributed apparatus |
CN109412922A (en) * | 2017-08-15 | 2019-03-01 | 华为技术有限公司 | A kind of method of transmitting message, forwarding device, controller and system |
CN107770031A (en) * | 2017-10-26 | 2018-03-06 | 郑州云海信息技术有限公司 | A kind of expansible VLAN vxlan message processing methods and device |
CN109525479A (en) * | 2018-12-19 | 2019-03-26 | 锐捷网络股份有限公司 | A kind of message processing method and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10063470B2 (en) | Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof | |
JP6043879B2 (en) | Apparatus and method for separation of tenant specific data when using MPLS in OpenFlow enabled cloud computing | |
CN106209557B (en) | Message forwarding method and device | |
EP2907266A1 (en) | Ip multicast service leave process for mpls-based virtual private cloud networking | |
EP3465997B1 (en) | Packet forwarding using vendor extension in a software-defined networking (sdn) system | |
CN101924699B (en) | Message forwarding method, system and provider edge equipment | |
US20200007472A1 (en) | Service insertion in basic virtual network environment | |
CN106059946B (en) | Message forwarding method and device | |
CN106201769B (en) | Server system, non-provisional computer-readable recording mediums and the method to enhance the memory fault-tolerant rate in server system | |
JP2019521619A (en) | Packet forwarding | |
KR20230162083A (en) | Extend cloud-based virtual private networks to wireless-based networks | |
IL280472B1 (en) | A system and a method for using a network cloud software | |
US20190140944A1 (en) | Routing between software defined networks and physical networks | |
CN111756629B (en) | Method, device, equipment, network and medium for accessing equipment to overlay network and communication | |
CN111130978B (en) | Network traffic forwarding method and device, electronic equipment and machine-readable storage medium | |
CN110391919A (en) | Flux of multicast retransmission method, device, electronic equipment | |
US10142264B2 (en) | Techniques for integration of blade switches with programmable fabric | |
CN111131048A (en) | Network traffic forwarding method and device, electronic equipment and machine-readable storage medium | |
CN110290078A (en) | Message forwarding method, device, electronic equipment and machine readable storage medium | |
CN110896378B (en) | Network traffic forwarding method and device, electronic equipment and machine-readable storage medium | |
CN107294857B (en) | Multicast distribution processing method, device and system | |
CN108156066A (en) | Message forwarding method and device | |
CN110891031B (en) | Synchronous information parallel writing method and network equipment | |
CN110505138A (en) | Message forwarding method, device, electronic equipment and machine readable storage medium | |
CN110401594A (en) | Message forwarding method, device, electronic equipment and machine readable storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190927 |
|
RJ01 | Rejection of invention patent application after publication |