CN104079508A - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN104079508A
CN104079508A CN201310102374.XA CN201310102374A CN104079508A CN 104079508 A CN104079508 A CN 104079508A CN 201310102374 A CN201310102374 A CN 201310102374A CN 104079508 A CN104079508 A CN 104079508A
Authority
CN
China
Prior art keywords
message
indication information
tenant
receiving device
mac
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
CN201310102374.XA
Other languages
Chinese (zh)
Other versions
CN104079508B (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 Technologies Co Ltd
Institute of Computing Technology of CAS
Original Assignee
Huawei Technologies Co Ltd
Institute of Computing Technology of CAS
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, Institute of Computing Technology of CAS filed Critical Huawei Technologies Co Ltd
Priority to CN201310102374.XA priority Critical patent/CN104079508B/en
Priority to PCT/CN2014/074152 priority patent/WO2014154150A1/en
Publication of CN104079508A publication Critical patent/CN104079508A/en
Application granted granted Critical
Publication of CN104079508B publication Critical patent/CN104079508B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention provides a message processing method and device. The message processing method comprises the following steps: receiving a message sent to receiving end equipment by transmitting end equipment, wherein the message comprises a source medium access control (MAC) address corresponding to the transmitting end equipment and a data load transmitted according to the source MAC address, and idle fields of the source MAC address comprise processing instruction information indicating how to process the message; and processing the message according to the processing instruction information. By adopting the message processing method and device provided by the embodiment of the invention, the MAC address is utilized fully, network management based on the MAC address is realized, and the network management effect is improved.

Description

Message treatment method and device
Technical field
The embodiment of the present invention relates to the communication technology, relates in particular to a kind of message treatment method and device.
Background technology
Ethernet (Ethernet) is a kind of important local area network (LAN) (Local Area Network, be called for short LAN), the bottom of seven-layer structure that operates on open system interconnection (Open Systems Interconnection, be called for short OSI) reference model is two-layer: data link layer and physical layer.Each physical host in Ethernet has network interface unit (Network Interface Card, be called for short NIC), each network interface unit has MAC(Medium Access Control, medium access control) address, with this network interface unit of unique identification.
Along with the development of cloud computing, data center emerges fast in recent years.Individual data center is one and forms cluster by a large amount of cyber-net equipment, conventionally can be regarded as a large Ethernet.In order to improve the utilance of resource, reduce costs and increase flexibility, data center generally adopts Intel Virtualization Technology.A physical host can be invented several even tens of virtual machines by Intel Virtualization Technology.Every virtual machine seems similarly to be a physical host, and it can not only also can follow the virtual machine communication on other physical hosts with other the virtual main communications on Same Physical main frame.Fictitious host computer also has the virtual network interface card of oneself, is generally connected to the network interface unit of physical host by bridge joint mode, then communicates with the external world.When fictitious host computer communication, use the MAC Address of the virtual network interface card of oneself.This MAC Address can this virtual network interface card of unique identification.
As can be seen here, the MAC Address of prior art, only for marked network interface card or virtual network interface card, makes the use of MAC Address also insufficient, has caused the wasting of resources.
Summary of the invention
The embodiment of the present invention provides a kind of message treatment method and device, to make full use of MAC Address, realizes the network management based on MAC Address.
First aspect, the embodiment of the present invention provides a kind of message treatment method, comprising:
Receiving end/sending end equipment is issued the message of receiving device, wherein, described message comprises the source medium access control MAC Address corresponding with described sending ending equipment and the data load transmitting according to described source MAC, includes and be used to indicate processing indication information how to process described message in the spare field of described source MAC;
According to described processing indication information, described message is processed.
In the possible implementation of the first, described processing indication information is priority indication information; Correspondingly, described according to described processing indication information, described message is processed and comprised:
Determine transmit queue according to described priority indication information, described message is sent in described transmit queue, wherein, the quantity of described transmit queue is at least two, and each described transmit queue is corresponding with a described priority indication information;
According to preset order, the message at least two described transmit queues is sent.
In the possible implementation of the second, described processing indication information is service quality QoS indication information; Correspondingly, described according to described processing indication information, described message is processed and comprised:
According to described QoS indication information distribute links bandwidth resources, send described message by the described link bandwidth resource of distributing.
In the third possible implementation, described processing indication information is tenant's identity indication information; Described message also comprises target MAC (Media Access Control) address, and described target MAC (Media Access Control) address comprises the device identification for identifying described receiving device; Correspondingly, described according to described processing indication information, described message is processed and comprised:
Judge that whether the indicated tenant of described tenant's identity indication information has the access rights to described receiving device, if so, utilizes described source MAC and described target MAC (Media Access Control) address that described message is sent to described receiving device.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, described described message is sent to described receiving device after, described method also comprises:
The indicated tenant of described tenant's identity indication information is accessed to the flow that described receiving device produces to be added up.
In conjunction with the third possible implementation of first aspect, in the 5th kind of possible implementation, described described message is sent to described receiving device after, described method also comprises: all tenants are accessed to the flow that described receiving device produces and add up.
In conjunction with the third possible implementation of first aspect or first aspect, in the 6th kind of possible implementation, in described source MAC, also comprise the device identification for identifying described sending ending equipment.
Second aspect, the embodiment of the present invention provides a kind of message processing apparatus, comprising:
Receiving element, issue the message of receiving device for receiving end/sending end equipment, wherein, described message comprises the source medium access control MAC Address corresponding with described sending ending equipment and the data load transmitting according to described source MAC, includes and be used to indicate processing indication information how to process described message in the spare field of described source MAC;
Processing unit, for according to described processing indication information, processes described message.
In the possible implementation of the first, described processing indication information is priority indication information;
Described processing unit is specifically for determining transmit queue according to described priority indication information, described message is sent in described transmit queue, wherein, the quantity of described transmit queue is at least two, and each described transmit queue is corresponding with a described priority indication information; According to preset order, the message at least two described transmit queues is sent.
In the possible implementation of the second, described processing indication information is service quality QoS indication information;
Described processing unit, specifically for according to described QoS indication information distribute links bandwidth resources, sends described message by the described link bandwidth resource of distributing.
In the third possible implementation, described processing indication information is tenant's identity indication information; Described message also comprises target MAC (Media Access Control) address, and described target MAC (Media Access Control) address comprises the device identification for identifying described receiving device;
Described processing unit is specifically for judging whether the indicated tenant of described tenant's identity indication information has the access rights to described receiving device, if so, utilize described source MAC and described target MAC (Media Access Control) address that described message is sent to described receiving device.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation, described processing unit is also further used for that the indicated tenant of described tenant's identity indication information is accessed to the flow that described receiving device produces and adds up.
In conjunction with the third possible implementation of second aspect, in the 5th kind of possible implementation, described processing unit is also further used for that all tenants are accessed to the flow that described receiving device produces and adds up.
In conjunction with the third possible implementation of second aspect or second aspect, in the 6th kind of possible implementation, in described source MAC, also comprise the device identification for identifying described sending ending equipment.
As shown from the above technical solution, the message treatment method that embodiment provided by the invention provides and device, because MAC Address not only comprises the device identification for marking equipment, also comprise the processing indication information for network management, take full advantage of MAC Address, avoided the wasting of resources of MAC Address.And, on the basis of original MAC Address, expand to realize the effective management to network, improve network management effect.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The first message treatment method flow chart that Fig. 1 provides for the embodiment of the present invention;
The second message treatment method flow chart that Fig. 2 provides for the embodiment of the present invention;
The Ethernet structural representation that Fig. 3 provides for the embodiment of the present invention;
The third message treatment method flow chart that Fig. 4 provides for the embodiment of the present invention;
The first message processing apparatus structural representation that Fig. 5 provides for the embodiment of the present invention;
The second message processing apparatus structural representation that Fig. 6 provides for the embodiment of the present invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The first message treatment method flow chart that Fig. 1 provides for the embodiment of the present invention.As shown in Figure 1, the message treatment method that the present embodiment provides specifically can be applied to the network management procedure of the Ethernet Ethernet that especially data center forms.The message treatment method that the present embodiment provides can be carried out by message processing apparatus, this message processing apparatus can be integrated in switch or bridge or network interface unit etc. can the network equipment of receipt message in, also can arrange separately.The message treatment method that the present embodiment provides specifically comprises:
Step 10, receiving end/sending end equipment are issued the message of receiving device, wherein, described message comprises the source medium access control MAC Address corresponding with described sending ending equipment and the data load transmitting according to described source MAC, includes and be used to indicate processing indication information how to process described message in the spare field of described source MAC;
Particularly, sending ending equipment and receiving device are two opposite equip.s in Ethernet, and sending ending equipment sends message to receiving device, such as ethernet frame of this message.In ethernet frame, generally include target MAC (Media Access Control) address, source MAC, type/length, data/filling and frame check and etc. information, wherein, data/filling is the data load of transmission.MAC Address is pre-assigned, and MAC Address comprises device identification, and this device identification is for example for network interface mark, and in order to network interface unit of unique identification, this network interface unit can be that physical network interface card can be also virtual network interface card.Be that sending ending equipment can be physical equipment or virtual machine facility, receiving device can be also physical equipment or virtual machine facility.The spare field of MAC Address includes and is used to indicate processing indication information how to process this message, the processing procedure of this message is to the process of network management.Process indication information and can include but not limited to priority indication information, tenant's indication information, service quality (Quality of Service is called for short QoS) indication information and application type indication information etc.MAC Address, not only for distinguishing different network interface unit, also carries other processing indication informations for network management, and this processing indication information can need to arrange according to actual network management, is not limited with the present embodiment.
In actual applications, MAC Address adopts the form of MAC-48 conventionally, is made up of totally 48 6 bytes.2 bits that Ethernet retains in MAC Address are used for special purpose: the lowest order of highest byte is used for representing clean culture (0) or multicast (1) address; The inferior low level of highest byte is used for representing global administration address (0) or local management address (1).In the time being designated as local management, MAC Address can be distributed by local administrator oneself.In addition, Ethernet has retained address " FF:FF:FF:FF:FF:FF " as broadcast address.
Preferably, in MAC Address, be used as the lowest order of highest byte and the inferior low level of highest byte of special purpose and be used as the MAC Address of broadcast address except above-mentioned, can make full use of other bits in MAC Address and identify and process indication information to carry network interface.Network interface mark and to process indication information can be the continuation field in MAC Address respectively, can be also discontinuous field, pre-configured and the network equipment can be identified in procotol.The figure place of network interface mark also can arrange according to network equipment quantity actual in Ethernet, and the figure place of processing indication information can need to arrange according to actual network management.
Message processing apparatus can receive the ethernet frame of connected physical machine or virtual machine transmission, extraction source MAC Address and/or target MAC (Media Access Control) address from ethernet frame.If this message processing apparatus is integrated in the network equipment with ethernet frame forwarding capability, or this message processing apparatus not only has Network Management Function and also have the forwarding capability of ethernet frame, this message processing apparatus can send to corresponding network interface unit by this ethernet frame according to the network interface mark in target MAC (Media Access Control) address.
Step 20, according to described processing indication information, described message is processed.
Particularly, the type of network management can have multiple, such as access rights control, traffic management, transmission control, QoS control and safety management etc.Corresponding to different network managements, corresponding processing indication information can be set, according to this processing indication information, the message of carrying this processing indication information be processed accordingly, to realize network management.
The message treatment method that the present embodiment provides, message processing apparatus receiving end/sending end equipment is issued the message of receiving device, wherein, message comprises the source medium access control MAC Address corresponding with sending ending equipment and the data load transmitting according to source MAC, in the spare field of source MAC, include and how to be used to indicate the processing indication information of processing messages, according to processing indication information, message is processed.Because MAC Address not only comprises the device identification for marking equipment, also comprise the processing indication information for network management, take full advantage of MAC Address, avoid the wasting of resources of MAC Address.And, on the basis of original MAC Address, expand to realize the effective management to network, improve network management effect.
The second message treatment method flow chart that Fig. 2 provides for the embodiment of the present invention.As shown in Figure 2, in the present embodiment, described processing indication information is tenant's identity indication information; Described message also comprises target MAC (Media Access Control) address, and described target MAC (Media Access Control) address comprises the device identification for identifying described receiving device; Correspondingly, step 20, described according to described processing indication information, described message is processed and comprised:
Step 201, judge that whether the indicated tenant of described tenant's identity indication information has the access rights to described receiving device, if so, utilizes described source MAC and described target MAC (Media Access Control) address that described message is sent to described receiving device.
Particularly, the processing Indication message in MAC Address comprises the tenant's indication information for identifying different tenants, and this tenant's indication information is specifically as follows tenant's mark, in order to tenant of unique identification.In virtualized data center, conventionally there is different tenants, a tenant can, corresponding to an equipment leasing user, also can, corresponding to a class application, can also divide tenant according to other standards, and each tenant often has one or more virtual machine.A virtual machine can be provided with one or more virtual network interface cards.In the time that a virtual machine is provided with a virtual network interface card, network interface mark in the MAC Address of distributing for this virtual network interface card can this virtual network interface card of unique identification, or network interface mark can this virtual network interface card of unique identification with the combination of tenant's indication information.In the time that a virtual machine is provided with multiple virtual network interface card, network interface mark can comprise virtual machine mark and virtual network interface card mark, the combination of virtual machine mark and virtual network interface mark can this virtual network interface card of unique identification, or virtual machine mark, virtual network interface identifies and the combination of tenant's indication information can this virtual network interface card of unique identification.
Message processing apparatus obtains source MAC and target MAC (Media Access Control) address from the ethernet frame receiving, can determine according to the network interface mark in target MAC (Media Access Control) address the network interface unit that needs access, be Internet resources, can preset the access rights of different tenants to these Internet resources, the tenant who for example has has the access rights to these Internet resources, and some tenants do not have the access rights to these Internet resources.By access rights table record, these Internet resources there is the tenant of access rights.In actual applications, if these Internet resources are realized by a virtual machine, on this virtual machine, be provided with multiple virtual network interface cards, access rights table can be set taking virtual machine as unit, the tenant with access rights can access virtual network interface cards all on this virtual machine.If these Internet resources are realized by many virtual machines, these many virtual machines also can belong to a tenant, and access rights table can be set taking tenant as unit, and the tenant with access rights can access all virtual machines of the tenant who realizes these Internet resources.
Message processing apparatus is inquired about access rights table according to the tenant's indication information in source MAC, judge whether the tenant that this tenant's indication information identifies has the access rights to these Internet resources, if so, this ethernet frame is sent to object network interface unit.If not, this ethernet frame is abandoned.
In the present embodiment, described described message is sent to described receiving device after, described method also comprises:
Step 202, the indicated tenant of described tenant's identity indication information is accessed to the flow that described receiving device produces add up.
In the present embodiment, described described message is sent to described receiving device after, described method also comprises:
Step 203, all tenants are accessed to the flow that described receiving device produces add up.
Particularly, message processing apparatus can also be accessed the flow that these Internet resources produce to this tenant and be added up, and all users is accessed to the flow that these Internet resources produce and add up.
The message treatment method that the present embodiment provides, by tenant's indication information is set in MAC Address, can realize the network management-application based on tenant.
In the present embodiment, described network interface mark comprises virtual machine mark and virtual network interface card mark, described virtual machine mark is used for identifying virtual machine, the virtual network interface card of described virtual network interface card mark for arranging on the virtual machine that identifies described virtual machine and identify.
In a kind of concrete implementation, the method for expressing of MAC Address can be as shown in table 1:
Table 1
Bit set Implication
MAC[39:20] Tenant identifies (TID)
MAC[19:4] Virtual machine mark (VMID)
MAC[3:0] Virtual network interface card mark (VNICID)
Other Retain
MAC Address comprises following information: it is tenant's indication information that tenant identifies TID(), virtual machine mark VMID and virtual network interface card mark VNICID.Tenant identifies TID for distinguishing different tenants, and virtual machine mark VMID is for distinguishing same tenant's different virtual machine, and VNICID is in order to distinguish the different virtual network interface unit of same virtual machine for virtual network interface card mark.Wherein, the combination that tenant identifies TID, virtual machine mark VMID and virtual network interface card mark VNICID can be guaranteed the uniqueness of the MAC Address of the virtual network interface card of all virtual machines.While it should be noted that concrete use, the mac address information that defines can be not limited to above these information, can be the subset of these information or expands on subset basis.Tenant identifies TID, virtual machine mark VMID and shared field and the figure place of virtual network interface card mark VNICID is also not limited to method for expressing shown in table 1.
Suppose a kind of applied environment, as shown in Figure 3, in this applied environment, be provided with two physical hosts, be respectively the Internet resources 85 of the first physical host 81 and 83, one management equipments of 82, one Ethernet switches of the second physical host 84 and certain computer-accessible.On two physical hosts, moving altogether six virtual machines, is respectively virtual machine A0, virtual machine A1, virtual machine B0, virtual machine B1, virtual machine B2 and virtual machine C0.Wherein, virtual machine A0 and virtual machine A1 belong to tenant A, and virtual machine B0, virtual machine B1 and virtual machine B2 belong to tenant B, and virtual machine C0 belongs to tenant C.In management equipment 84, be provided with message processing apparatus, control the access of each tenant to Internet resources 85, add up addressable tenant's flow.Store default access rights table in management equipment 84, registered which user and have the authority of accesses network resource 85.Suppose that tenant A and tenant B have the authority of accesses network resource 85, tenant C does not have the authority of accesses network resource 85.Management equipment 84 according to the conduct interviews detailed process of control of authority and traffic management of mac address information is: in the time that management equipment 84 is received an ethernet frame from tenant, first, read the source MAC in ethernet frame, and from MAC[40:20] extract tenant and identify TID; Secondly, check access rights table, check that tenant identifies TID and whether has access rights and process.If tenant has access rights, allow this ethernet frame to pass through, and cumulative this tenant's flow; Otherwise abandon this ethernet frame.According to above handling process, management equipment 84 by the ethernet frame that allows self virtualizing machine A0, virtual machine A1, virtual machine B0, virtual machine B1 and virtual machine B2 by and the flowing of access of add up tenant A and tenant B, and the ethernet frame that carrys out self virtualizing machine C0 will be dropped.Management equipment 84 has just realized the function of access rights control and traffic statistics like this.
The third message treatment method flow chart that Fig. 4 provides for the embodiment of the present invention.As shown in Figure 4, in the present embodiment, described processing indication information is priority indication information; Correspondingly, step 20, described according to described processing indication information, described message is processed and comprised:
Step 211, determine transmit queue according to described priority indication information, described message is sent in described transmit queue, wherein, the quantity of described transmit queue is at least two, and each described transmit queue is corresponding with a described priority indication information;
Step 212, according to preset order, message at least two described transmit queues is sent.
Particularly, can set in advance at least two transmit queues, a transmit queue is corresponding with a priority indication information, the priority difference that different transmit queues has, and the transmit queue that priority is high first sends.MAC Address comprises priority indication information, and message processing apparatus can, according to the precedence information of the source MAC in ethernet frame, be sent into this ethernet frame in corresponding transmit queue.Ethernet frame in the high transmit queue of priority is preferentially sent out.
The message treatment method that the present embodiment provides, by priority indication information is set in MAC Address, can realize the network management-application based on priority.
In the concrete implementation of another kind, the method for expressing of MAC Address can be as shown in table 2:
Table 2
Bit set Implication
MAC[39:20] Tenant identifies (TID)
MAC[19:4] Virtual machine mark (VMID)
MAC[3:2] Virtual network interface card mark (VNICID)
MAC[1:0] Priority indication information (PRI)
Other Retain
MAC Address comprises following information: tenant identifies TID, virtual machine mark VMID, virtual network interface card mark VNICID and priority indication information PRI, tenant identifies TID for distinguishing different tenants, virtual machine mark VMID is for distinguishing same tenant's different virtual machine, VNICID is in order to distinguish the different virtual network interface unit of same virtual machine for virtual network interface card mark, and priority indication information PRI is for identifying different priority.Wherein, the combination that tenant identifies TID, virtual machine mark VMID and virtual network interface card mark VNICID can be guaranteed the uniqueness of the MAC Address of the virtual network interface card of all virtual machines.While it should be noted that concrete use, the mac address information that defines can be not limited to above these information, can be the subset of these information or expands on subset basis.Tenant identifies TID, virtual machine mark VMID, virtual network interface card mark VNICID and shared field and the figure place of priority indication information PRI and is also not limited to method for expressing shown in table 2.
Message processing apparatus can be realized the transmission control based on priority, and this message processing apparatus can be integrated in switch.Suppose that being provided with four transmit queues at the output port of switch is respectively Q0, Q1, Q2 and Q3, and ethernet frame in the high transmit queue of sequence number is preferentially sent out.The implementation procedure of the transmission control based on priority is specific as follows: in the time that an ethernet frame arrives switch, first message processing apparatus reads the source MAC in ethernet frame, and from MAC[1:0] extraction priority indication information PRI; Secondly, message processing apparatus is sent into ethernet frame in the transmit queue of corresponding sequence number of output port according to the value of priority indication information PRI.Ethernet frame in transmit queue high sequence number is preferentially sent.Specifically can successively the ethernet frame in transmit queue be sent from high to low according to sequence number.In this process of transmitting, the tenant that switch can obtain the target MAC (Media Access Control) address in this ethernet frame identifies TID, virtual machine mark VMID and virtual network interface card mark VNICID, identify the unique definite virtual network interface card of combination of TID, virtual machine mark VMID and virtual network interface card mark VNICID by tenant, and this Ether frame is sent to this virtual network interface card.
In the present embodiment, described processing indication information is service quality QoS indication information; Correspondingly, step 20, described according to described processing indication information, described message is processed and comprised:
According to described QoS indication information distribute links bandwidth resources, send described message by the described link bandwidth resource of distributing.
Particularly, the mark of the application layer in MAC Address can comprise the QoS indication information for identifying qos requirement.In the time that multiple virtual machines are shared physical transmission channel, message processing apparatus can be determined qos requirement according to the QoS indication information in source MAC, and according to qos requirement distribute links bandwidth resources.For the higher ethernet frame of qos requirement, can distribute larger link bandwidth resource, to ensure the transmission of this ethernet frame.
The message treatment method that the present embodiment provides, by QoS information is set in MAC Address, can realize the network management-application based on QoS.
Above-described embodiment is illustrated from aspects such as access rights control, traffic management, transmission control and QoS controls respectively, but the present invention is not limited to this.Tenant's indication information, priority indication information and QoS indication information can be set simultaneously to realize above-mentioned Network Management Function in MAC Address, MAC Address can also be provided with the processing indication information of other application layers, for example application type indication information, application type indication information can be for identifying different network application agreements.Message processing apparatus can judge whether to analyse in depth this ethernet frame according to this application type indication information, to improve the fail safe of Internet Transmission.
In the present embodiment, described network interface mark comprises physical machine mark and physical network interface card mark, described physical machine mark is used for identifying physical machine, the physical network interface card of described physical network interface card mark for arranging in the physical machine that identifies described physical machine and identify.
Particularly, when virtual machine is not set in physical machine, and while being provided with multiple physical network interface card in this physical machine, can distinguish different physical machine by physical label, distinguish the different physical network interface cards on Same Physical machine by physical network interface card mark.A physical network interface card can be uniquely determined in the combination of physical machine mark and physical network interface card mark.
In the present embodiment, in described source MAC, also comprise the device identification for identifying described sending ending equipment.
The first message processing apparatus structural representation that Fig. 5 provides for the embodiment of the present invention.As shown in Figure 5, the message processing apparatus that the present embodiment provides specifically can be realized each step of the message treatment method that any embodiment of the present invention provides, and specific implementation process does not repeat them here.The message processing apparatus that the present embodiment provides specifically comprises:
Receiving element 11, issue the message of receiving device for receiving end/sending end equipment, wherein, described message comprises the source medium access control MAC Address corresponding with described sending ending equipment and the data load transmitting according to described source MAC, includes and be used to indicate processing indication information how to process described message in the spare field of described source MAC;
Processing unit 12, for according to described processing indication information, processes described message.
The message processing apparatus that the present embodiment provides, because MAC Address not only comprises the device identification for marking equipment, also comprises the processing indication information for network management, takes full advantage of MAC Address, has avoided the wasting of resources of MAC Address.And, on the basis of original MAC Address, expand to realize the effective management to network, improve network management effect.
In the present embodiment, described processing indication information is priority indication information.Described processing unit 12 is specifically for determining transmit queue according to described priority indication information, described message is sent in described transmit queue, wherein, the quantity of described transmit queue is at least two, and each described transmit queue is corresponding with a described priority indication information; According to preset order, the message at least two described transmit queues is sent.
In the present embodiment, described processing indication information is service quality QoS indication information.Described processing unit 12, specifically for according to described QoS indication information distribute links bandwidth resources, sends described message by the described link bandwidth resource of distributing.
In the present embodiment, described processing indication information is tenant's identity indication information; Described message also comprises target MAC (Media Access Control) address, and described target MAC (Media Access Control) address comprises the device identification for identifying described receiving device.Described processing unit 12 is specifically for judging whether the indicated tenant of described tenant's identity indication information has the access rights to described receiving device, if so, utilize described source MAC and described target MAC (Media Access Control) address that described message is sent to described receiving device.
In the present embodiment, described processing unit is also further used for that the indicated tenant of described tenant's identity indication information is accessed to the flow that described receiving device produces and adds up.
In the present embodiment, described processing unit is also further used for that all tenants are accessed to the flow that described receiving device produces and adds up.
In the present embodiment, in described source MAC, also comprise the device identification for identifying described sending ending equipment.
Described sending ending equipment is physical equipment or virtual machine facility, and described receiving device is physical equipment or virtual machine facility.
The second message processing apparatus structural representation that Fig. 6 provides for the embodiment of the present invention.As shown in Figure 6, the message processing apparatus that the present embodiment provides specifically can be realized each step of the message treatment method that any embodiment of the present invention provides, and specific implementation process does not repeat them here.The message processing apparatus that the present embodiment provides specifically comprises: processor 41 and memory 42, described memory 42 is for storing instruction.Described processor 41 is coupled with described memory 42, described processor 41 is configured to carry out the instruction being stored in described memory 42, wherein, described processor 41 is configured to issue for receiving end/sending end equipment the message of receiving device, wherein, described message comprises the source medium access control MAC Address corresponding with described sending ending equipment and the data load transmitting according to described source MAC, includes and be used to indicate processing indication information how to process described message in the spare field of described source MAC; According to described processing indication information, described message is processed.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, in the time carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (14)

1. a message treatment method, is characterized in that, comprising:
Receiving end/sending end equipment is issued the message of receiving device, wherein, described message comprises the source medium access control MAC Address corresponding with described sending ending equipment and the data load transmitting according to described source MAC, includes and be used to indicate processing indication information how to process described message in the spare field of described source MAC;
According to described processing indication information, described message is processed.
2. message treatment method according to claim 1, is characterized in that, described processing indication information is priority indication information; Correspondingly, described according to described processing indication information, described message is processed and comprised:
Determine transmit queue according to described priority indication information, described message is sent in described transmit queue, wherein, the quantity of described transmit queue is at least two, and each described transmit queue is corresponding with a described priority indication information;
According to preset order, the message at least two described transmit queues is sent.
3. message treatment method according to claim 1, is characterized in that, described processing indication information is service quality QoS indication information; Correspondingly, described according to described processing indication information, described message is processed and comprised:
According to described QoS indication information distribute links bandwidth resources, send described message by the described link bandwidth resource of distributing.
4. message treatment method according to claim 1, is characterized in that, described processing indication information is tenant's identity indication information; Described message also comprises target MAC (Media Access Control) address, and described target MAC (Media Access Control) address comprises the device identification for identifying described receiving device; Correspondingly, described according to described processing indication information, described message is processed and comprised:
Judge that whether the indicated tenant of described tenant's identity indication information has the access rights to described receiving device, if so, utilizes described source MAC and described target MAC (Media Access Control) address that described message is sent to described receiving device.
5. message treatment method according to claim 4, is characterized in that, described described message is sent to described receiving device after, described method also comprises:
The indicated tenant of described tenant's identity indication information is accessed to the flow that described receiving device produces to be added up.
6. message treatment method according to claim 4, is characterized in that, described described message is sent to described receiving device after, described method also comprises: all tenants are accessed to the flow that described receiving device produces and add up.
7. according to the message treatment method described in claim 1 or 4, it is characterized in that, in described source MAC, also comprise the device identification for identifying described sending ending equipment.
8. a message processing apparatus, is characterized in that, comprising:
Receiving element, issue the message of receiving device for receiving end/sending end equipment, wherein, described message comprises the source medium access control MAC Address corresponding with described sending ending equipment and the data load transmitting according to described source MAC, includes and be used to indicate processing indication information how to process described message in the spare field of described source MAC;
Processing unit, for according to described processing indication information, processes described message.
9. message processing apparatus according to claim 8, is characterized in that, described processing indication information is priority indication information;
Described processing unit is specifically for determining transmit queue according to described priority indication information, described message is sent in described transmit queue, wherein, the quantity of described transmit queue is at least two, and each described transmit queue is corresponding with a described priority indication information; According to preset order, the message at least two described transmit queues is sent.
10. message processing apparatus according to claim 8, is characterized in that, described processing indication information is service quality QoS indication information;
Described processing unit, specifically for according to described QoS indication information distribute links bandwidth resources, sends described message by the described link bandwidth resource of distributing.
11. message processing apparatus according to claim 8, is characterized in that, described processing indication information is tenant's identity indication information; Described message also comprises target MAC (Media Access Control) address, and described target MAC (Media Access Control) address comprises the device identification for identifying described receiving device;
Described processing unit is specifically for judging whether the indicated tenant of described tenant's identity indication information has the access rights to described receiving device, if so, utilize described source MAC and described target MAC (Media Access Control) address that described message is sent to described receiving device.
12. message processing apparatus according to claim 11, is characterized in that, described processing unit is also further used for that the indicated tenant of described tenant's identity indication information is accessed to the flow that described receiving device produces and adds up.
13. message processing apparatus according to claim 11, is characterized in that, described processing unit is also further used for that all tenants are accessed to the flow that described receiving device produces and adds up.
Message processing apparatus described in 14. according to Claim 8 or 11, is characterized in that, also comprises the device identification for identifying described sending ending equipment in described source MAC.
CN201310102374.XA 2013-03-27 2013-03-27 Message treatment method and device Active CN104079508B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310102374.XA CN104079508B (en) 2013-03-27 2013-03-27 Message treatment method and device
PCT/CN2014/074152 WO2014154150A1 (en) 2013-03-27 2014-03-27 Message processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310102374.XA CN104079508B (en) 2013-03-27 2013-03-27 Message treatment method and device

Publications (2)

Publication Number Publication Date
CN104079508A true CN104079508A (en) 2014-10-01
CN104079508B CN104079508B (en) 2018-01-02

Family

ID=51600560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310102374.XA Active CN104079508B (en) 2013-03-27 2013-03-27 Message treatment method and device

Country Status (2)

Country Link
CN (1) CN104079508B (en)
WO (1) WO2014154150A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114389905A (en) * 2021-12-08 2022-04-22 阿里巴巴(中国)有限公司 Network flow statistical method, related device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050259589A1 (en) * 2004-05-24 2005-11-24 Metrobility Optical Systems Inc. Logical services loopback
WO2008029415A2 (en) * 2006-09-10 2008-03-13 Ethos Networks Ltd. Method and system for relaying frames through an ethernet network and bridge therefor
CN101849388A (en) * 2007-09-06 2010-09-29 韩国电子通信研究院 QoS management method for an Ethernet based ngn
CN101867520A (en) * 2010-06-12 2010-10-20 迈普通信技术股份有限公司 Method for exchanging data between board cards in distribution type system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050259589A1 (en) * 2004-05-24 2005-11-24 Metrobility Optical Systems Inc. Logical services loopback
WO2008029415A2 (en) * 2006-09-10 2008-03-13 Ethos Networks Ltd. Method and system for relaying frames through an ethernet network and bridge therefor
CN101849388A (en) * 2007-09-06 2010-09-29 韩国电子通信研究院 QoS management method for an Ethernet based ngn
CN101867520A (en) * 2010-06-12 2010-10-20 迈普通信技术股份有限公司 Method for exchanging data between board cards in distribution type system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114389905A (en) * 2021-12-08 2022-04-22 阿里巴巴(中国)有限公司 Network flow statistical method, related device and medium
CN114389905B (en) * 2021-12-08 2023-10-13 阿里巴巴(中国)有限公司 Network traffic statistics method, related device and medium

Also Published As

Publication number Publication date
CN104079508B (en) 2018-01-02
WO2014154150A1 (en) 2014-10-02

Similar Documents

Publication Publication Date Title
CN105284080B (en) The virtual network management method and data center systems of data center
CN1754374B (en) Network address translation with gateway load distribution
CN103141058B (en) For the network interface controller of virtual distributed business
CN110099014A (en) The method and host of Message processing in cloud computing system
CN102870377A (en) Monitoring method and device for virtual port
CN105264509A (en) Adaptive interrupt coalescing in a converged network
CN104579695A (en) Data forwarding device and method
CN105379206B (en) Message processing method, forwarding device and message handling system in network
CN104065759A (en) Method for improving utilization efficiency of NAT address pool resource and device thereof
US10382391B2 (en) Systems and methods for managing network address information
CN104253767A (en) Virtual shard network implementing method and switch
CN1946061B (en) Method and device for fast processing message
CN106603550A (en) Network isolation method and network isolation device
CN109327319A (en) Method, equipment and the system of on-premise network slice
CN105704256B (en) A kind of IP address management methods, devices and systems
CN104683428A (en) Network service processing method and device
CN103746927A (en) Priority-based fluid control PFC (Power Factor Correction) method, transmitting device and receiving device
CN107370839A (en) The addressing method and relevant apparatus of industrial field device, system
CN104780232A (en) A resource allocating method, controller and system
CN104993583B (en) The communication means of power distribution automation equipment
CN111711536A (en) Method for constructing firewall test environment under cloud architecture
CN103207801A (en) Method, device and system for migrating virtual machine and fiber channel switch
CN108540408B (en) Openstack-based distributed virtual switch management method and system
CN107547247B (en) IP address allocation method and device for three-layer management network in intelligent elastic architecture
CN112583655B (en) Data transmission method and device, electronic equipment and readable storage medium

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