CN104601467A - Method and device for sending messages - Google Patents

Method and device for sending messages Download PDF

Info

Publication number
CN104601467A
CN104601467A CN201410855294.6A CN201410855294A CN104601467A CN 104601467 A CN104601467 A CN 104601467A CN 201410855294 A CN201410855294 A CN 201410855294A CN 104601467 A CN104601467 A CN 104601467A
Authority
CN
China
Prior art keywords
message
business stream
processing policy
service identification
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410855294.6A
Other languages
Chinese (zh)
Other versions
CN104601467B (en
Inventor
申思
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410855294.6A priority Critical patent/CN104601467B/en
Publication of CN104601467A publication Critical patent/CN104601467A/en
Priority to PCT/CN2015/096687 priority patent/WO2016107379A1/en
Application granted granted Critical
Publication of CN104601467B publication Critical patent/CN104601467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a device for sending messages, and relates to the technical field of communication. The method includes the steps of: receiving a message sent by a first host where a first virtual machine is located, wherein the message carries the business identifier of a business flow, and the business identifier of the business flow is set by the first host according to the target address of the business flow and packaged into the message; obtaining the treatment strategy of the message according to the business identifier of the business flow; determining whether to send the message according to the treatment strategy; if the message is to be sent, sending the message to a second virtual machine according to the treatment strategy. The device includes a first receiving module, a first obtaining module, a determining module and a first sending module. According to the method and the device, as the business identifier of the business flow is carried in the message, the message can be strategically controlled according to the business identifier of the business flow.

Description

A kind of method and apparatus sending message
Technical field
The present invention relates to communication technical field, particularly a kind of method and apparatus sending message.
Background technology
Along with the fast development of virtual machine technology and cloud treatment technology, each main frame during cloud stores can dispose multiple stage virtual machine, and be deployed between two virtual machines on different main frame and can carry out service interaction.When carrying out service interaction between the first virtual machine be deployed on the first main frame and the second virtual machine be deployed on the second main frame, the first virtual machine can send message, to realize the communication between the first virtual machine and the second virtual machine to the second virtual machine.
When the first virtual machine sends message to the second virtual machine, first virtual machine sends http (Hypertext transfer protocol to first main frame at the first virtual machine place, HTTP) request, this http request carries the address of the second virtual machine; This http request is encapsulated as UDP (User DatagramProtocol, User Datagram Protocol) message by the first main frame, and this UDP message is sent to switch; Switch is according to the forward-path of this UDP message of the address computation of the second virtual machine, and the forward-path according to this UDP message sends this message to the second virtual machine.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Because switch cannot the business of perception UDP message, bandwidth monitor and path clustering cannot be carried out to this UDP message.
Summary of the invention
In order to make the problem of solution prior art, the invention provides a kind of method and apparatus sending message.Technical scheme is as follows:
First aspect, the invention provides a kind of method sending message, described method comprises:
The message that the first main frame receiving the first virtual machine place sends, described message carries the service identification of Business Stream, and the service identification of described Business Stream is that described first main frame arranges according to the destination address of described Business Stream and is encapsulated in described message;
According to the service identification of described Business Stream, obtain the processing policy of described message;
According to described processing policy, determine whether to send described message;
If send described message, then according to described processing policy, described message is sent to the second virtual machine.
In conjunction with first aspect, in the first possible implementation of first aspect, the described service identification according to described Business Stream, obtains the processing policy of described message, comprising:
According to the service identification of described Business Stream, from the corresponding relation of service identification and processing policy, obtain the processing policy of described message.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, described according to described processing policy, determine whether to send described message, comprising:
If described processing policy is used for abandoning described message, then determine not send described message;
If described processing policy is used for described message execution other operations except abandoning, then determining to send described message.
In conjunction with first aspect, in the third possible implementation of first aspect, described according to described processing policy, described message is sent to the second virtual machine, comprising:
According to the mark of the first virtual machine and the mark of the second virtual machine, determine at least one forward-path sending described message;
According to described processing policy, from described at least one forward-path, select forward-path;
According to described processing policy, obtain the bandwidth of the forward-path of described selection;
According to the bandwidth of described acquisition, the amount of bandwidth of the forward-path of described selection is set;
According to the forward-path after described setting, described message is sent to described second virtual machine.
Second aspect, the invention provides a kind of method sending message, described method comprises:
Receive the Business Stream that the first virtual machine sends, described Business Stream carries the destination address of described Business Stream;
According to the destination address of described Business Stream, obtain the service identification of described Business Stream;
The service identification of described Business Stream is encapsulated in message, described message is sent to switch, described switch is made to obtain the processing policy of described message according to the service identification of described Business Stream, and determine whether to send described message according to described processing policy, if send described message, according to described processing policy, described message is sent to the second virtual machine.
In conjunction with second aspect, in the first possible implementation of second aspect, the described destination address according to described Business Stream, obtains the service identification of described Business Stream, comprising:
According to the destination address of described Business Stream, from the corresponding relation of destination address and service identification, obtain the service identification of described Business Stream.
The third aspect, the invention provides a kind of device sending message, described device comprises:
First receiver module, for the message that the first main frame receiving the first virtual machine place sends, described message carries the service identification of Business Stream, and the service identification of described Business Stream is that described first main frame arranges according to the destination address of described Business Stream and is encapsulated in described message;
First acquisition module, for the service identification according to described Business Stream, obtains the processing policy of described message;
Determination module, for according to described processing policy, determines whether to send described message;
First sending module, if for sending described message, then according to described processing policy, sends to the second virtual machine by described message.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described first acquisition module, for the service identification according to described Business Stream, obtains the processing policy of described message from the corresponding relation of service identification and processing policy.
In conjunction with the third aspect, in the implementation that third aspect the second is possible, described determination module, comprising:
First determining unit, if be used for abandoning described message for described processing policy, then determines not send described message;
Second determining unit, if be used for described message execution other operations except abandoning, then determining to send described message for described processing policy.
In conjunction with the third aspect, in the third possible implementation of the third aspect, the first sending module, comprising:
3rd determining unit, for according to the mark of the first virtual machine and the mark of the second virtual machine, determines at least one forward-path sending described message;
Selected cell, for according to described processing policy, selects forward-path from described at least one forward-path;
Acquiring unit, for according to described processing policy, obtains the bandwidth of the forward-path of described selection;
Setting unit, for the bandwidth according to described acquisition, arranges the amount of bandwidth of the forward-path of described selection;
Transmitting element, for according to the forward-path after described setting, sends to described second virtual machine by described message.
Fourth aspect, the invention provides a kind of device sending message, described device comprises:
Second receiver module, for receiving the Business Stream that the first virtual machine sends, described Business Stream carries the destination address of described Business Stream;
Second acquisition module, for the destination address according to described Business Stream, obtains the service identification of described Business Stream;
Second sending module, for the service identification of described Business Stream is encapsulated in message, described message is sent to switch, described switch is made to obtain the processing policy of described message according to the service identification of described Business Stream, and determine whether to send described message according to described processing policy, if send described message, according to described processing policy, described message is sent to the second virtual machine.
In conjunction with fourth aspect, in the first possible implementation of fourth aspect, described second acquisition module, for the destination address according to described Business Stream, obtains the service identification of described Business Stream from the corresponding relation of destination address and service identification.
5th aspect, the invention provides a kind of device sending message, described device comprises: first memory and first processor, for performing the method for transmission message as described in relation to the first aspect.
6th aspect, the invention provides a kind of device sending message, described device comprises: second memory and the second processor, for performing the method for the transmission message as described in second aspect.
In the present invention, the message that the first main frame receiving the first virtual machine place sends, this message carries the service identification of Business Stream, and the service identification of Business Stream is that the first main frame arranges according to the destination address of Business Stream and is encapsulated in message; According to the service identification of Business Stream, obtain the processing policy of message; According to processing policy, determine whether to send message; If transmission message, then according to processing policy, message is sent to the second virtual machine.Owing to carrying the service identification of Business Stream in message, thus policy control can be carried out according to the service identification of Business Stream to message.
Accompanying drawing explanation
Fig. 1-1 is a kind of method flow diagram sending message that the embodiment of the present invention 1 provides;
Fig. 1-2 is the method flow diagram of the another kind transmission message that the embodiment of the present invention 1 provides;
Fig. 2 is a kind of method flow diagram sending message that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of apparatus structure schematic diagram sending message that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of apparatus structure schematic diagram sending message that the embodiment of the present invention 4 provides;
Fig. 5 is a kind of apparatus structure schematic diagram sending message that the embodiment of the present invention 5 provides;
Fig. 6 is a kind of apparatus structure schematic diagram sending message that the embodiment of the present invention 6 provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
Embodiments provide a kind of method sending message, see Fig. 1-1, wherein, the method comprises:
Step 101a: the message that the first main frame receiving the first virtual machine place sends, this message carries the service identification of Business Stream, and the service identification of Business Stream is that the first main frame arranges according to the destination address of Business Stream and is encapsulated in message;
Step 102a: according to the service identification of Business Stream, obtains the processing policy of message;
Step 103a: according to processing policy, determines whether to send message;
Step 104a: if send message, then according to processing policy, message is sent to the second virtual machine.
Embodiments provide a kind of method sending message, see Fig. 1-2, wherein, the method comprises:
Step 101b: receive the Business Stream that the first virtual machine sends, this Business Stream carries the destination address of Business Stream;
Step 102b: according to the destination address of Business Stream, obtains the service identification of Business Stream;
Step 103b: the service identification of Business Stream is encapsulated in message, message is sent to switch, switch is made to obtain the processing policy of message according to the service identification of Business Stream, and determine whether to send message according to processing policy, if transmission message, according to processing policy, message is sent to the second virtual machine.
In the present invention, the message that the first main frame receiving the first virtual machine place sends, this message carries the service identification of Business Stream, and the service identification of Business Stream is that the first main frame arranges according to the destination address of Business Stream and is encapsulated in message; According to the service identification of Business Stream, obtain the processing policy of message; According to processing policy, determine whether to send message; If transmission message, then according to processing policy, message is sent to the second virtual machine.Owing to carrying the service identification of Business Stream in message, thus policy control can be carried out according to the service identification of Business Stream to message.
Embodiment 2
Embodiments provide a kind of method sending message, see Fig. 2, wherein, the method comprises:
Step 201: the first main frame receives the Business Stream that the first virtual machine sends, and this Business Stream carries the destination address of Business Stream;
First deploying virtual machine is on the first main frame, and the second deploying virtual machine is on the second main frame; When the first virtual machine sends Business Stream to the second virtual machine, first first virtual machine sends Business Stream to first main frame at the first virtual machine place, this Business Stream at least carries the destination address of Business Stream, can also carry the mark of the first virtual machine and the mark of the second virtual machine; First main frame receives the Business Stream that the first virtual machine sends, and performs step 202.
Destination address can for the purpose of IP (Internet Protocol, the agreement interconnected between network) address, destination interface or object MAC (Media Access Control, medium access control) address etc.The mark of the first virtual machine can be the numbering etc. of the IP address of the first virtual machine, the title of the first virtual machine or the first virtual machine; Equally, the mark of the second virtual machine can be the numbering etc. of the IP address of the second virtual machine, the title of the second virtual machine or the second virtual machine.
Such as, port 80 for the purpose of destination address, first virtual machine be designated 192.231.31.252, the 192.231.31.251 that is designated of the second virtual machine is that example is described, first virtual machine sends Business Stream to the first main frame, this Business Stream carries destination interface 80, the mark 192.231.31.252 of the first virtual machine and the mark 192.231.31.251 of the second virtual machine.First main frame receives this Business Stream that the first virtual machine sends.
Step 202: the first main frame, according to the destination address of Business Stream, obtains the service identification of Business Stream;
Before this step, user is to the first controller input destination address and service identification; First controller receives destination address and the service identification of user's input, and the destination address input user and service identification are stored in the corresponding relation of destination address and service identification.
First controller is to the corresponding relation of the first main frame sending destination location and service identification, and the first main frame receives the corresponding relation of destination address that the first controller sends and service identification, and the corresponding relation of storage purpose address and service identification.
Accordingly, step 202 can be: the first main frame, according to the destination address of Business Stream, obtains the service identification of Business Stream from the corresponding relation of destination address and service identification.
First controller can be SDN (Software Defined Network, software defined network) controller or VxLAN (Virtual eXtension xLAN, virtual extended VLAN agreement) controller etc.
Such as, user to the first controller input destination address 80 and service identification 1025, destination address 443 and service identification 2049, destination address 5000 and service identification 4097 and destination address 5001 and service identification 4098; First controller receives destination address 80 and the service identification 1025 of user's input, destination address 443 and service identification 2049, destination address 5000 and service identification 4097 and destination address 5001 and service identification 4098, the destination address input user and service identification are stored in as in following table 1:
Table 1
Destination address Service identification
80 1025
443 2049
5000 4097
5001 4098
Such as, the first main frame is according to the destination address 80 of Business Stream, and the service identification obtaining Business Stream from the destination address of table 1 storage and the corresponding relation of service identification is 1025.
Wherein, service identification field scope is 65535, a main frame can be disposed 50 virtual machines.The service identification field scope corresponding for each virtual machine is 1-1024, and also namely every platform virtual machine can define at most 1024 service identifications, for carrying out policy control to different business.
Step 203: the service identification of Business Stream is encapsulated in message by the first main frame, sends message to switch;
Wherein, message comprises internal layer message and outer message, and in this step, the service identification of Business Stream is encapsulated in outer message by the first main frame.
Wherein, also comprise source MAC, object MAC in outer message, VLAN, source IP, object IP, VxLAN port, VxLAN are first-class, first main frame obtains source MAC, the object MAC of this Business Stream, VLAN, source IP, object IP, VxLAN port, VxLAN head, is encapsulated in outer message by the service identification of source MAC, the object MAC of this Business Stream, VLAN, source IP, object IP, VxLAN port, VxLAN head and message simultaneously.
Wherein, internal layer message comprises source MAC, object MAC and Business Stream, and the first main frame obtains source MAC, object MAC and the Business Stream of this Business Stream, source MAC, the object MAC of this Business Stream and Business Stream is encapsulated in internal layer message.
Step 204: switch receives the message that the first main frame sends, and this message carries the service identification of this Business Stream;
Switch receives the message that the first main frame sends, and the outer message of resolving this message obtains the service identification of this Business Stream, performs step 205.
It should be noted that, switch can only the outer message of analytic message, can not the internal layer message of analytic message.
Step 205: switch, according to the service identification of Business Stream, obtains the processing policy of this message;
Before this step, user is to second controller incoming traffic mark and processing policy; Second controller receives service identification and the processing policy of user's input, and the service identification input user and processing policy are stored in the corresponding relation of service identification and processing policy.
Second controller sends the corresponding relation of service identification and processing policy to switch, and switch receives the service identification of second controller transmission and the corresponding relation of processing policy, and the corresponding relation of storage service mark and processing policy.
Accordingly, step 205 can be: switch, according to the service identification of Business Stream, obtains the processing policy of this message from the corresponding relation of service identification and processing policy.
Processing policy can be arbitrary strategy processed message, comprises for the processing policy of dropping packets and the processing policy for performing other operations except abandoning to message; Such as processing policy can be drop policy, forwarding strategy, redirected strategy or the path clustering strategy etc. based on bandwidth.
Second controller can be SDN controller or OF (openflow, open flows table agreement) controller.
Such as, user is to second controller incoming traffic mark 1025 and processing policy: normally forward, service identification 2049 and processing policy: abandon, service identification 4097 and processing policy: be redirected to low weight path, service identification 4098 and processing policy: the amount of bandwidth arranging forward-path is 100M etc.; Second controller receives service identification 1025 and the processing policy of user's input: normally forward, service identification 2049 and processing policy: abandon, service identification 4097 and processing policy: be redirected to low weight path, service identification 4098 and processing policy: the amount of bandwidth arranging forward-path is 100M etc., the service identification input user and processing policy are stored in as in following table 2:
Table 2
Service identification Processing policy
1025 Normal forwarding
2049 Abandon
4097 Be redirected to low weight path
4098 The amount of bandwidth arranging forward-path is 100M
Such as, switch, according to service identification 1025, obtains the forwarding strategy of message for normal forwarding the service identification stored and the corresponding relation of processing policy from table 2.
Step 206: switch, according to the processing policy of this message, determines whether to send this message, if send this message, performs step 207; If do not send this message, perform step 212;
Particularly, if the processing policy of this message is used for abandoning this message, then determine not send this message; If the processing policy of this message is used for message execution other operations except abandoning, then determining to send this message.
Such as, the processing policy of this message can be drop policy, forwarding strategy, redirected strategy or the path clustering strategy etc. based on bandwidth.If then processing policy is drop policy, then determine not send this message; If processing policy is forwarding strategy, is redirected strategy or the path clustering strategy based on bandwidth, then determine to send this message.
Step 207: if send this message, then switch is according to the mark of the mark of the first virtual machine and the second virtual machine, determines at least one forward-path sending this message;
Before this step, second controller obtains the topological structure of the physical network at switch place, send the topological structure of physical network to switch, switch receives the topological structure of the physical network that second controller sends, and stores the topological structure of physical network.
Accordingly, step 207 can be: if send this message, then switch is according to the mark of the first virtual machine, the mark of the second virtual machine and the topological structure of physical network, determines at least one forward-path sending this message.
According to the mark of the first virtual machine, the mark of the second virtual machine and the topological structure of physical network, at least one forward-path determining sending this message is prior art, no longer describes in detail at this.
Further, switch, according to the ID of trace route path of the every bar forward-path at least one forward-path, obtains the path weight value of every bar forward-path.
Before this step, user inputs weight rule to second controller, and this weight rule can be arranged for the quantity of the Delivery Function comprised according to forward-path.Second controller receives the weight rule of user's input, and the path weight value of the every bar forward-path in physical network is generated according to weight rule, the ID of trace route path of every bar forward-path and path weight value corresponding to every bar forward-path are stored in the corresponding relation of ID of trace route path and path weight value.
Second controller is to switch transmit path mark and the corresponding relation of path weight value; Switch receives the ID of trace route path of second controller transmission and the corresponding relation of path weight value, and the corresponding relation of store path mark and path weight value.
Accordingly, according to the ID of trace route path of the every bar forward-path at least one forward-path, the path weight value of every bar forward-path is obtained, Ke Yiwei:
According to the ID of trace route path of the every bar forward-path at least one forward-path, from the corresponding relation of ID of trace route path and path weight value, obtain the path weight value of every bar forward-path.
Such as, the weight rule that user inputs to second controller is: the path weight value comprising the forward-path of Delivery Function between 1-5 is 500, the path weight value comprising the forward-path of Delivery Function between 6-10 is 400, the path weight value comprising the forward-path of Delivery Function between 11-15 is 300, the path weight value comprising the forward-path of Delivery Function between 16-20 is 200, and the path weight value comprising the forward-path that Delivery Function is greater than is 100.Second controller receives the weight rule of user's input, and be 100 according to the path weight value of weight rule generation pass 1 correspondence, the path weight value of path 2 correspondence is 500, and the path weight value of path 3 correspondence is 200, and the path weight value of path 4 correspondence is 300 etc.; The path weight value of path 1, path 2, path 3 and path 4 and correspondence thereof is stored in as in following table 3 by second controller:
Table 3
ID of trace route path Path weight value
1 100
2 500
3 200
4 300
Such as, switch, according to the mark of the mark of the first virtual machine and the second virtual machine, determines that 3 paths for sending this message are respectively path 1, path 2 and path 3; Further, according to the ID of trace route path in path 1, path 2 and path 3, from table 3, the path weight value of acquisition approach 1, path 2 and path 3 correspondence is respectively 100,500 and 200.
Step 208: switch, according to the processing policy of this message, selects forward-path from least one forward-path;
If the processing policy of this message is forwarding strategy or the path clustering strategy based on bandwidth, then Stochastic choice forward-path from least one forward-path.
If the processing policy of this message is redirected, then the redirected condition that the processing policy obtaining this message comprises, selects a forward-path meeting the condition of being redirected from least one forward-path.Such as, the condition be redirected is select the forward-path of highest weighting, then according to the path weight value of every bar forward-path, from least one forward-path, select a forward-path that path weight value is the highest; If the condition be redirected is select the forward-path of lowest weightings, then according to the path weight value of every bar forward-path, from least one forward-path, select the forward-path that a path weight value is minimum.
Such as, the processing policy of message is be redirected on the forward-path of lowest weightings, then the forward-path that selection path weight value is minimum from path 1, path 2 and path 3 is path 1.
Step 209: switch, according to the processing policy of this message, obtains the bandwidth of the forward-path selected;
The amount of bandwidth of often kind of corresponding forward-path of processing policy, according to the processing policy of this message, obtains the amount of bandwidth of the forward-path selected.
Wherein, the amount of bandwidth of forwarding strategy and redirected strategy correspondence is the amount of bandwidth of acquiescence; Be the amount of bandwidth that processing policy comprises based on the amount of bandwidth that the path clustering strategy of bandwidth is corresponding.
Such as, the amount of bandwidth of acquiescence is 50M, then the amount of bandwidth of forwarding strategy and redirected strategy correspondence is 50M; It is 100M that path clustering strategy based on bandwidth comprises bandwidth corresponding to forward-path.
Step 210: switch, according to the bandwidth obtained, arranges the amount of bandwidth of the forward-path of selection;
Particularly, the amount of bandwidth of the forward-path of selection is set to the bandwidth of acquisition by switch.
Such as, the forward-path of selection is path 1, and the bandwidth of acquisition is 100M, then the amount of bandwidth in path 1 is set to 100M.
Step 211: message, according to the forward-path after arranging, is sent to the second virtual machine by switch.
Particularly, switch is according to the forward-path after arranging, forward the packet to second main frame at the second virtual machine place, this message that second main frame desampler sends, this message is carried out decapsulation, obtain mark and the Business Stream of the second virtual machine, according to the mark of the second virtual machine, this Business Stream is sent to the second virtual machine.
Step 212: if do not send this message, then switch is by this packet loss.
If processing policy is drop policy, then switch does not send to message, directly by this packet loss.
In the present invention, the message that the first main frame receiving the first virtual machine place sends, this message carries the service identification of Business Stream, and the service identification of Business Stream is that the first main frame arranges according to the destination address of Business Stream and is encapsulated in message; According to the service identification of Business Stream, obtain the processing policy of message; According to processing policy, determine whether to send message; If transmission message, then according to processing policy, message is sent to the second virtual machine.Owing to carrying the service identification of Business Stream in message, thus policy control can be carried out according to the service identification of Business Stream to message.
Embodiment 3
Embodiments provide a kind of device sending message, see Fig. 3, this device comprises:
First receiver module 301, the message that the first main frame for receiving the first virtual machine place sends, message carries the service identification of Business Stream, and the service identification of Business Stream is that the first main frame arranges according to the destination address of Business Stream and is encapsulated in message;
First acquisition module 302, for the service identification according to Business Stream, obtains the processing policy of message;
Determination module 303, for according to processing policy, determines whether to send message;
First sending module 304, if for sending message, then according to processing policy, send to the second virtual machine by message.
Preferably, the first acquisition module 302, for the service identification according to Business Stream, obtains the processing policy of message from the corresponding relation of service identification and processing policy.
Preferably, determination module 303, comprising:
First determining unit, if be used for dropping packets for processing policy, then determines not send message;
Second determining unit, if be used for message execution other operations except abandoning, then determining to send message for processing policy.
Preferably, the first sending module 304, comprising:
3rd determining unit, for according to the mark of the first virtual machine and the mark of the second virtual machine, determines at least one forward-path sending message;
Selected cell, for according to processing policy, selects forward-path from least one forward-path;
Acquiring unit, for according to processing policy, obtains the bandwidth of the forward-path selected;
Setting unit, for according to the bandwidth obtained, arranges the amount of bandwidth of the forward-path of selection;
Transmitting element, for according to the forward-path after arranging, sends to the second virtual machine by message.
In the present invention, the message that the first main frame receiving the first virtual machine place sends, this message carries the service identification of Business Stream, and the service identification of Business Stream is that the first main frame arranges according to the destination address of Business Stream and is encapsulated in message; According to the service identification of Business Stream, obtain the processing policy of message; According to processing policy, determine whether to send message; If transmission message, then according to processing policy, message is sent to the second virtual machine.Owing to carrying the service identification of Business Stream in message, thus policy control can be carried out according to the service identification of Business Stream to message.
Embodiment 4
Embodiments provide a kind of device sending message, see Fig. 4, this device comprises:
Second receiver module 401, for receiving the Business Stream that the first virtual machine sends, Business Stream carries the destination address of Business Stream;
Second acquisition module 402, for the destination address according to Business Stream, obtains the service identification of Business Stream;
Second sending module 403, for the service identification of Business Stream is encapsulated in message, message is sent to switch, switch is made to obtain the processing policy of message according to the service identification of Business Stream, and determine whether to send message according to processing policy, if transmission message, according to processing policy, message is sent to the second virtual machine.
Preferably, the second acquisition module 402, for the destination address according to Business Stream, obtains the service identification of Business Stream from the corresponding relation of destination address and service identification.
In the present invention, the message that the first main frame receiving the first virtual machine place sends, this message carries the service identification of Business Stream, and the service identification of Business Stream is that the first main frame arranges according to the destination address of Business Stream and is encapsulated in message; According to the service identification of Business Stream, obtain the processing policy of message; According to processing policy, determine whether to send message; If transmission message, then according to processing policy, message is sent to the second virtual machine.Owing to carrying the service identification of Business Stream in message, thus policy control can be carried out according to the service identification of Business Stream to message.
Embodiment 5
Embodiments provide a kind of device sending message, see Fig. 5, this device comprises: first memory 501 and first processor 502, for performing the following method sending message:
The message that the first main frame receiving the first virtual machine place sends, described message carries the service identification of Business Stream, and the service identification of described Business Stream is that described first main frame arranges according to the destination address of described Business Stream and is encapsulated in described message;
According to the service identification of described Business Stream, obtain the processing policy of described message;
According to described processing policy, determine whether to send described message;
If send described message, then according to described processing policy, described message is sent to the second virtual machine.
Preferably, the described service identification according to described Business Stream, obtains the processing policy of described message, comprising:
According to the service identification of described Business Stream, from the corresponding relation of service identification and processing policy, obtain the processing policy of described message.
Preferably, described according to described processing policy, determine whether to send described message, comprising:
If described processing policy is used for abandoning described message, then determine not send described message;
If described processing policy is used for described message execution other operations except abandoning, then determining to send described message.
Preferably, described according to described processing policy, described message is sent to the second virtual machine, comprising:
According to the mark of the first virtual machine and the mark of the second virtual machine, determine at least one forward-path sending described message;
According to described processing policy, from described at least one forward-path, select forward-path;
According to described processing policy, obtain the bandwidth of the forward-path of described selection;
According to the bandwidth of described acquisition, the amount of bandwidth of the forward-path of described selection is set;
According to the forward-path after described setting, described message is sent to described second virtual machine.
In the present invention, the message that the first main frame receiving the first virtual machine place sends, this message carries the service identification of Business Stream, and the service identification of Business Stream is that the first main frame arranges according to the destination address of Business Stream and is encapsulated in message; According to the service identification of Business Stream, obtain the processing policy of message; According to processing policy, determine whether to send message; If transmission message, then according to processing policy, message is sent to the second virtual machine.Owing to carrying the service identification of Business Stream in message, thus policy control can be carried out according to the service identification of Business Stream to message.
Embodiment 6
Embodiments provide a kind of device sending message, see Fig. 6, this device comprises: second memory 601 and the second processor 602, for performing the following method sending message:
Receive the Business Stream that the first virtual machine sends, described Business Stream carries the destination address of described Business Stream;
According to the destination address of described Business Stream, obtain the service identification of described Business Stream;
The service identification of described Business Stream is encapsulated in message, described message is sent to switch, described switch is made to obtain the processing policy of described message according to the service identification of described Business Stream, and determine whether to send described message according to described processing policy, if send described message, according to described processing policy, described message is sent to the second virtual machine.
Preferably, the described destination address according to described Business Stream, obtains the service identification of described Business Stream, comprising:
According to the destination address of described Business Stream, from the corresponding relation of destination address and service identification, obtain the service identification of described Business Stream.
In the present invention, the message that the first main frame receiving the first virtual machine place sends, this message carries the service identification of Business Stream, and the service identification of Business Stream is that the first main frame arranges according to the destination address of Business Stream and is encapsulated in message; According to the service identification of Business Stream, obtain the processing policy of message; According to processing policy, determine whether to send message; If transmission message, then according to processing policy, message is sent to the second virtual machine.Owing to carrying the service identification of Business Stream in message, thus policy control can be carried out according to the service identification of Business Stream to message.
It should be noted that: the device of the transmission message that above-described embodiment provides is when sending message, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the device of the transmission message that above-described embodiment provides belongs to same design with the embodiment of the method sending message, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. send a method for message, it is characterized in that, described method comprises:
The message that the first main frame receiving the first virtual machine place sends, described message carries the service identification of Business Stream, and the service identification of described Business Stream is that described first main frame arranges according to the destination address of described Business Stream and is encapsulated in described message;
According to the service identification of described Business Stream, obtain the processing policy of described message;
According to described processing policy, determine whether to send described message;
If send described message, then according to described processing policy, described message is sent to the second virtual machine.
2. the method for claim 1, is characterized in that, the described service identification according to described Business Stream, obtains the processing policy of described message, comprising:
According to the service identification of described Business Stream, from the corresponding relation of service identification and processing policy, obtain the processing policy of described message.
3. the method for claim 1, is characterized in that, described according to described processing policy, determines whether to send described message, comprising:
If described processing policy is used for abandoning described message, then determine not send described message;
If described processing policy is used for described message execution other operations except abandoning, then determining to send described message.
4. the method for claim 1, is characterized in that, described according to described processing policy, described message is sent to the second virtual machine, comprising:
According to the mark of the first virtual machine and the mark of the second virtual machine, determine at least one forward-path sending described message;
According to described processing policy, from described at least one forward-path, select forward-path;
According to described processing policy, obtain the bandwidth of the forward-path of described selection;
According to the bandwidth of described acquisition, the amount of bandwidth of the forward-path of described selection is set;
According to the forward-path after described setting, described message is sent to described second virtual machine.
5. send a method for message, it is characterized in that, described method comprises:
Receive the Business Stream that the first virtual machine sends, described Business Stream carries the destination address of described Business Stream;
According to the destination address of described Business Stream, obtain the service identification of described Business Stream;
The service identification of described Business Stream is encapsulated in message, described message is sent to switch, described switch is made to obtain the processing policy of described message according to the service identification of described Business Stream, and determine whether to send described message according to described processing policy, if send described message, according to described processing policy, described message is sent to the second virtual machine.
6. method as claimed in claim 5, it is characterized in that, the described destination address according to described Business Stream, obtains the service identification of described Business Stream, comprising:
According to the destination address of described Business Stream, from the corresponding relation of destination address and service identification, obtain the service identification of described Business Stream.
7. send a device for message, it is characterized in that, described device comprises:
First receiver module, for the message that the first main frame receiving the first virtual machine place sends, described message carries the service identification of Business Stream, and the service identification of described Business Stream is that described first main frame arranges according to the destination address of described Business Stream and is encapsulated in described message;
First acquisition module, for the service identification according to described Business Stream, obtains the processing policy of described message;
Determination module, for according to described processing policy, determines whether to send described message;
First sending module, if for sending described message, then according to described processing policy, sends to the second virtual machine by described message.
8. device as claimed in claim 7, is characterized in that,
Described first acquisition module, for the service identification according to described Business Stream, obtains the processing policy of described message from the corresponding relation of service identification and processing policy.
9. device as claimed in claim 7, it is characterized in that, described determination module, comprising:
First determining unit, if be used for abandoning described message for described processing policy, then determines not send described message;
Second determining unit, if be used for described message execution other operations except abandoning, then determining to send described message for described processing policy.
10. device as claimed in claim 7, it is characterized in that, the first sending module, comprising:
3rd determining unit, for according to the mark of the first virtual machine and the mark of the second virtual machine, determines at least one forward-path sending described message;
Selected cell, for according to described processing policy, selects forward-path from described at least one forward-path;
Acquiring unit, for according to described processing policy, obtains the bandwidth of the forward-path of described selection;
Setting unit, for the bandwidth according to described acquisition, arranges the amount of bandwidth of the forward-path of described selection;
Transmitting element, for according to the forward-path after described setting, sends to described second virtual machine by described message.
11. 1 kinds of devices sending message, it is characterized in that, described device comprises:
Second receiver module, for receiving the Business Stream that the first virtual machine sends, described Business Stream carries the destination address of described Business Stream;
Second acquisition module, for the destination address according to described Business Stream, obtains the service identification of described Business Stream;
Second sending module, for the service identification of described Business Stream is encapsulated in message, described message is sent to switch, described switch is made to obtain the processing policy of described message according to the service identification of described Business Stream, and determine whether to send described message according to described processing policy, if send described message, according to described processing policy, described message is sent to the second virtual machine.
12. devices as claimed in claim 11, is characterized in that,
Described second acquisition module, for the destination address according to described Business Stream, obtains the service identification of described Business Stream from the corresponding relation of destination address and service identification.
13. 1 kinds of devices sending message, it is characterized in that, described device comprises: first memory and first processor, for performing the method for the transmission message as described in claim as arbitrary in claim 1-4.
14. 1 kinds of devices sending message, it is characterized in that, described device comprises: second memory and the second processor, for performing the method for the transmission message as described in claim 5 or 6.
CN201410855294.6A 2014-12-31 2014-12-31 A kind of method and apparatus for sending message Active CN104601467B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410855294.6A CN104601467B (en) 2014-12-31 2014-12-31 A kind of method and apparatus for sending message
PCT/CN2015/096687 WO2016107379A1 (en) 2014-12-31 2015-12-08 Packet sending method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410855294.6A CN104601467B (en) 2014-12-31 2014-12-31 A kind of method and apparatus for sending message

Publications (2)

Publication Number Publication Date
CN104601467A true CN104601467A (en) 2015-05-06
CN104601467B CN104601467B (en) 2018-03-13

Family

ID=53126985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410855294.6A Active CN104601467B (en) 2014-12-31 2014-12-31 A kind of method and apparatus for sending message

Country Status (2)

Country Link
CN (1) CN104601467B (en)
WO (1) WO2016107379A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791304A (en) * 2016-03-31 2016-07-20 联想(北京)有限公司 Message processing method and message processing device
CN106789757A (en) * 2016-03-29 2017-05-31 新华三技术有限公司 A kind of access control method and device
CN107395786A (en) * 2017-08-09 2017-11-24 杭州迪普科技股份有限公司 The indexing means and device of a kind of ARP
CN110768884A (en) * 2018-07-25 2020-02-07 华为技术有限公司 VXLAN message encapsulation and policy execution method, equipment and system
CN111555977A (en) * 2015-10-22 2020-08-18 华为技术有限公司 Method, device and system for processing service
CN112437009A (en) * 2020-11-27 2021-03-02 网络通信与安全紫金山实验室 SRv6 method, router, routing system and storage medium for end-to-end flow policy

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11757782B2 (en) * 2021-04-09 2023-09-12 Microsoft Technology Licensing, Llc Architectures for disaggregating SDN from the host
US11799785B2 (en) 2021-04-09 2023-10-24 Microsoft Technology Licensing, Llc Hardware-based packet flow processing
US11588740B2 (en) 2021-04-09 2023-02-21 Microsoft Technology Licensing, Llc Scaling host policy via distribution

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127691A (en) * 2006-08-17 2008-02-20 王玉鹏 A method for implementing stream-based policy routing on network processor
CN101305561A (en) * 2005-08-23 2008-11-12 耐特罗诺密系统有限公司 Flow control based on flow policies in a communication network
CN102271082A (en) * 2010-06-03 2011-12-07 富士通株式会社 Switching apparatus and method for setting up virtual lan
CN102299929A (en) * 2011-09-15 2011-12-28 北京天地云箱科技有限公司 Access control method, system and device for virtual machine
CN102893559A (en) * 2010-05-14 2013-01-23 微软公司 Interconnecting members of a virtual network
CN103618679A (en) * 2013-11-25 2014-03-05 上海华为技术有限公司 Service quality control method, device and system
CN103795622A (en) * 2014-01-22 2014-05-14 杭州华三通信技术有限公司 Message forwarding method and device using same
CN103905309A (en) * 2012-12-28 2014-07-02 中国电信股份有限公司 Method and system of data exchange between virtual machines
CN104158753A (en) * 2014-06-12 2014-11-19 南京工程学院 Dynamic flow dispatch method and system based on software definition network
CN104184676A (en) * 2013-05-27 2014-12-03 华为技术有限公司 Data center network, flow balancing method thereof and controller

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065555B (en) * 2009-09-24 2018-09-18 日本电气株式会社 Communication identification method between communication identification system and virtual server between virtual server
CN102801729B (en) * 2012-08-13 2015-06-17 福建星网锐捷网络有限公司 Virtual machine message forwarding method, network switching equipment and communication system
CN103905383B (en) * 2012-12-26 2017-11-24 华为技术有限公司 A kind of data message forwarding method, device and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101305561A (en) * 2005-08-23 2008-11-12 耐特罗诺密系统有限公司 Flow control based on flow policies in a communication network
CN101127691A (en) * 2006-08-17 2008-02-20 王玉鹏 A method for implementing stream-based policy routing on network processor
CN102893559A (en) * 2010-05-14 2013-01-23 微软公司 Interconnecting members of a virtual network
CN102271082A (en) * 2010-06-03 2011-12-07 富士通株式会社 Switching apparatus and method for setting up virtual lan
CN102299929A (en) * 2011-09-15 2011-12-28 北京天地云箱科技有限公司 Access control method, system and device for virtual machine
CN103905309A (en) * 2012-12-28 2014-07-02 中国电信股份有限公司 Method and system of data exchange between virtual machines
CN104184676A (en) * 2013-05-27 2014-12-03 华为技术有限公司 Data center network, flow balancing method thereof and controller
CN103618679A (en) * 2013-11-25 2014-03-05 上海华为技术有限公司 Service quality control method, device and system
CN103795622A (en) * 2014-01-22 2014-05-14 杭州华三通信技术有限公司 Message forwarding method and device using same
CN104158753A (en) * 2014-06-12 2014-11-19 南京工程学院 Dynamic flow dispatch method and system based on software definition network

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555977A (en) * 2015-10-22 2020-08-18 华为技术有限公司 Method, device and system for processing service
US11388095B2 (en) 2015-10-22 2022-07-12 Huawei Technologies Co., Ltd. Service processing method, apparatus, and system
CN106789757A (en) * 2016-03-29 2017-05-31 新华三技术有限公司 A kind of access control method and device
CN106789757B (en) * 2016-03-29 2020-10-13 新华三技术有限公司 Access control method and device
CN105791304A (en) * 2016-03-31 2016-07-20 联想(北京)有限公司 Message processing method and message processing device
CN105791304B (en) * 2016-03-31 2019-08-27 联想(北京)有限公司 A kind of message processing method and equipment
CN107395786A (en) * 2017-08-09 2017-11-24 杭州迪普科技股份有限公司 The indexing means and device of a kind of ARP
CN107395786B (en) * 2017-08-09 2020-12-04 杭州迪普科技股份有限公司 ARP (Address resolution protocol) table item indexing method and device
CN110768884A (en) * 2018-07-25 2020-02-07 华为技术有限公司 VXLAN message encapsulation and policy execution method, equipment and system
US11588665B2 (en) 2018-07-25 2023-02-21 Huawei Technologies Co., Ltd. VXLAN packet encapsulation and policy execution method, and VXLAN device and system
CN112437009A (en) * 2020-11-27 2021-03-02 网络通信与安全紫金山实验室 SRv6 method, router, routing system and storage medium for end-to-end flow policy
CN112437009B (en) * 2020-11-27 2022-07-01 网络通信与安全紫金山实验室 SRv6 method, router, routing system and storage medium for end-to-end flow policy

Also Published As

Publication number Publication date
WO2016107379A1 (en) 2016-07-07
CN104601467B (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN104601467A (en) Method and device for sending messages
KR101473783B1 (en) Method and apparatus for control of dynamic service chaining by using tunneling
CN105830395B (en) For promoting the dialogue-based grouping routing of analysis
CN107819663B (en) Method and device for realizing virtual network function service chain
CN104935516B (en) Communication system and method based on software defined network
CN102792646B (en) Communication system, control device, communication means
US20160080253A1 (en) Service routing system, device, and method
CN106878194B (en) Message processing method and device
WO2016089575A1 (en) Inter-domain service function chaining
US10645006B2 (en) Information system, control apparatus, communication method, and program
CN103929368B (en) Load balance method and device for multiple service units
US10911354B2 (en) Packet processing method and system, and device
CN104811326A (en) Service chain management method, service chain management system, and devices
WO2022062506A1 (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN104243270A (en) Tunnel setup method and tunnel setup device
CN105681198B (en) A kind of business chain processing method, equipment and system
CN108270673B (en) File transmitting method, device and system
CN101789949B (en) Method and router equipment for realizing load sharing
CN110324159B (en) Link configuration method, controller and storage medium
US10178017B2 (en) Method and control node for handling data packets
CN106817299A (en) The list item generation method and device and message forwarding method of software defined network
JP2016171503A (en) Management device and connection processing method
CN105391634A (en) Message processing method, device and switch
JP2018521606A (en) Location of packet loss in VXLAN
WO2016049926A1 (en) Data packet processing apparatus and method

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
TR01 Transfer of patent right

Effective date of registration: 20220214

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right