CN104247363B - A kind of method of message transmissions and switching equipment and controller - Google Patents
A kind of method of message transmissions and switching equipment and controller Download PDFInfo
- Publication number
- CN104247363B CN104247363B CN201380000345.0A CN201380000345A CN104247363B CN 104247363 B CN104247363 B CN 104247363B CN 201380000345 A CN201380000345 A CN 201380000345A CN 104247363 B CN104247363 B CN 104247363B
- Authority
- CN
- China
- Prior art keywords
- gtpu
- service messages
- switching equipment
- flow table
- table item
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
- H04L47/825—Involving tunnels, e.g. MPLS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/56—Routing software
- H04L45/566—Routing instructions carried by the data packet, e.g. active networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/64—Routing or path finding of packets in data switching networks using an overlay routing layer
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the present invention provides a kind of method of message transmissions and switching equipment and controller, and the forwarding of GTPU service messages can be carried out by OpenFlow networks.Methods described includes:Switching equipment receives tunnel user plane agreement GTPU service message, and the GTPU service messages carry the type and Tunnel Identifier of the GTPU service messages;The type and Tunnel Identifier of the GTPU service messages are matched by the switching equipment with the flow table item of pre-stored;If there is the flow table item matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment, the GTPU service messages are forwarded to designated port according to the action domain in the flow table item.The present invention is applied to the communications field.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of method of message transmissions and switching equipment and controller.
Background technology
With the development of communication technology, the innovation paces of network field have lagged far behind server end, network operation
Business needs the network can more rapidly and easier configuration, therefore people start attention to be put in programmable networks, soft
The network (Software Defined Network, SDN) of part definition arises at the historic moment.
SDN is that the network of tradition closing is transformed into an open environment, and programming can be realized just as computer,
The network virtualization layer that establishment is easily managed, allows third party's developing network application program to carry out the operation of controlling network.
OpenFlow technologies are to realize a kind of mode of SDN, and it can allow user to define flow itself, and determine that flow exists
In network by path, what is without removing pipe bottom hardware, that is to say, that OpenFlow is how to pass through flow
The control that network is transmitted is taken back from various infrastructure (switch and router) handss, gives back network and possesses
Person, personal user or indivedual applications.
The OpenFlow networks constituted based on OpenFlow technologies include OpenFlow controllers, OpenFlow switches.
Wherein OpenFlow switches are core components, are made up of OpenFlow agreements, escape way and three part of OpenFlow flow table.
At present, OpenFlow technologies are gradually ripe and apply in network field, but OpenFlow technologies are still suffered from
Certain defect, the defect do not support general grouped wireless technology tunnel user plane agreement (General for OpenFlow agreements
Packet Radio Service Tunneling Protocol for User, i.e. GPRS tunnel user planes agreement, referred to as
GTPU), therefore OpenFlow switches are after GTPU service messages are received, it is impossible to which GTPU industry is carried out by OpenFlow networks
The forwarding of business message.
The content of the invention
In view of this, The embodiment provides a kind of method of message transmissions and switching equipment and controller, energy
The forwarding of GTPU service message is carried out by OpenFlow networks enough.
First aspect, there is provided a kind of method of message transmissions, methods described are applied to the friendship based on OpenFlow agreements
Exchange device, methods described include:
Switching equipment receives tunnel user plane agreement GTPU service message, and the GTPU service messages carry the GTPU industry
The type and Tunnel Identifier of business message;
The flow table item of the type and Tunnel Identifier of the GTPU service messages and pre-stored is carried out by the switching equipment
Match somebody with somebody;
If there is the flow table item matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment,
The GTPU service messages are forwarded to designated port according to the action domain in the flow table item.
In first aspect in the first possible implementation, with reference in a first aspect, methods described also includes:
If there is no the flow table matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment
, the GTPU service messages are sent to OpenFlow controllers, so that the controller is according to the GTPU service messages,
Send to the switching equipment and indicate message, indicate that the switching equipment sets up the corresponding flow table item of the GTPU service messages;
Receive the instruction message that the controller sends;
According to the instruction message, the corresponding flow table item of the GTPU service messages is set up, so that the switching equipment
The GTPU service messages are forwarded to designated port according to the action domain in the flow table item.
In second possible implementation of first aspect, with reference in a first aspect, methods described also includes:
If there is no the flow table item that the type with the GTPU service messages and mark match, root on the switching equipment
According to the destination address that the routing table and the GTPU service messages of pre-stored are carried, the GTPU service messages are forwarded;
The GTPU service messages are sent to OpenFlow controllers, so that the controller is according to the GTPU business
Message, sends to the switching equipment and indicates message, indicates that the switching equipment sets up the corresponding stream of the GTPU service messages
List item;
Receive the instruction message that the controller sends;
According to the instruction message, the corresponding flow table item of the GTPU service messages is set up, so that the switching equipment
According to the next GTPU service messages for receiving of action domain forwarding in the flow table item to designated port.
In first aspect in the third possible implementation, with reference to first aspect or first aspect the first possible reality
Second possible implementation of existing mode or first aspect, the GTPU service messages also carry GTPU extension information;
The type and Tunnel Identifier of the GTPU service messages and the flow table item of pre-stored are carried out in the switching equipment
Before matching, also include:
The extension information of the GTPU service messages is matched by the switching equipment with the flow table item of pre-stored;
If there is the flow table item with the extension information match of the GTPU service messages on the switching equipment, institute is performed
State the step of type and Tunnel Identifier of the GTPU service messages are matched with the flow table item of pre-stored.
Second aspect, there is provided a kind of method of message transmissions, methods described are applied to the control based on OpenFlow agreements
Device processed, methods described include:
Controller receives the GTPU service messages that switching equipment sends, and the GTPU service messages carry the GTPU business
The type and Tunnel Identifier of message;
Controller is sent to the switching equipment and indicates message according to the GTPU service messages, and the instruction message refers to
Show that the switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according to the flow table
Action domain in forwards the GTPU service messages to designated port.
In second aspect in the first possible implementation, with reference to second aspect, the controller is according to the GTPU
Service message, sends to the switching equipment and indicates that message is specifically included:
The controller carries out the basic head type matchings of GTPU according to the Tunnel Identifier that the GTPU service messages are carried;
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, according to the GTPU bases
Configuration in this type sends to the switching equipment and indicates message, and the instruction message indicates that the switching equipment sets up institute
The corresponding flow table item of GTPU service messages is stated, wherein, the flow table item includes GTPU type of messages and GTPU Tunnel Identifiers, action
Domain.
In second possible implementation of second aspect, with reference to second aspect, the controller is according to the GTPU
Service message, sends to the switching equipment and indicates that message is specifically included:
The controller carries out the basic head type matchings of GTPU according to the Tunnel Identifier that the GTPU service messages are carried;
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, the GTPU bases are checked
GTPU extensions in this type are identified whether effectively;
If the GTPU extension marks in the basic head type of the GTPU are effective, according in the basic head types of the GTPU
Configuration in configuration and GTPU extension header types, sends configured information to the switching equipment, and the configured information indicates described
Switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according in the flow table item
Action domain forwards the GTPU service messages to designated port, wherein, the flow table item includes GTPU type of messages and GTPU tunnels
Road mark, GTPU extension information, action domain.
A kind of third aspect, there is provided switching equipment, the switching equipment are based on OpenFlow agreements, the switching equipment
Including:Receiving unit, matching unit and the first transmitting element;
The receiving unit, for receiving tunnel user plane agreement GTPU service message, the GTPU service messages are carried
The type and Tunnel Identifier of the GTPU service messages;
The matching unit, for the type and Tunnel Identifier of the GTPU service messages are entered with the flow table item of pre-stored
Row matching;
First transmitting element, if for there is type and tunnel with the GTPU service messages on the switching equipment
The flow table item that road mark matches, forwards the GTPU service messages to designated port according to the action domain in the flow table item.
In the third aspect in the first possible implementation, with reference to the third aspect, the switching equipment also includes setting up
Unit, the second transmitting element;
Second transmitting element, if for do not exist on the switching equipment type with the GTPU service messages and
The flow table item that Tunnel Identifier matches, sends the GTPU service messages to OpenFlow controllers, so that the controller
According to the GTPU service messages, send to the switching equipment and indicate message, indicate that the switching equipment sets up the GTPU
The corresponding flow table item of service message;
The receiving unit, is additionally operable to receive the instruction message that the controller sends;
It is described to set up unit, for according to the instruction message, setting up the corresponding flow table item of the GTPU service messages, with
So that the switching equipment forwards the GTPU service messages to designated port according to the action domain in the flow table item.
In second possible implementation of the third aspect, with reference to the third aspect, the switching equipment also includes setting up
Unit, the second transmitting element, the 3rd transmitting element;
3rd transmitting element, if for do not exist on the switching equipment type with the GTPU service messages and
The flow table item that mark matches, according to the destination address that the routing table and the GTPU service messages of pre-stored are carried, forwards institute
State GTPU service messages;
Second transmitting element, for sending the GTPU service messages to OpenFlow controllers, so that described
Controller is sent to the switching equipment and indicates message according to the GTPU service messages, indicates that the switching equipment sets up institute
State the corresponding flow table item of GTPU service messages;
The receiving unit, is additionally operable to receive the instruction message that the controller sends;
It is described to set up unit, for according to the instruction message, setting up the corresponding flow table item of the GTPU service messages, with
So that the switching equipment according to the action domain forwarding GTPU service messages that receive of the next one in the flow table item to specifying
Port.
In the third aspect in the third possible implementation, with reference to the third aspect or the third aspect the first possible reality
Second possible implementation of existing mode or the third aspect, the GTPU service messages also carry GTPU extension information;
The matching unit, is additionally operable to by the flow table of the type and Tunnel Identifier of the GTPU service messages and pre-stored
Before item is matched, the extension information of the GTPU service messages is matched with the flow table item of pre-stored;
If there is the flow table item with the extension information match of the GTPU service messages on the switching equipment, described
The type and Tunnel Identifier of the GTPU service messages are matched with the flow table item of pre-stored with unit.
A kind of fourth aspect, there is provided controller, the controller are based on OpenFlow agreements, and the controller includes:
Receiving unit, transmitting element;
The receiving unit, for receiving the GTPU service messages of switching equipment transmission, the GTPU service messages are carried
The type and Tunnel Identifier of the GTPU service messages;
The transmitting element, it is for according to the GTPU service messages, sending to the switching equipment and indicating message, described
Indicate that message indicates that the switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the switching equipment root
The GTPU service messages are forwarded to designated port according to the action domain in the flow table item.
In fourth aspect in the first possible implementation, with reference to fourth aspect, the transmitting element is according to described
GTPU service messages, send to the switching equipment and indicate that message is specifically included:
The basic head type matchings of GTPU are carried out according to the Tunnel Identifier that the GTPU service messages are carried;
If matching the basic head types of the corresponding GTPU of the GTPU service messages, according in the basic head types of the GTPU
Configuration send to the switching equipment and indicate message, the instruction message indicates that the switching equipment sets up the GTPU business
The corresponding vertical flow table item of message, wherein, the flow table item includes GTPU type of messages and GTPU Tunnel Identifiers, action domain.
In second possible implementation of fourth aspect, with reference to fourth aspect, the transmitting element is according to described
GTPU service messages, send to the switching equipment and indicate that message is specifically included:
The basic head type matchings of GTPU are carried out according to the Tunnel Identifier that the GTPU service messages are carried;
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, the GTPU bases are checked
GTPU extensions in this type are identified whether effectively;
If the GTPU extension marks in the basic head type of the GTPU are effective, according to matching somebody with somebody in the basic head types of the GTPU
Putting and the configuration in GTPU extension header types, configured information being sent to the switching equipment, the configured information indicates the friendship
Exchange device sets up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according to the row in the flow table item
Dynamic domain forwards the GTPU service messages to designated port, wherein, the flow table item includes GTPU type of messages and GTPU tunnels
Mark, GTPU extension information, action domain.
In terms of 5th, there is provided a kind of switching equipment, the switching equipment is based on OpenFlow agreements, the switching equipment
Including:Receptor, processor and transmitter;
The receptor, for receiving tunnel user plane agreement GTPU service message, and the GTPU service messages is sent out
The processor is given, the GTPU service messages carry the type and Tunnel Identifier of the GTPU service messages;
The processor, for receiving the GTPU service messages that the receptor sends, and by the GTPU business
The type and Tunnel Identifier of message is matched with the flow table item of pre-stored;
The transmitter, if for there is type and Tunnel Identifier with the GTPU service messages on the switching equipment
The flow table item for matching, forwards the GTPU service messages to designated port according to the action domain in the flow table item.
In the first possible implementation in terms of the 5th, in terms of the 5th, the transmitter, if being additionally operable to described
There is no the flow table item matched with the type and Tunnel Identifier of the GTPU service messages on switching equipment, send the GTPU
Service message is to OpenFlow controllers, so that the controller is according to the GTPU service messages, to the switching equipment
Send and indicate message, indicate that the switching equipment sets up the corresponding flow table item of the GTPU service messages;
The receptor, is additionally operable to receive the instruction message that the controller sends, and the instruction message is sent out
Give the processor;
The processor, is additionally operable to receive the instruction message that the receptor sends, and according to the instruction message,
The corresponding flow table item of the GTPU service messages is set up, so that the switching equipment is according to the action domain in the flow table item
The GTPU service messages are forwarded to designated port.
In second possible implementation in terms of the 5th, in terms of the 5th, the transmitter, if being additionally operable to described
There is no the flow table item that the type with the GTPU service messages and mark match on switching equipment, according to the route of pre-stored
The destination address that table and the GTPU service messages are carried, forwards the GTPU service messages;
The transmitter, is additionally operable to send the GTPU service messages to OpenFlow controllers, so that the control
Device is sent to the switching equipment and indicates message according to the GTPU service messages, indicates that the switching equipment is set up described
The corresponding flow table item of GTPU service messages;
The receptor, is additionally operable to receive the instruction message that the controller sends, and sends the instruction message
To the processor;
The processor, is additionally operable to receive the instruction message that the receptor sends, and according to the instruction message,
The corresponding flow table item of the GTPU service messages is set up, so that the switching equipment turns according to the action domain in the flow table item
The next GTPU service messages for receiving are sent out to designated port.
In the third possible implementation in terms of the 5th, with reference to the first possible reality in terms of the 5th or in terms of the 5th
Second possible implementation in terms of existing mode or the 5th, the GTPU service messages also carry GTPU extension information;
The processor, is additionally operable to by the flow table item of the type and Tunnel Identifier of the GTPU service messages and pre-stored
Before being matched, the extension information of the GTPU service messages is matched with the flow table item of pre-stored;
If there is the flow table item with the extension information match of the GTPU service messages, the place on the switching equipment
The type and Tunnel Identifier of the GTPU service messages are matched with the flow table item of pre-stored by reason device by described.
In terms of 6th, there is provided a kind of controller, the controller is based on OpenFlow agreements, and the controller includes:
Receptor, transmitter;
The receptor, for receiving the GTPU service messages of switching equipment transmission, and the GTPU service messages is sent out
The transmitter is given, the GTPU service messages carry the type and Tunnel Identifier of the GTPU service messages;
The transmitter, for receiving the GTPU service messages that the receptor sends, and according to the GTPU business report
Text, sends to the switching equipment and indicates message, and the instruction message indicates that the switching equipment sets up the GTPU business report
The corresponding flow table item of text, so that the switching equipment forwards the GTPU service messages according to the action domain in the flow table item
To designated port.
In the first possible implementation in terms of the 6th, in terms of the 6th, the transmitter is according to the GTPU
Service message, sends to the switching equipment and indicates that message is specifically included:
The basic head type matchings of GTPU are carried out according to the Tunnel Identifier that the GTPU service messages are carried;
If matching the basic head types of the corresponding GTPU of the GTPU service messages, according in the basic head types of the GTPU
Configuration send to the switching equipment and indicate message, the instruction message indicates that the switching equipment sets up the GTPU business
The corresponding flow table item of message, wherein, the flow table item includes GTPU type of messages and GTPU Tunnel Identifiers, action domain.
In second possible implementation in terms of the 6th, in terms of the 6th, the transmitter is according to the GTPU
Service message, sends to the switching equipment and indicates that message is specifically included:
The basic head type matchings of GTPU are carried out according to the Tunnel Identifier that the GTPU service messages are carried;
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, the GTPU bases are checked
GTPU extensions in this type are identified whether effectively;
If the GTPU extension marks in the basic head type of the GTPU are effective, according to matching somebody with somebody in the basic head types of the GTPU
Putting and the configuration in GTPU extension header types, configured information being sent to the switching equipment, the configured information indicates the friendship
Exchange device sets up the corresponding flow table item of the GTPU service messages, wherein, the flow table item includes GTPU type of messages and GTPU
Tunnel Identifier, GTPU extension information, action domain.
By such scheme, switching equipment receives GTPU service messages, and the GTPU service messages carry the GTPU industry
The type and Tunnel Identifier of business message;The switching equipment is by the type and Tunnel Identifier and pre-stored of the GTPU service messages
Flow table item matched;If exist on the switching equipment matching with the type and Tunnel Identifier of the GTPU service messages
Flow table item, the GTPU service messages are forwarded to designated port according to the action domain in the flow table item.The method is by controlling
Device configuration switching equipment establishes the corresponding flow table item of GTPU service messages in a certain tunnel, when switching equipment receives the tunnel
GTPU service messages after because there is the type and Tunnel Identifier phase with the GTPU service messages on the switching equipment
The flow table item of matching, it is possible to which the GTPU service messages are forwarded to designated port according to the action domain in the flow table item,
Realize transmission of the GTPU service messages in OpenFlow networks.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of method of message transmissions provided in an embodiment of the present invention;
Fig. 2 is the method for another kind of message transmissions provided in an embodiment of the present invention;
Fig. 3 is the method for another message transmissions provided in an embodiment of the present invention;
Fig. 4 is the method for another message transmissions provided in an embodiment of the present invention;
Fig. 5 is a kind of switching equipment provided in an embodiment of the present invention;
Fig. 6 is another kind of switching equipment provided in an embodiment of the present invention;
Fig. 7 is another switching equipment provided in an embodiment of the present invention;
Fig. 8 is a kind of controller provided in an embodiment of the present invention;
Fig. 9 is another kind of switching equipment provided in an embodiment of the present invention;
Figure 10 is another kind of controller provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Embodiment one,
Software definition of the network rebuilding that the physical hardware of traditional fixation is constituted by OpenFlow agreements into dynamically changeable
Network (Software Defined Network, SDN), be a set of agreement with open interface, chain of command can be realized
Separate with forwarding surface.
The network system constituted based on OpenFlow agreements is included the controller based on OpenFlow agreements and is based on
The switching equipment of OpenFlow agreements.Wherein, the controller is managed to connected switching equipment, and such as management exchange sets
The new flow table of standby foundation, renewal, deletion and lookup flow table etc..The switching equipment turns for route is carried out to the packet in network
Send out.
Included based on the protocol section of the switching equipment of OpenFlow agreements:Flow table, escape way and OpenFlow association
View.Wherein, switching equipment is connected with controller by the escape way.The flow table is that the switching equipment carries out forwarding strategy
The kernel data structure of control, switching equipment are taken to the network traffics into switch come decision-making by searching the flow table
Behavior.The flow table includes matching domain, enumerator and action domain, and different vendor can be each according to the Demand Design function of itself
Different flow table.The information of the counters count flow of flow table, the movable list item of such as flow table, searches number of times, sends bag number of times etc.,
Can be safeguarded for every flow table, each stream, each port, each queue.The action domain of flow table is used for switching equipment
Stream compression is specifically such as dealt into designated port, heavy label, discarding etc. by process action.
But, existing OpenFlow agreements do not support GTPU agreements, in order that OpenFlow agreements support GPTU business
The forwarding of message, increases the basic head types of GTPU and GTPU extension header types in the matching domain of OpenFlow agreements newly;
Increase GTPU type of messages and GTPU Tunnel Identifier fields in the flow table of OpenFlow agreements newly.
Embodiment one,
The embodiment of the present invention provides a kind of method of message transmissions, and methods described is applied to the friendship based on OpenFlow agreements
Exchange device, it is concrete as shown in figure 1, methods described includes:
101st, switching equipment receives tunnel user plane agreement GTPU service message, and the GTPU service messages carry described
The type and Tunnel Identifier of GTPU service messages.
Specifically, the type and Tunnel Identifier of the GTPU service messages of the carrying is used to carry out in OpenFlow networks
Flow table is matched, when the type of the GTPU service messages is matched, the Tunnel Identifier unique mark of the GTPU service messages
The opposite end endpoint of a tunnel of the GTPU service messages.
102nd, the flow table item of the type and Tunnel Identifier and pre-stored of the GTPU service messages is entered by the switching equipment
Row matching.
Specifically, the switching equipment is by the flow table item of the type and Tunnel Identifier of the GTPU service messages and pre-stored
Matched, matched in the matching domain of flow table item.
If the 103, there is the stream matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment
List item, forwards the GTPU service messages to designated port according to the action domain in the flow table item.
Specifically, match with the type and Tunnel Identifier of the GTPU service messages if existing on the switching equipment
There is GTPU type of messages and GTPU Tunnel Identifiers in flow table item with the type of the GTPU service messages in flow table item, then explanation
The flow table item consistent with Tunnel Identifier.The flow table item may be by the signaling message that controller receives and be pre-configured in
On the switching equipment, it is also possible to which, after receiving the GTPU service messages of switching equipment transmission, message trigger controller is matched somebody with somebody
Put on switching equipment, the embodiment of the present invention is not especially limited to this.
It should be noted that existing OpenFlow agreements do not support GTPU agreements, two aspects are shown:First,
OpenFlow controllers cannot pass through flow table of the OpenFlow protocol configurations GTPU service message on OpenFlow switches;The
Two, even if OpenFlow controllers can be by OpenFlow protocol configurations GTPU service message on OpenFlow switches
Flow table, but but there are no the relevant entries of GTPU service messages in configuration information, so the stream in existing OpenFlow networks
There is no GTPU type of messages and GTPU Tunnel Identifier fields in list item.If existing on the switching equipment and the GTPU business
The flow table item that type of message and Tunnel Identifier match, illustrates to increase GTPU in the matching domain of the flow table item of OpenFlow networks newly
Type of message and GTPU Tunnel Identifier fields, the i.e. matching domain of flow table item can be included into incoming interface, ethernet source address, ether
Net destination address, ethernet type, VLAN ID, VLAN priority, IP source address, IP destination addresses, IP associations
View, IP ToS positions, transmission control protocol (Transmission Control Protocol, TCP)/User Datagram Protocol
(User Datagram Protocol, UDP)/SCTP (Stream Control Transmission
Protocol, SCTP) target port, TCP/UDP/SCTP source ports, GTPU type of messages, GTPU Tunnel Identifiers.
When the matching of flow table matching domain is carried out, generally there is two ways:First, layering and matching, you can first to carry out two layers
Matching, then carry out three layers of matching;Second, the once matching of cross-layer.But two kinds of matching ways are all using mask+accurately mate
Mode, i.e., cover unwanted field with mask, then carry out accurately mate, only illustrates switching equipment by institute in the embodiment of the present invention
The type and Tunnel Identifier for stating GTPU service messages is matched with the flow table item of pre-stored, does not make concrete limit to matching way
It is fixed.
Because flow table item includes action domain, domain of taking action is used for the process action of switching equipment, concrete such as by forwarding data flow
To designated port, heavy label, discarding etc., so after in the matching domain of flow table item, the match is successful, can be according in the flow table item
Action domain forward the GTPU service messages to designated port.
Enter a level, if there is the flow table item comprising GTPU type of messages and GTPU Tunnel Identifier fields, explanation
The basic head types of GTPU are included in the basic header file of OpenFlow agreements, certainly, it is contemplated that may in the basic head types of GTPU
Comprising extension flag, so be likely in OpenFlow agreements comprising GTPU extension header types, the embodiment of the present invention to this not
Make concrete restriction.
The embodiment of the present invention also provides a kind of method of message transmissions, and methods described is applied to based on OpenFlow agreements
Controller, it is concrete as shown in Fig. 2 methods described includes:
201st, controller receives the GTPU service messages that switching equipment sends, and the GTPU service messages carry the GTPU
The type and Tunnel Identifier of service message.
Specifically, after switching equipment receives GTPU service messages, if do not exist on the switching equipment with it is described
The flow table item that the type and Tunnel Identifier of GTPU service messages matches, then switching equipment the GTPU service messages can be sent
To the GTPU service messages that controller, now controller reception switching equipment send.
202nd, controller is sent to the switching equipment and indicates message according to the GTPU service messages, and the instruction disappears
Breath indicates that the switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according to described
Action domain in flow table item forwards the GTPU service messages to designated port.
Specifically, controller is sent to the switching equipment and indicates that message can be institute according to the GTPU service messages
Stating controller carries out the basic head type matchings of GTPU according to the Tunnel Identifier that the GTPU service messages are carried;If the controller
The basic head types of the corresponding GTPU of the GTPU service messages are matched, according to the configuration in the basic head types of the GTPU to institute
State switching equipment and send instruction message, it is corresponding that the instruction message indicates that the switching equipment sets up the GTPU service messages
Flow table item, wherein, the flow table item includes GTPU type of messages and GTPU Tunnel Identifiers, action domain.
Certainly, if the GTPU extension marks in the basic head types of the GTPU are effective, match in the controller described
After the basic head types of the corresponding GTPU of GTPU service messages, can be expanded according to the configuration in the basic head types of the GTPU and GTPU
Configuration in exhibition head type, sends configured information to the switching equipment, and the configured information indicates that the switching equipment is set up
The corresponding flow table item of the GTPU service messages, wherein, the flow table item include GTPU type of messages and GTPU Tunnel Identifiers,
GTPU extension information, action domain.
The embodiment of the present invention according to the GTPU service messages, sends instruction to the switching equipment and disappears to the controller
Breath is not especially limited.
By such scheme, switching equipment receives GTPU service messages, and the GTPU service messages carry the GTPU industry
The type and Tunnel Identifier of business message;The switching equipment is by the type and Tunnel Identifier and pre-stored of the GTPU service messages
Flow table item matched;If exist on the switching equipment matching with the type and Tunnel Identifier of the GTPU service messages
Flow table item, the GTPU service messages are forwarded to designated port according to the action domain in the flow table item.Controller is described
When there is no the flow table item matched with the type and Tunnel Identifier of the GTPU service messages on switching equipment, receive exchange and set
The GTPU service messages that preparation is sent, then according to the GTPU service messages, send to the switching equipment and indicate message,
The instruction message indicates that the switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the exchange sets
The standby action domain according in the flow table item forwards the GTPU service messages to designated port.The method is handed over by controller configuration
Exchange device establishes the corresponding flow table item of GTPU service messages in a certain tunnel, when switching equipment receives the GTPU industry in the tunnel
After business message, because there is the stream matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment
List item, it is possible to forward the GTPU service messages to designated port according to the action domain in the flow table item, realize GTPU
Transmission of the service message in OpenFlow networks.
Embodiment two,
The embodiment of the present invention provides a kind of method of message transmissions, and methods described is applied to the friendship based on OpenFlow agreements
Exchange device and the connected controller based on OpenFlow agreements, it is concrete as shown in figure 3, methods described includes:
301st, switching equipment receives tunnel user plane agreement GTPU service message, and the GTPU service messages carry described
The type and Tunnel Identifier of GTPU service messages.
Specifically, the type and Tunnel Identifier of the GTPU service messages of the carrying is used to carry out in OpenFlow networks
Flow table is matched, when the type of the GTPU service messages is matched, the Tunnel Identifier unique mark of the GTPU service messages
The opposite end endpoint of a tunnel of the GTPU service messages.
302nd, the flow table item of the type and Tunnel Identifier and pre-stored of the GTPU service messages is entered by the switching equipment
Row matching.
Specifically, the switching equipment is by the flow table item of the type and Tunnel Identifier of the GTPU service messages and pre-stored
Matched, matched in the matching domain of flow table item.
Specifically, match with the type and Tunnel Identifier of the GTPU service messages if existing on the switching equipment
Flow table item, execution step 303;
If there is no the flow table matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment
, execution step 304.
If the 303, there is the stream matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment
List item, forwards the GTPU service messages to designated port according to the action domain in the flow table item.
Specifically, match with the type and Tunnel Identifier of the GTPU service messages if existing on the switching equipment
There is GTPU type of messages and GTPU Tunnel Identifiers in flow table item with the type of the GTPU service messages in flow table item, then explanation
The flow table item consistent with Tunnel Identifier.The flow table item may be by the signaling message that controller receives and be pre-configured in institute
State on switching equipment, it is also possible to after receiving the GTPU service messages of switching equipment transmission, the configuration of message trigger controller
On switching equipment, the embodiment of the present invention is not especially limited to this.
It should be noted that existing OpenFlow agreements do not support GTPU agreements, two aspects are shown:First,
OpenFlow controllers cannot pass through flow table of the OpenFlow protocol configurations GTPU service message on OpenFlow switches;The
Two, even if OpenFlow controllers can be by OpenFlow protocol configurations GTPU service message on OpenFlow switches
Flow table, but but there are no the relevant entries of GTPU service messages in configuration information, so the stream in existing OpenFlow networks
There is no GTPU type of messages and GTPU Tunnel Identifier fields in list item.If existing on the switching equipment and the GTPU industry
The flow table item that business type of message and Tunnel Identifier match, illustrates to increase newly in the matching domain of the flow table item of OpenFlow networks
GTPU type of messages and GTPU Tunnel Identifier fields, the i.e. matching domain of flow table item can include into incoming interface, ethernet source address,
Ethernet destination address, ethernet type, VLAN ID, VLAN priority, IP source address, IP destination addresses,
IP agreement, IP ToS positions, TCP/UDP/SCDP target ports, TCP/UDP/SCDP source ports, GTPU type of messages, GTPU tunnels
Mark.
When the matching of flow table matching domain is carried out, generally there is two ways:First, layering and matching, you can first to carry out two layers
Matching, then carry out three layers of matching;Second, the once matching of cross-layer.But two kinds of matching ways are all using mask+accurately mate
Mode, i.e., cover unwanted field with mask, then carry out accurately mate, only illustrates switching equipment by institute in the embodiment of the present invention
The type and Tunnel Identifier point for stating GTPU service messages is matched with the flow table item of pre-stored, does not make concrete limit to matching way
It is fixed.
Because flow table item includes action domain, domain of taking action is used for the process action of switching equipment, concrete such as by forwarding data flow
To designated port, heavy label, discarding etc., so after in the matching domain of flow table item, the match is successful, can be according in the flow table item
Action domain forward the GTPU service messages to designated port.
Enter a level, if there is the flow table item comprising GTPU type of messages and GTPU Tunnel Identifier fields, explanation
GTPU basic head type is included in the basic header file of OpenFlow agreements necessarily, certainly, it is contemplated that in the basic head types of GTPU
May be comprising extension flag, so being likely in OpenFlow agreements comprising GTPU extension header types, the embodiment of the present invention pair
This is not especially limited.
If the 304, do not exist on the switching equipment matching with the type and Tunnel Identifier of the GTPU service messages
Flow table item, sends the GTPU service messages to OpenFlow controllers, so that the controller is according to the GTPU business
Message, sends to the switching equipment and indicates message, indicates that the switching equipment sets up the corresponding stream of the GTPU service messages
List item.
Specifically, match with the type and Tunnel Identifier of the GTPU service messages if not existing on the switching equipment
Flow table item, send the GTPU service messages to OpenFlow controllers, the controller is according to whether can match
The basic head types of GTPU, it is determined whether the corresponding flow table item of the GTPU service messages is set up in switching equipment, if matching
The basic head types of GTPU, then be configured in switching equipment by controller and set up the corresponding flow table item of the GTPU service messages,
Switching equipment, just can be according to the action domain in the flow table item after the GTPU service messages that next time receives same Tunnel Identifier
Forward the GTPU service messages to designated port, realize transmission of the GTPU service messages in OpenFlow networks.
305th, controller receives the GTPU service messages that the switching equipment sends.
306th, controller is sent to the switching equipment and indicates message according to the GTPU service messages, and the instruction disappears
Breath indicates that the switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according to described
Action domain in flow table item forwards the GTPU service messages to designated port.
Specifically, controller is sent to the switching equipment and indicates that message can be institute according to the GTPU service messages
Stating controller carries out the basic head type matchings of GTPU according to the Tunnel Identifier that the GTPU service messages are carried;If the controller
The basic head types of the corresponding GTPU of the GTPU service messages are matched, according to the configuration in the basic head types of the GTPU to institute
State switching equipment and send instruction message, it is corresponding that the instruction message indicates that the switching equipment sets up the GTPU service messages
Flow table item, wherein, the flow table item includes GTPU type of messages and GTPU Tunnel Identifiers, action domain.
Certainly, if the GTPU extension marks in the basic head types of the GTPU are effective, match in the controller described
After the basic head types of the corresponding GTPU of GTPU service messages, can be expanded according to the configuration in the basic head types of the GTPU and GTPU
Configuration in exhibition head type, sends configured information to the switching equipment, and the configured information indicates that the switching equipment is set up
The corresponding flow table item of the GTPU service messages, wherein, the flow table item include GTPU type of messages and GTPU Tunnel Identifiers,
GTPU extension information, action domain.
The embodiment of the present invention according to the GTPU service messages, sends instruction to the switching equipment and disappears to the controller
Breath is not especially limited.
307th, switching equipment receives the instruction message that the controller sends.
308th, switching equipment sets up the corresponding flow table item of the GTPU service messages according to the instruction message, so that
The switching equipment forwards the GTPU service messages to designated port according to the action domain in the flow table item.
It should be noted that in OpenFlow networks, the switching equipment is specifically as follows a certain network element node or connects
Mouthful, the feelings that traditional routing is forwarded are not supported in such as base station, forwarding packet data gateway etc., above-described embodiment correspondence switching equipment
Condition, i.e., described switching equipment are pure OpenFlow switching equipment.
Optionally, the embodiment of the present invention also provides a kind of method of message transmissions, and methods described is applied to support
The controller of the switching equipment of OpenFlow agreements and connected support OpenFlow agreements, with the switching equipment simultaneously
Support that traditional routing forwarding is illustrated, it is concrete as shown in figure 4, methods described includes:
401st, switching equipment receives tunnel user plane agreement GTPU service message, and the GTPU service messages carry described
The type and Tunnel Identifier of GTPU service messages.
Specifically, the type and Tunnel Identifier of the GTPU service messages of the carrying is used to carry out in OpenFlow networks
Flow table is matched, when the type of the GTPU service messages is matched, the Tunnel Identifier unique mark of the GTPU service messages
The opposite end endpoint of a tunnel of the GTPU service messages.
402nd, the flow table item of the type and Tunnel Identifier and pre-stored of the GTPU service messages is entered by the switching equipment
Row matching.
Specifically, the switching equipment is by the flow table item of the type and Tunnel Identifier of the GTPU service messages and pre-stored
Matched, matched in the matching domain of flow table item.
Specifically, match with the type and Tunnel Identifier of the GTPU service messages if existing on the switching equipment
Flow table item, execution step 403;
If there is no the flow table matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment
, execution step 404.
If the 403, there is the stream matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment
List item, forwards the GTPU service messages to designated port according to the action domain in the flow table item.
Specifically, match with the type and Tunnel Identifier of the GTPU service messages if existing on the switching equipment
There is GTPU type of messages and GTPU Tunnel Identifiers in flow table item with the type of the GTPU service messages in flow table item, then explanation
The flow table item consistent with Tunnel Identifier.The flow table item may be by the signaling message that controller receives and be pre-configured in institute
State on switching equipment, it is also possible to after receiving the GTPU service messages of switching equipment transmission, the configuration of message trigger controller
On switching equipment, the embodiment of the present invention is not especially limited to this.
It should be noted that existing OpenFlow agreements do not support GTPU agreements, two aspects are shown:First,
OpenFlow controllers cannot pass through flow table of the OpenFlow protocol configurations GTPU service message on OpenFlow switches;The
Two, even if OpenFlow controllers can be by OpenFlow protocol configurations GTPU service message on OpenFlow switches
Flow table, but but there are no the relevant entries of GTPU service messages in configuration information, so the stream in existing OpenFlow networks
There is no GTPU type of messages and GTPU Tunnel Identifier fields in list item.If existing on the switching equipment and the GTPU industry
The flow table item that business type of message and Tunnel Identifier match, illustrates to increase newly in the matching domain of the flow table item of OpenFlow networks
GTPU type of messages and GTPU Tunnel Identifier fields, the i.e. matching domain of flow table item can include into incoming interface, ethernet source address,
Ethernet destination address, ethernet type, VLAN ID, VLAN priority, IP source address, IP destination addresses,
IP agreement, IP ToS positions, TCP/UDP/SCDP target ports, TCP/UDP/SCDP source ports, GTPU type of messages, GTPU tunnels
Mark.
When the matching of flow table matching domain is carried out, generally there is two ways:First, layering and matching, you can first to carry out two layers
Matching, then carry out three layers of matching;Second, the once matching of cross-layer.But two kinds of matching ways are all using mask+accurately mate
Mode, i.e., cover unwanted field with mask, then carry out accurately mate, only illustrates switching equipment by institute in the embodiment of the present invention
The type and Tunnel Identifier point for stating GTPU service messages is matched with the flow table item of pre-stored, does not make concrete limit to matching way
It is fixed.
Because flow table item includes action domain, domain of taking action is used for the process action of switching equipment, concrete such as by forwarding data flow
To designated port, heavy label, discarding etc., so after in the matching domain of flow table item, the match is successful, can be according in the flow table item
Action domain forward the GTPU service messages to designated port.
Enter a level, if there is the flow table item comprising GTPU type of messages and GTPU Tunnel Identifier fields, explanation
GTPU basic head type is included in the basic header file of OpenFlow agreements necessarily, certainly, it is contemplated that in the basic head types of GTPU
May be comprising extension flag, so being likely in OpenFlow agreements comprising GTPU extension header types, the embodiment of the present invention pair
This is not especially limited.
If the 404, do not exist on the switching equipment matching with the type and Tunnel Identifier of the GTPU service messages
Flow table item, sends the GTPU service messages to OpenFlow controllers, so that the controller is according to the GTPU business
Message, sends to the switching equipment and indicates message, indicates that the switching equipment sets up the corresponding stream of the GTPU service messages
List item.
Specifically, match with the type and Tunnel Identifier of the GTPU service messages if not existing on the switching equipment
Flow table item, send the GTPU service messages to OpenFlow controllers, the controller is according to whether can match
The basic head types of GTPU, it is determined whether the corresponding flow table item of the GTPU service messages is set up in switching equipment, if matching
The basic head types of GTPU, then be configured in switching equipment by controller and set up the corresponding flow table item of the GTPU service messages,
Switching equipment, just can be according to the action domain in the flow table item after the GTPU service messages that next time receives same Tunnel Identifier
Forward the GTPU service messages to designated port, realize transmission of the GTPU service messages in OpenFlow networks.
405th, the destination address that the switching equipment is carried according to the routing table and the GTPU service messages of pre-stored, turns
Send out GTPU service messages described.
Specifically, match with the type and Tunnel Identifier of the GTPU service messages if not existing on the switching equipment
Flow table item because the switching equipment supports traditional routing forwarding, therefore the switching equipment can be with the road according to pre-stored
The destination address carried by table and the GTPU service messages, forwards the GTPU service messages.
It should be noted that the switching equipment sends the GTPU service messages to OpenFlow controllers and the friendship
The destination address that exchange device is carried according to the routing table and the GTPU service messages of pre-stored, forwards the GTPU service messages
Without absolute sequencing, the two be do not exist on the switching equipment is judged type with the GTPU service messages and
After the flow table item that Tunnel Identifier matches, switching equipment two actions with coordination to be performed, the embodiment of the present invention
The execution sequencing of the two is not especially limited.
406th, controller receives the GTPU service messages that the switching equipment sends.
407th, controller is sent to the switching equipment and indicates message according to the GTPU service messages, and the instruction disappears
Breath indicates that the switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according to described
The GTPU service messages that the action domain forwarding next one in flow table item is received are to designated port.
Specifically, controller is sent to the switching equipment and indicates that message can be institute according to the GTPU service messages
Stating controller carries out the basic head type matchings of GTPU according to the Tunnel Identifier that the GTPU service messages are carried;If the controller
The basic head types of the corresponding GTPU of the GTPU service messages are matched, according to the configuration in the basic head types of the GTPU to institute
State switching equipment and send instruction message, it is corresponding that the instruction message indicates that the switching equipment sets up the GTPU service messages
Flow table item, wherein, the flow table item includes GTPU type of messages and GTPU Tunnel Identifiers, action domain.
Certainly, if the GTPU extension marks in the basic head types of the GTPU are effective, match in the controller described
After the basic head types of the corresponding GTPU of GTPU service messages, can be expanded according to the configuration in the basic head types of the GTPU and GTPU
Configuration in exhibition head type, sends configured information to the switching equipment, and the configured information indicates that the switching equipment is set up
The corresponding flow table item of the GTPU service messages, wherein, the flow table item include GTPU type of messages and GTPU Tunnel Identifiers,
GTPU extension information, action domain.
408th, switching equipment receives the instruction message that the controller sends.
409th, switching equipment sets up the corresponding flow table item of the GTPU service messages according to the instruction message, so that
The switching equipment is according to the next GTPU service messages for receiving of action domain forwarding in the flow table item to designated port.
The method in original switching equipment new control server agent module, flow table module, escape way and
OpenFlow protocol interfaces so that the switching equipment is the switching equipment for supporting OpenFlow, while not changing traditional
The function of forwarding service message is carried out by searching routing table, so can not existed in the switching equipment and the GTPU
During the flow table item that the type and Tunnel Identifier of service message matches, the GTPU service messages are passed through into traditional routing path first
Destination address is forwarded to, if being not in do not exist and the GTPU business in the switching equipment in pure OpenFlow switches
During the flow table item that the type and Tunnel Identifier of message matches, the problem that the GTPU service messages may be partially discarded.Separately
On the one hand, because not changing traditional function that forwarding service message is carried out by searching routing table, also so that in the method
When realizing, change less on the basis of existing network, it is simpler.
Optionally, the GTPU service messages also carry GTPU extension information, it is contemplated that switching equipment receives GTPU industry
When business message is matched, matching speed can be improved according to the descending principle of matching range, so setting in the exchange
For before being matched the type and Tunnel Identifier of the GTPU service messages with the flow table item of pre-stored, also include:
The extension information of the GTPU service messages is matched by the switching equipment with the flow table item of pre-stored;
If there is the flow table item with the extension information match of the GTPU service messages on the switching equipment, institute is performed
Stating the flow table item by the type and Tunnel Identifier of the GTPU service messages with pre-stored carries out matching step.
So, relative to directly the type and Tunnel Identifier of the GTPU service messages and the flow table item of pre-stored are carried out
The scope of matching for matching, is reduced, the speed of matching is improve.
It should be noted that when the GTPU service messages that the switching equipment is received carry GTPU extension information, being
It is no that the extension information of the GTPU service messages is matched into not shadow with the flow table item of pre-stored in the switching equipment
The final matching result of sound, only has influence on the speed of matching.
Further, the controller is sent to the switching equipment and indicates message tool according to the GTPU service messages
Body includes:
The controller carries out the basic head type matchings of GTPU according to the Tunnel Identifier that the GTPU service messages are carried.
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, according to the GTPU bases
Configuration in this type sends to the switching equipment and indicates message, and the instruction message indicates that the switching equipment sets up institute
The corresponding flow table item of GTPU service messages is stated, wherein, the flow table item includes GTPU type of messages and GTPU Tunnel Identifiers, action
Domain.
Specifically, the corresponding match information of GTPU service messages, the matching letter are included in the basic head types of the GTPU
Cease for setting up the corresponding flow table item of the GTPU service messages, and the matching domain in the flow table item is consistent.
Optionally, the controller is sent to the switching equipment and indicates that message is concrete according to the GTPU service messages
Including:
The controller carries out the basic head type matchings of GTPU according to the Tunnel Identifier that the GTPU service messages are carried.
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, the GTPU bases are checked
GTPU extensions in this type are identified whether effectively.
If the GTPU extension marks in the basic head type of the GTPU are effective, according to matching somebody with somebody in the basic head types of the GTPU
Putting and the configuration in GTPU extension header types, configured information being sent to the switching equipment, the configured information indicates the friendship
Exchange device sets up the corresponding flow table item of the GTPU service messages, wherein, the flow table item includes GTPU type of messages and GTPU
Tunnel Identifier, GTPU extension information, action domain.
By such scheme, switching equipment receives GTPU service messages, and the GTPU service messages carry the GTPU industry
The type and Tunnel Identifier of business message;The switching equipment is by the type and Tunnel Identifier and pre-stored of the GTPU service messages
Flow table item matched;If exist on the switching equipment matching with the type and Tunnel Identifier of the GTPU service messages
Flow table item, the GTPU service messages are forwarded to designated port according to the action domain in the flow table item.Controller is described
When there is no the flow table item matched with the type and Tunnel Identifier of the GTPU service messages on switching equipment, receive exchange and set
The GTPU service messages that preparation is sent, then according to the GTPU service messages, send to the switching equipment and indicate message,
The instruction message indicates that the switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the exchange sets
The standby action domain according in the flow table item forwards the GTPU service messages to designated port.The method is handed over by controller configuration
Exchange device establishes the corresponding flow table item of GTPU service messages in a certain tunnel, when switching equipment receives the GTPU industry in the tunnel
After business message, because there is the stream matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment
List item, it is possible to forward the GTPU service messages to designated port according to the action domain in the flow table item, realize GTPU
Transmission of the service message in OpenFlow networks.
The embodiment of the present invention further provides the device embodiment for realizing each method or step in said method embodiment.
Embodiment three,
The embodiment of the present invention provides a kind of switching equipment 500, concrete as shown in figure 5, the switching equipment 500 includes receiving
Unit 501, matching unit 502, the first transmitting element 503.
The receiving unit 501, for receiving tunnel user plane agreement GTPU service message, the GTPU service messages are taken
Type with the GTPU service messages and Tunnel Identifier.
Specifically, the type and Tunnel Identifier of the GTPU service messages of the carrying is used to carry out in OpenFlow networks
Flow table is matched, when the type of the GTPU service messages is matched, the Tunnel Identifier unique mark of the GTPU service messages
The opposite end endpoint of a tunnel of the GTPU service messages.
The matching unit 502, for by the flow table of the type and Tunnel Identifier of the GTPU service messages and pre-stored
Item is matched.
Specifically, the switching equipment is by the flow table item of the type and Tunnel Identifier of the GTPU service messages and pre-stored
Matched, matched in the matching domain of flow table item.
First transmitting element 503, if for there is the type with the GTPU service messages on the switching equipment
The flow table item matched with Tunnel Identifier, forwards the GTPU service messages to specifying according to the action domain in the flow table item
Port.
Specifically, match with the type and Tunnel Identifier of the GTPU service messages if existing on the switching equipment
There is GTPU type of messages and GTPU Tunnel Identifiers in flow table item with the type of the GTPU service messages in flow table item, then explanation
The flow table item consistent with Tunnel Identifier.The flow table item may be by the signaling message that controller receives and be pre-configured in institute
State on switching equipment, it is also possible to after receiving the GTPU service messages of switching equipment transmission, the configuration of message trigger controller
On switching equipment, the embodiment of the present invention is not especially limited to this.
It should be noted that existing OpenFlow agreements do not support GTPU agreements, two aspects are shown:First,
OpenFlow controllers cannot pass through flow table of the OpenFlow protocol configurations GTPU service message on OpenFlow switches;The
Two, even if OpenFlow controllers can be by OpenFlow protocol configurations GTPU service message on OpenFlow switches
Flow table, but but there are no the relevant entries of GTPU service messages in configuration information, so the stream in existing OpenFlow networks
There is no GTPU type of messages and GTPU Tunnel Identifier fields in list item.If existing on the switching equipment and the GTPU industry
The flow table item that business type of message and Tunnel Identifier match, illustrates to increase newly in the matching domain of the flow table item of OpenFlow networks
GTPU type of messages and GTPU Tunnel Identifier fields, the i.e. matching domain of flow table item can include into incoming interface, ethernet source address,
Ethernet destination address, ethernet type, VLAN ID, VLAN priority, IP source address, IP destination addresses,
IP agreement, IP ToS positions, TCP/UDP/SCDP target ports, TCP/UDP/SCDP source ports, GTPU type of messages, GTPU tunnels
Mark.
When the matching of flow table matching domain is carried out, generally there is two ways:First, layering and matching, you can first to carry out two layers
Matching, then carry out three layers of matching;Second, the once matching of cross-layer.But two kinds of matching ways are all using mask+accurately mate
Mode, i.e., cover unwanted field with mask, then carry out accurately mate, only illustrates switching equipment by institute in the embodiment of the present invention
The type and Tunnel Identifier point for stating GTPU service messages is matched with the flow table item of pre-stored, does not make concrete limit to matching way
It is fixed.
Because flow table item includes action domain, domain of taking action is used for the process action of switching equipment, concrete such as by forwarding data flow
To designated port, heavy label, discarding etc., so after in the matching domain of flow table item, the match is successful, can be according in the flow table item
Action domain forward the GTPU service messages to designated port.
Enter a level, if there is the flow table item comprising GTPU type of messages and GTPU Tunnel Identifier fields, explanation
GTPU basic head type is included in the basic header file of OpenFlow agreements necessarily, certainly, it is contemplated that in the basic head types of GTPU
May be comprising extension flag, so being likely in OpenFlow agreements comprising GTPU extension header types, the embodiment of the present invention pair
This is not especially limited.
Further, as shown in fig. 6, the switching equipment also includes setting up unit 504, the second transmitting element 505.
Second transmitting element 505, if for there is no the class with the GTPU service messages on the switching equipment
The flow table item that type and Tunnel Identifier match, sends the GTPU service messages to OpenFlow controllers, so that the control
Device processed is sent to the switching equipment and indicates message according to the GTPU service messages, indicates that the switching equipment is set up described
The corresponding flow table item of GTPU service messages.
Specifically, match with the type and Tunnel Identifier of the GTPU service messages if not existing on the switching equipment
Flow table item, send the GTPU service messages to OpenFlow controllers, the controller is according to whether can match
The basic head types of GTPU, it is determined whether the corresponding flow table item of the GTPU service messages is set up in switching equipment, if matching
The basic head types of GTPU, then be configured in switching equipment by controller and set up the corresponding flow table item of the GTPU service messages,
Switching equipment, just can be according to the action domain in the flow table item after the GTPU service messages that next time receives same Tunnel Identifier
Forward the GTPU service messages to designated port, realize transmission of the GTPU service messages in OpenFlow networks.
The receiving unit 501, is additionally operable to receive the instruction message that the controller sends.
It is described to set up unit 504, it is additionally operable to according to the instruction message, sets up the corresponding flow table of the GTPU service messages
, so that the switching equipment forwards the GTPU service messages to designated port according to the action domain in the flow table item.
It should be noted that in OpenFlow networks, the switching equipment 500 be specifically as follows a certain network element node or
Interface, such as base station, forwarding packet data gateway etc., above-described embodiment correspondence switching equipment 500 do not support that traditional routing is forwarded
Situation, i.e., described switching equipment may be pure OpenFlow switching equipment.
Optionally, it is contemplated that the switching equipment 500 may support traditional routing forwarding, if so switching equipment
There is no the flow table item matched with the type and Tunnel Identifier of the GTPU service messages on 500, the switching equipment 500 is also
The destination address that can be carried according to the routing table of pre-stored and the GTPU service messages, forwards the GTPU service messages,
Specifically as shown in fig. 7, the switching equipment also includes setting up unit 504, the second transmitting element 505, the 3rd transmitting element 506.
3rd transmitting element 506, if for there is no the class with the GTPU service messages on the switching equipment
The flow table item that type and mark match, according to the destination address that the routing table and the GTPU service messages of pre-stored are carried, turns
Send out GTPU service messages described.
Second transmitting element 505, for sending the GTPU service messages to OpenFlow controllers, so that institute
Controller is stated according to the GTPU service messages, is sent to the switching equipment and is indicated message, indicate that the switching equipment is set up
The corresponding flow table item of the GTPU service messages.
The receiving unit 501, is additionally operable to receive the instruction message that the controller sends.
It is described to set up unit 504, for according to the instruction message, setting up the corresponding flow table of the GTPU service messages
, so that the switching equipment forwards the next GTPU service messages for receiving extremely according to the action domain in the flow table item
Designated port.
It should be noted that the switching equipment 500 sends the GTPU service messages to OpenFlow controllers and institute
The destination address that switching equipment 500 is carried according to the routing table and the GTPU service messages of pre-stored is stated, the GTPU is forwarded
Service message does not have absolute sequencing, and the two is do not exist on the switching equipment is judged and the GTPU service messages
Type and the flow table item that matches of Tunnel Identifier after, two actions with coordination to be performed of switching equipment 500, this
Inventive embodiments are not especially limited to the execution sequencing of the two.
Further, it is contemplated that when switching equipment receives GTPU service messages and matched, according to matching range by big
Matching speed can be improved to little principle, the GTPU service messages can also carry GTPU extension information.
The matching unit 502, is additionally operable to by the type and Tunnel Identifier of the GTPU service messages and pre-stored
Before flow table item is matched, the extension information of the GTPU service messages is matched with the flow table item of pre-stored.
If there is the flow table item with the extension information match of the GTPU service messages on the switching equipment, described
The type and Tunnel Identifier of the GTPU service messages are matched with the flow table item of pre-stored with unit 502.
Specifically, the method for carrying out GTPU service message transmission by the switching equipment 500 can be found in one He of embodiment
The description of embodiment two, the embodiment of the present invention are repeated no more to this.
Embodiments provide a kind of switching equipment, the switching equipment include receiving unit, matching unit, first
Transmitting element.The receiving unit, for receiving tunnel user plane agreement GTPU service message, the GTPU service messages are carried
The type and Tunnel Identifier of the GTPU service messages;The matching unit, for by the type of the GTPU service messages and
Tunnel Identifier is matched with the flow table item of pre-stored;First transmitting element, if on the switching equipment exist with
The flow table item that the type and Tunnel Identifier of the GTPU service messages matches, according to the action domain forwarding institute in the flow table item
State GTPU service messages.Because the corresponding flow table item of GTPU service messages in a certain tunnel is established by controller configuration, work as friendship
After exchange device receives the GTPU service messages in the tunnel, on the switching equipment, there is the type with the GTPU service messages
The flow table item matched with Tunnel Identifier, it is possible to which the GTPU service messages are forwarded according to the action domain in the flow table item
To designated port, transmission of the GTPU service messages in OpenFlow networks is realized.
Example IV,
The embodiment of the present invention provides a kind of controller 800, concrete as shown in figure 8, the controller 800 includes receiving unit
801st, transmitting element 802.
The receiving unit 801, for receiving the GTPU service messages of switching equipment transmission, the GTPU service messages are taken
Type with the GTPU service messages and Tunnel Identifier.
Specifically, after switching equipment receives GTPU service messages, if do not exist on the switching equipment with it is described
The flow table item that the type and Tunnel Identifier of GTPU service messages matches, then switching equipment the GTPU service messages can be sent
To controller, the GTPU service messages that now the reception switching equipment of receiving unit 801 of controller 800 sends.
The transmitting element 802, for according to the GTPU service messages, sending to the switching equipment and indicating message,
The instruction message indicates that the switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the exchange sets
The standby action domain according in the flow table item forwards the GTPU service messages to designated port.
Specifically, controller is sent to the switching equipment and indicates that message can be institute according to the GTPU service messages
Stating controller carries out the basic head type matchings of GTPU according to the Tunnel Identifier that the GTPU service messages are carried;If the controller
The basic head types of the corresponding GTPU of the GTPU service messages are matched, according to the configuration in the basic head types of the GTPU to institute
State switching equipment and send instruction message, it is corresponding that the instruction message indicates that the switching equipment sets up the GTPU service messages
Flow table item, wherein, the flow table item includes GTPU type of messages and GTPU Tunnel Identifiers, action domain.
Certainly, if the GTPU extension marks in the basic head types of the GTPU are effective, match in the controller described
After the basic head types of the corresponding GTPU of GTPU service messages, can be expanded according to the configuration in the basic head types of the GTPU and GTPU
Configuration in exhibition head type, sends configured information to the switching equipment, and the configured information indicates that the switching equipment is set up
The corresponding flow table item of the GTPU service messages, wherein, the flow table item include GTPU type of messages and GTPU Tunnel Identifiers,
GTPU extension information, action domain.
The embodiment of the present invention according to the GTPU service messages, sends instruction to the switching equipment and disappears to the controller
Breath is not especially limited.
Further, the transmitting element 802 sends instruction to the switching equipment and disappears according to the GTPU service messages
Breath is specifically included:
The basic head type matchings of GTPU are carried out according to the Tunnel Identifier that the GTPU service messages are carried.
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, according to the GTPU bases
Configuration in this type sends to the switching equipment and indicates message, and the instruction message indicates that the switching equipment sets up institute
The corresponding flow table item of GTPU service messages is stated, wherein, the flow table item includes GTPU type of messages and GTPU Tunnel Identifiers, action
Domain.
Optionally, the transmitting element 802 is sent to the switching equipment and indicates message according to the GTPU service messages
Specifically include:
The basic head type matchings of GTPU are carried out according to the Tunnel Identifier that the GTPU service messages are carried.
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, the GTPU bases are checked
GTPU extensions in this type are identified whether effectively.
If the GTPU extension marks in the basic head type of the GTPU are effective, according to matching somebody with somebody in the basic head types of the GTPU
Putting and the configuration in GTPU extension header types, configured information being sent to the switching equipment, the configured information indicates the friendship
Exchange device sets up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according to the row in the flow table item
Dynamic domain forwards the GTPU service messages to designated port, wherein, the flow table item includes GTPU type of messages and GTPU tunnels
Mark, GTPU extension information, action domain.
Specifically, the method for carrying out GTPU service message transmission by the controller 800 can be found in embodiment one and reality
The description of example two is applied, the embodiment of the present invention is repeated no more to this.
The embodiment of the present invention provides a kind of controller, and the controller includes receiving unit and control unit.The reception
Unit, for receiving the GTPU service messages of switching equipment transmission, the GTPU service messages carry the GTPU service messages
Type and Tunnel Identifier;The transmitting element, for according to the GTPU service messages, sending to the switching equipment and indicating
Message, the instruction message indicate that the switching equipment sets up the corresponding flow table item of the GTPU service messages, so that described
Switching equipment forwards the GTPU service messages to designated port according to the action domain in the flow table item.Because the controller
According to the GTPU service messages after the GTPU service messages that the switching equipment sends are received, send out to the switching equipment
Instruction message, the instruction message is sent to indicate that the switching equipment sets up the corresponding flow table item of the GTPU service messages so that
After the switching equipment receives the GTPU service messages in the tunnel again because exist on the switching equipment with it is described
The flow table item that the type and Tunnel Identifier of GTPU service messages matches, it is possible to turned according to the action domain in the flow table item
Send out GTPU service messages described to designated port, realize transmission of the GTPU service messages in OpenFlow networks.
Embodiment five,
The embodiment of the present invention provides a kind of switching equipment 900, concrete as shown in figure 9, the switching equipment 900 includes receiving
Device 901, processor 902 and transmitter 903.
The receptor 901, for receiving tunnel user plane agreement GTPU service message, and by the GTPU service messages
The processor 902 is sent to, the GTPU service messages carry the type and Tunnel Identifier of the GTPU service messages.
The processor 902, for receiving the GTPU service messages of the transmission of the receptor 901, and will be described
The type and Tunnel Identifier of GTPU service messages is matched with the flow table item of pre-stored.
The transmitter 903, if for there is type and tunnel with the GTPU service messages on the switching equipment
The flow table item that mark matches, forwards the GTPU service messages to designated port according to the action domain in the flow table item.
Further, the transmitter 903, if being additionally operable to not exist on the switching equipment and the GTPU service messages
Type and the flow table item that matches of Tunnel Identifier, send the GTPU service messages to OpenFlow controllers, so that institute
Controller is stated according to the GTPU service messages, is sent to the switching equipment and is indicated message, indicate that the switching equipment is set up
The corresponding flow table item of the GTPU service messages.
The receptor 901, is additionally operable to receive the instruction message that the controller sends, and by the instruction message
It is sent to the processor 902.
The processor 902, is additionally operable to receive the instruction message of the transmission of the receptor 901, and according to the finger
Show message, set up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according in the flow table item
Action domain forwards the GTPU service messages to designated port.
Optionally, it is contemplated that the switching equipment 900 may support traditional routing forwarding, if so switching equipment
There is no the flow table item matched with the type and Tunnel Identifier of the GTPU service messages on 900, the switching equipment 900 is also
The destination address that can be carried according to the routing table of pre-stored and the GTPU service messages, forwards the GTPU service messages,
Specifically include:
The transmitter 903, if be additionally operable on the switching equipment not exist type with the GTPU service messages and
The flow table item that mark matches, according to the destination address that the routing table and the GTPU service messages of pre-stored are carried, forwards institute
State GTPU service messages.
The transmitter 903, is additionally operable to send the GTPU service messages to OpenFlow controllers, so that the control
Device processed is sent to the switching equipment and indicates message according to the GTPU service messages, indicates that the switching equipment is set up described
The corresponding flow table item of GTPU service messages.
The receptor 901, is additionally operable to receive the instruction message that the controller sends and by the instruction message
It is sent to the processor 902.
The processor 902, is additionally operable to receive the instruction message of the transmission of the receptor 901, and according to the finger
Show message, set up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according in the flow table item
Action domain forwards the GTPU service messages to designated port.
Further, it is contemplated that when switching equipment 900 receives GTPU service messages and matched, according to matching range by
Arrive greatly little principle and can improve matching speed, the GTPU service messages can also carry GTPU extension information.
The processor 902, is additionally operable to by the stream of the type and Tunnel Identifier of the GTPU service messages and pre-stored
Before list item is matched, the extension information of the GTPU service messages is matched with the flow table item of pre-stored.
If there is the flow table item with the extension information match of the GTPU service messages, the place on the switching equipment
The type and Tunnel Identifier of the GTPU service messages are matched with the flow table item of pre-stored by reason device 902 by described.
Specifically, the method for carrying out GTPU service message transmission by the switching equipment 900 can be found in one He of embodiment
The description of embodiment two, the embodiment of the present invention are repeated no more to this.
It should be noted that in OpenFlow networks, the switching equipment 900 be specifically as follows a certain network element node or
Interface, such as base station, forwarding packet data gateway etc., the embodiment of the present invention is not especially limited to this.
The embodiment of the present invention provides a kind of switching equipment, and the switching equipment includes receptor, processor, transmitter.Institute
Receptor is stated, for receiving tunnel user plane agreement GTPU service message, the GTPU service messages carry the GTPU business
The type and Tunnel Identifier of message;The processor, for by the type and Tunnel Identifier of the GTPU service messages with prestore
The flow table item of storage is matched;The transmitter, if for there is the class with the GTPU service messages on the switching equipment
The flow table item that type and Tunnel Identifier match, forwards the GTPU service messages according to the action domain in the flow table item.Because
The corresponding flow table item of GTPU service messages in a certain tunnel is established by controller configuration, when switching equipment receives the tunnel
After GTPU service messages, on the switching equipment, there is the stream matched with the type and Tunnel Identifier of the GTPU service messages
List item, it is possible to which the GTPU service messages are forwarded to designated port according to the action domain in the flow table item.
Embodiment six,
The embodiment of the present invention provides a kind of controller 1000, concrete as shown in Figure 10, and the controller 1000 includes receiving
Device 1001, transmitter 1002.
The receptor 1001, for receiving the GTPU service messages of switching equipment transmission, and by the GTPU business report
Text is sent to the transmitter 1002, and the GTPU service messages carry the type and Tunnel Identifier of the GTPU service messages.
The transmitter 1002, for receiving the GTPU service messages of the transmission of the receptor 1001, and according to described
GTPU service messages, send to the switching equipment and indicate message, and it is described that the instruction message indicates that the switching equipment is set up
The corresponding flow table item of GTPU service messages, so that the switching equipment is according to the action domain forwarding in the flow table item
GTPU service messages are to designated port.
Further, the transmitter 1002 sends instruction to the switching equipment and disappears according to the GTPU service messages
Breath is specifically included:
The basic head type matchings of GTPU are carried out according to the Tunnel Identifier that the GTPU service messages are carried.
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, according to the GTPU bases
Configuration in this type sends to the switching equipment and indicates message, and the instruction message indicates that the switching equipment sets up institute
The corresponding flow table item of GTPU service messages is stated, wherein, the flow table item includes GTPU type of messages and GTPU Tunnel Identifiers, action
Domain.
Optionally, the transmitter 1002 is sent to the switching equipment and indicates message according to the GTPU service messages
Specifically include:
The basic head type matchings of GTPU are carried out according to the Tunnel Identifier that the GTPU service messages are carried.
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, the GTPU bases are checked
GTPU extensions in this type are identified whether effectively.
If the GTPU extension marks in the basic head type of the GTPU are effective, according to matching somebody with somebody in the basic head types of the GTPU
Putting and the configuration in GTPU extension header types, configured information being sent to the switching equipment, the configured information indicates the friendship
Exchange device sets up the corresponding flow table item of the GTPU service messages, wherein, the flow table item includes GTPU type of messages and GTPU
Tunnel Identifier, GTPU extension information, action domain.
Specifically, the method for carrying out GTPU service message transmission by the controller 1000 can be found in embodiment one and reality
The description of example two is applied, the embodiment of the present invention is repeated no more to this.
The embodiment of the present invention provides a kind of controller, and the controller includes receptor and transmitter.The receptor, uses
In receiving the GTPU service messages that switching equipment sends, the GTPU service messages carry the type of the GTPU service messages and
Tunnel Identifier;The transmitter, it is for according to the GTPU service messages, sending to the switching equipment and indicating message, described
Indicate that message indicates that the switching equipment sets up the corresponding flow table item of the GTPU service messages.Because the controller is being received
After the GTPU service messages sent to the switching equipment, send to the switching equipment and indicate message, the instruction message refers to
Show that the switching equipment sets up the corresponding flow table item of the GTPU service messages so that switching equipment receives the tunnel again
After GTPU service messages, because exist on the switching equipment matching with the type and Tunnel Identifier of the GTPU service messages
Flow table item, it is possible to forward the GTPU service messages to designated port according to the action domain in the flow table item, realize
Transmission of the GTPU service messages in OpenFlow networks.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be with
Realized with hardware, or firmware is realized, or combinations thereof mode is realizing.When implemented in software, can be by above-mentioned functions
It is transmitted in being stored in computer-readable medium or as one or more instructions on computer-readable medium or code.Meter
Calculation machine computer-readable recording medium includes computer-readable storage medium and communication media, and wherein communication media includes being easy to from a place to another
Any medium of individual place transmission computer program.Storage medium can be any usable medium that computer can be accessed.With
As a example by this but it is not limited to:Computer-readable medium can include RAM, ROM, EEPROM, CD-ROM or other optical disc storages, disk
Storage medium or other magnetic storage apparatus or can be used in carrying or store the expectation with instruction or data structure form
Program code and can be by any other medium of computer access.In addition.Any connection can be appropriate become computer
Computer-readable recording medium.For example, if software is using coaxial cable, optical fiber cable, twisted-pair feeder, Digital Subscriber Line (DSL) or such as
The wireless technology of infrared ray, radio and microwave etc is from website, server or other remote source transmission, then coaxial electrical
The wireless technology of cable, optical fiber cable, twisted-pair feeder, DSL or such as infrared ray, wireless and microwave etc is included in affiliated medium
In fixing.As used in the present invention, disk (Disk) and dish (disc) are logical including compression laser disc (CD), laser disc, laser disc, numeral
With laser disc (DVD), floppy disk and Blu-ray Disc, the replicate data of the usual magnetic of which disk, and dish is then with laser come optical duplication
Data.Above combination above should also be as being included within the protection domain of computer-readable medium.
In a word, the preferred embodiment of technical solution of the present invention is the foregoing is only, is not intended to limit the present invention's
Protection domain.All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., should be included in
Within protection scope of the present invention.
Claims (9)
1. a kind of method of message transmissions, methods described are applied to the switching equipment based on OpenFlow agreements, it is characterised in that
Methods described includes:
Switching equipment receives tunnel user plane agreement GTPU service message, and the GTPU service messages carry the GTPU business report
The type and Tunnel Identifier of text;
The type and Tunnel Identifier of the GTPU service messages are matched by the switching equipment with the flow table item of pre-stored;
If there is the flow table item matched with the type and Tunnel Identifier of the GTPU service messages on the switching equipment, according to
Action domain in the flow table item forwards the GTPU service messages to designated port;
If there is no the flow table item matched with the type and Tunnel Identifier of the GTPU service messages, root on the switching equipment
According to the destination address that the routing table and the GTPU service messages of pre-stored are carried, the GTPU service messages are forwarded;
The GTPU service messages are sent to OpenFlow controllers, so that the controller is according to the GTPU business report
Text, sends to the switching equipment and indicates message, indicates that the switching equipment sets up the corresponding flow table of the GTPU service messages
;
Receive the instruction message that the controller sends;
According to the instruction message, set up the corresponding flow table item of the GTPU service messages so that the switching equipment according to
The GTPU service messages that the action domain forwarding next one in the flow table item is received are to designated port.
2. method according to claim 1, it is characterised in that the GTPU service messages also carry GTPU extension information;
The type and Tunnel Identifier of the GTPU service messages are matched with the flow table item of pre-stored in the switching equipment
Before, also include:
The extension information of the GTPU service messages is matched by the switching equipment with the flow table item of pre-stored;
If there is the flow table item with the extension information match of the GTPU service messages on the switching equipment, execution is described will
The step of type and Tunnel Identifier of the GTPU service messages are matched with the flow table item of pre-stored.
3. a kind of method of message transmissions, methods described are applied to the controller based on OpenFlow agreements, it is characterised in that institute
The method of stating includes:
Controller receives the GTPU service messages that switching equipment sends, and the GTPU service messages carry the GTPU service messages
Type and Tunnel Identifier;
Controller is sent to the switching equipment and indicates message according to the GTPU service messages, and the instruction message indicates institute
State switching equipment and set up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according in the flow table item
Action domain forward the GTPU service messages to designated port;
The controller is sent to the switching equipment and indicates that message is specifically included according to the GTPU service messages:The control
Device processed carries out the basic head type matchings of GTPU according to the Tunnel Identifier that the GTPU service messages are carried;If the controller matching
To the basic head types of the corresponding GTPU of the GTPU service messages, the GTPU extension marks in the basic head types of the GTPU are checked
It is whether effective;If the GTPU extension marks in the basic head type of the GTPU are effective, according in the basic head types of the GTPU
Configuration in configuration and GTPU extension header types, sends configured information to the switching equipment, and the configured information indicates described
Switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according in the flow table item
Action domain forwards the GTPU service messages to designated port, wherein, the flow table item includes GTPU type of messages and GTPU tunnels
Road mark, GTPU extension information, action domain.
4. a kind of switching equipment, the switching equipment are based on OpenFlow agreements, it is characterised in that the switching equipment includes:
Receiving unit, matching unit, set up unit, the first transmitting element, the second transmitting element and the 3rd transmitting element;
The receiving unit, for receiving tunnel user plane agreement GTPU service message, the GTPU service messages carry described
The type and Tunnel Identifier of GTPU service messages;
A matching unit, for the flow table item of the type and Tunnel Identifier of the GTPU service messages and pre-stored is carried out
Match somebody with somebody;
First transmitting element, if for there is type and tunnel mark with the GTPU service messages on the switching equipment
The flow table item of sensible matching, forwards the GTPU service messages to designated port according to the action domain in the flow table item;
3rd transmitting element, if for there is no type and tunnel with the GTPU service messages on the switching equipment
The flow table item that mark matches, according to the destination address that the routing table and the GTPU service messages of pre-stored are carried, forwards institute
State GTPU service messages;
Second transmitting element, for sending the GTPU service messages to OpenFlow controllers, so that the control
Device is sent to the switching equipment and indicates message according to the GTPU service messages, indicates that the switching equipment is set up described
The corresponding flow table item of GTPU service messages;
The receiving unit, is additionally operable to receive the instruction message that the controller sends;
It is described to set up unit, for according to the instruction message, setting up the corresponding flow table item of the GTPU service messages, so that
The switching equipment is according to the next GTPU service messages for receiving of action domain forwarding in the flow table item to designated port.
5. switching equipment according to claim 4, it is characterised in that the GTPU service messages also carry GTPU extension letters
Breath;
The matching unit, is additionally operable to entering the type and Tunnel Identifier of the GTPU service messages with the flow table item of pre-stored
Before row matching, the extension information of the GTPU service messages is matched with the flow table item of pre-stored;
If there is the flow table item with the extension information match of the GTPU service messages, the matching list on the switching equipment
The type and Tunnel Identifier of the GTPU service messages are matched by unit with the flow table item of pre-stored.
6. a kind of controller, the controller are based on OpenFlow agreements, it is characterised in that the controller includes:Receive single
Unit, transmitting element;
The receiving unit, for receiving the GTPU service messages of switching equipment transmission, the GTPU service messages carry described
The type and Tunnel Identifier of GTPU service messages;
The transmitting element, for according to the GTPU service messages, sending to the switching equipment and indicating message, the instruction
Message indicates that the switching equipment sets up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according to institute
State the action domain in flow table item the GTPU service messages are forwarded to designated port;
The transmitting element is sent to the switching equipment and indicates that message is specifically included according to the GTPU service messages:
The basic head type matchings of GTPU are carried out according to the Tunnel Identifier that the GTPU service messages are carried;
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, the basic heads of the GTPU are checked
GTPU extensions in type are identified whether effectively;
If the GTPU extension marks in the basic head type of the GTPU are effective, according to the configuration in the basic head types of the GTPU and
Configuration in GTPU extension header types, sends configured information to the switching equipment, and the configured information indicates that the exchange sets
It is standby to set up the corresponding flow table item of the GTPU service messages, so that the switching equipment is according to the action domain in the flow table item
The GTPU service messages are forwarded to designated port, wherein, the flow table item include GTPU type of messages and GTPU Tunnel Identifiers,
GTPU extension information, action domain.
7. a kind of switching equipment, the switching equipment are based on OpenFlow agreements, it is characterised in that the switching equipment includes:
Receptor, processor and transmitter;
The receptor, for receiving tunnel user plane agreement GTPU service message, and the GTPU service messages is sent to
The processor, the GTPU service messages carry the type and Tunnel Identifier of the GTPU service messages;
The processor, for receiving the GTPU service messages that the receptor sends, and by the GTPU service messages
Type and Tunnel Identifier matched with the flow table item of pre-stored;
The transmitter, if for there is type and Tunnel Identifier phase with the GTPU service messages on the switching equipment
The flow table item matched somebody with somebody, forwards the GTPU service messages to designated port according to the action domain in the flow table item;
The transmitter, if being additionally operable on the switching equipment type and Tunnel Identifier for not having with the GTPU service messages
The flow table item for matching, according to the destination address that the routing table and the GTPU service messages of pre-stored are carried, forwarding is described
GTPU service messages;
The transmitter, is additionally operable to send the GTPU service messages to OpenFlow controllers, so that the controller root
According to the GTPU service messages, send to the switching equipment and indicate message, indicate that the switching equipment sets up the GTPU industry
The corresponding flow table item of business message;
The receptor, is additionally operable to receive the instruction message that the controller sends, and the instruction message is sent to
The processor;
The processor, for receiving the instruction message that the receptor sends, and according to the instruction message, sets up institute
The corresponding flow table item of GTPU service messages is stated, so that the switching equipment is next according to the action domain forwarding in the flow table item
The individual GTPU service messages for receiving are to designated port.
8. switching equipment according to claim 7, it is characterised in that the GTPU service messages also carry GTPU extension letters
Breath;
The processor, is additionally operable to carrying out the type and Tunnel Identifier of the GTPU service messages and the flow table item of pre-stored
Before matching, the extension information of the GTPU service messages is matched with the flow table item of pre-stored;
If there is the flow table item with the extension information match of the GTPU service messages, the processor on the switching equipment
The type and Tunnel Identifier of the GTPU service messages are matched with the flow table item of pre-stored by described.
9. a kind of controller, the controller are based on OpenFlow agreements, it is characterised in that the controller includes:Receptor,
Transmitter;
The receptor, for receiving the GTPU service messages of switching equipment transmission, and the GTPU service messages is sent to
The transmitter, the GTPU service messages carry the type and Tunnel Identifier of the GTPU service messages;
The transmitter, for receiving the GTPU service messages that the receptor sends, and according to the GTPU service messages, to
The switching equipment sends and indicates message, and the instruction message indicates that the switching equipment sets up the GTPU service messages correspondence
Flow table item so that the switching equipment forwards the GTPU service messages to specifying according to the action domain in the flow table item
Port;
The transmitter is sent to the switching equipment and indicates that message is specifically included according to the GTPU service messages:
The basic head type matchings of GTPU are carried out according to the Tunnel Identifier that the GTPU service messages are carried;
If the controller matches the basic head types of the corresponding GTPU of the GTPU service messages, the basic heads of the GTPU are checked
GTPU extensions in type are identified whether effectively;
If the GTPU extension marks in the basic head type of the GTPU are effective, according to the configuration in the basic head types of the GTPU and
Configuration in GTPU extension header types, sends configured information to the switching equipment, and the configured information indicates that the exchange sets
It is standby to set up the corresponding flow table item of the GTPU service messages, wherein, the flow table item includes GTPU type of messages and GTPU tunnels
Mark, GTPU extension information, action domain.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2013/073379 WO2014153758A1 (en) | 2013-03-28 | 2013-03-28 | Message transmission method, switching device and controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104247363A CN104247363A (en) | 2014-12-24 |
CN104247363B true CN104247363B (en) | 2017-03-29 |
Family
ID=51622394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201380000345.0A Active CN104247363B (en) | 2013-03-28 | 2013-03-28 | A kind of method of message transmissions and switching equipment and controller |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104247363B (en) |
WO (1) | WO2014153758A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107404440B (en) * | 2016-05-19 | 2021-01-29 | 华为技术有限公司 | Forwarding table item sending method, message forwarding method and device |
CN108039968B (en) * | 2017-12-12 | 2021-02-23 | 深圳市泰信通信息技术有限公司 | Network optimization method, device and computer readable storage medium |
CN115296995B (en) * | 2022-06-30 | 2024-03-12 | 北京达佳互联信息技术有限公司 | Switch configuration method, device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1466340A (en) * | 2002-06-24 | 2004-01-07 | �人��������������ι�˾ | Method for forwarding data by strategic stream mode and data forwarding equipment |
CN101702665A (en) * | 2009-11-13 | 2010-05-05 | 中兴通讯股份有限公司 | Method of Ethernet service accessing bearing tunnel, operator edge device and system |
CN101800781A (en) * | 2009-02-11 | 2010-08-11 | 中国科学院计算机网络信息中心 | Tunnel transition method and system for passing through NAT |
WO2013030693A1 (en) * | 2011-08-29 | 2013-03-07 | Telefonaktiebolaget L M Ericsson (Publ) | Implementing a 3g packet core in a cloud computer with openflow data and control planes |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8873398B2 (en) * | 2011-05-23 | 2014-10-28 | Telefonaktiebolaget L M Ericsson (Publ) | Implementing EPC in a cloud computer with openflow data plane |
-
2013
- 2013-03-28 CN CN201380000345.0A patent/CN104247363B/en active Active
- 2013-03-28 WO PCT/CN2013/073379 patent/WO2014153758A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1466340A (en) * | 2002-06-24 | 2004-01-07 | �人��������������ι�˾ | Method for forwarding data by strategic stream mode and data forwarding equipment |
CN101800781A (en) * | 2009-02-11 | 2010-08-11 | 中国科学院计算机网络信息中心 | Tunnel transition method and system for passing through NAT |
CN101702665A (en) * | 2009-11-13 | 2010-05-05 | 中兴通讯股份有限公司 | Method of Ethernet service accessing bearing tunnel, operator edge device and system |
WO2013030693A1 (en) * | 2011-08-29 | 2013-03-07 | Telefonaktiebolaget L M Ericsson (Publ) | Implementing a 3g packet core in a cloud computer with openflow data and control planes |
Also Published As
Publication number | Publication date |
---|---|
CN104247363A (en) | 2014-12-24 |
WO2014153758A1 (en) | 2014-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105453523B (en) | Method and apparatus for ensuring the seamless flowing of flow | |
CN104702479B (en) | The method and apparatus that tunnel is established in SDN network | |
CN104380658B (en) | Flow classifier, business route flip-flop, the method and system of Message processing | |
CN104243270B (en) | A kind of method and apparatus for establishing tunnel | |
WO2019057199A1 (en) | Method for forwarding messages and network device | |
EP2843906B1 (en) | Method, apparatus, and system for data transmission | |
CN105634956B (en) | A kind of message forwarding method, device and system | |
CN105591974B (en) | Message processing method, apparatus and system | |
CN107040469A (en) | The network equipment and method | |
CN107040462A (en) | Method for routing and intermediate router | |
US7995499B2 (en) | Minimizing spanning-tree protocol event processing and flooding in distribution networks | |
CN106664252A (en) | Method, device and system for realizing service link | |
CN109039703A (en) | The method and system of business scenario network rapid build under a kind of complex network simulated environment | |
US9900238B2 (en) | Overlay network-based original packet flow mapping apparatus and method therefor | |
CN104488235B (en) | Message forwarding method and the network equipment | |
CN104394083B (en) | Method, the method and its device and system of message forwarding of forwarding-table item processing | |
CN105450525B (en) | The method and apparatus used for route exchange device | |
CN104125128A (en) | Method for supporting VLAN (virtual local area network) by aid of Linux soft bridge | |
CN106789748A (en) | A kind of distributed couple in multiplexer DAM stacking network system and its apparatus | |
CN105591963B (en) | Message forwarding method and equipment in SDN | |
CN106209689A (en) | From the multicast data packet forwarding method and apparatus of VXLAN to VLAN | |
US9553764B2 (en) | Migration of guest bridge | |
CN104247363B (en) | A kind of method of message transmissions and switching equipment and controller | |
CN105933235B (en) | Data communications method and device | |
CN105637806B (en) | Network topology determines method and apparatus, centralized network status information storage equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |