CN104079508B - Message treatment method and device - Google Patents

Message treatment method and device Download PDF

Info

Publication number
CN104079508B
CN104079508B CN201310102374.XA CN201310102374A CN104079508B CN 104079508 B CN104079508 B CN 104079508B CN 201310102374 A CN201310102374 A CN 201310102374A CN 104079508 B CN104079508 B CN 104079508B
Authority
CN
China
Prior art keywords
message
configured information
processing
tenant
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.)
Active
Application number
CN201310102374.XA
Other languages
Chinese (zh)
Other versions
CN104079508A (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 present invention, which provides a kind of message treatment method and device, the message treatment method, to be included:Receiving end/sending end equipment issues the message of receiving device, wherein, message includes source medium access control MAC Address corresponding with sending ending equipment and the data load transmitted according to source MAC, includes in the spare field of source MAC for indicate how handling the processing configured information of message;According to processing configured information, message is handled.Message treatment method and device provided in an embodiment of the present invention, take full advantage of MAC Address, realize the network management based on MAC Address, improve network management effect.

Description

Message treatment method and device
Technical field
The present embodiments relate to the communication technology, more particularly to a kind of message treatment method and device.
Background technology
Ethernet(Ethernet)It is a kind of important LAN(Local Area Network, abbreviation LAN), operate on Open system interconnection(Open Systems Interconnection, abbreviation OSI)The bottom of the seven-layer structure of reference model Two layers:Data link layer and physical layer.Each physical host in Ethernet has NIC(Network Interface Card, abbreviation NIC), each NIC has MAC(Medium Access Control, medium access Control)Address, with the unique mark NIC.
With the development of cloud computing, data center quickly emerges in recent years.Individual data center is one by largely calculating Machine and the network equipment form cluster, generally can be regarded as a big Ethernet.In order to improve the utilization rate of resource, reduce into This and increase flexibility, data center generally use virtualization technology.One physical host can be empty by virtualization technology Intend into several even tens of virtual machines.Every virtual machine appears as a physical host, and it can not only be with same thing Managing other virtual principal communications on main frame can also communicate with the virtual machine on other physical hosts.Fictitious host computer also has the void of oneself Intend NIC, the NIC of physical host is typically connected to by bridge joint mode, is then communicated with the external world.It is empty The MAC Address of the virtual network interface card of oneself is used during plan main-machine communication.The MAC Address can be with the unique mark virtual network Interface card.
As can be seen here, the MAC Address of prior art is only used for identifying NIC or virtual network interface card so that The use of MAC Address is simultaneously insufficient, causes the wasting of resources.
The content of the invention
The embodiment of the present invention provides a kind of message treatment method and device, and to make full use of MAC Address, realization is based on MAC The network management of address.
In a first aspect, the embodiment of the present invention provides a kind of message treatment method, including:
Receiving end/sending end equipment issues the message of receiving device, wherein, the message includes and the sending ending equipment Corresponding source medium access control MAC Address and the data load transmitted according to the source MAC, the source MAC Include in the spare field of location for indicate how handling the processing configured information of the message;
According to the processing configured information, the message is handled.
In the first possible implementation, the processing configured information is priority indication information;Correspondingly, it is described According to the processing configured information, carrying out processing to the message includes:
Transmit queue is determined according to the priority indication information, the message is sent into the transmit queue, wherein, The quantity of the transmit queue is at least two, and each transmit queue is corresponding with a priority indication information;
The message at least two transmit queues is sent according to preset order.
In second of possible implementation, the processing configured information is service quality QoS configured information;Accordingly Ground, described according to the processing configured information, carrying out processing to the message includes:
Link bandwidth resource is distributed according to the QoS configured informations, institute is sent by the link bandwidth resource of distribution State message.
In the third possible implementation, the processing configured information is tenant's identity configured information;The message Also include target MAC (Media Access Control) address, the target MAC (Media Access Control) address includes being used for the device identification for identifying the receiving device;Accordingly Ground, described according to the processing configured information, carrying out processing to the message includes:
Judge whether the tenant indicated by tenant's identity configured information has the access right to the receiving device Limit, if so, then sending the message to the receiving device using the source MAC and the target MAC (Media Access Control) address.
It is described by institute in the 4th kind of possible implementation with reference to the third possible implementation of first aspect State message to be sent to after the receiving device, methods described also includes:
Flow caused by the receiving device is accessed the tenant indicated by tenant's identity configured information to carry out Statistics.
It is described by institute in the 5th kind of possible implementation with reference to the third possible implementation of first aspect State message to be sent to after the receiving device, methods described also includes:The receiving device institute is accessed to all tenants Caused flow is counted.
With reference to the possible implementation of the third of first aspect or first aspect, in the 6th kind of possible implementation In, also include being used for the device identification for identifying the sending ending equipment in the source MAC.
Second aspect, the embodiment of the present invention provide a kind of message processing apparatus, including:
Receiving unit, the message of receiving device is issued for receiving end/sending end equipment, wherein, the message includes and institute Medium access control MAC Address in source corresponding to sending ending equipment and the data load transmitted according to the source MAC are stated, Include in the spare field of the source MAC for indicate how handling the processing configured information of the message;
Processing unit, for according to the processing configured information, handling the message.
In the first possible implementation, the processing configured information is priority indication information;
The processing unit is specifically used for determining transmit queue according to the priority indication information, and the message is sent into In the transmit queue, wherein, the quantity of the transmit queue is that at least two, each transmit queue and one are described excellent First level configured information is corresponding;The message at least two transmit queues is sent according to preset order.
In second of possible implementation, the processing configured information is service quality QoS configured information;
The processing unit is specifically used for distributing link bandwidth resource according to the QoS configured informations, passes through the institute of distribution State link bandwidth resource and send the message.
In the third possible implementation, the processing configured information is tenant's identity configured information;The message Also include target MAC (Media Access Control) address, the target MAC (Media Access Control) address includes being used for the device identification for identifying the receiving device;
The processing unit is specifically used for judging whether the tenant indicated by tenant's identity configured information has to institute The access rights of receiving device are stated, if so, then the message is sent out using the source MAC and the target MAC (Media Access Control) address Give the receiving device.
With reference to the third possible implementation of second aspect, in the 4th kind of possible implementation, the processing Unit is further used for accessing caused by the receiving device tenant indicated by tenant's identity configured information Flow is counted.
With reference to the third possible implementation of second aspect, in the 5th kind of possible implementation, the processing Unit is further used for counting flow caused by all tenants access receiving device.
With reference to the possible implementation of the third of second aspect or second aspect, in the 6th kind of possible implementation In, also include being used for the device identification for identifying the sending ending equipment in the source MAC.
As shown from the above technical solution, the message treatment method and device that embodiment provided by the invention provides, due to MAC Address not only includes being used for the device identification for identifying equipment, in addition to the processing configured information for network management, makes full use of MAC Address, avoids the wasting of resources of MAC Address.Moreover, it is extended on the basis of original MAC Address with realization pair Effective management of network, improves network management effect.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the first message treatment method flow chart provided in an embodiment of the present invention;
Fig. 2 is second of message treatment method flow chart provided in an embodiment of the present invention;
Fig. 3 is Ethernet structural representation provided in an embodiment of the present invention;
Fig. 4 is the third message treatment method flow chart provided in an embodiment of the present invention;
Fig. 5 is the first message processing apparatus structural representation provided in an embodiment of the present invention;
Fig. 6 is second of message processing apparatus structural representation provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the first message treatment method flow chart provided in an embodiment of the present invention.As shown in figure 1, the present embodiment carries The message treatment method of confession specifically can apply to the network management for the Ethernet that Ethernet especially data center is formed Journey.The message treatment method that the present embodiment provides can be performed by message processing apparatus, and the message processing apparatus can collect Into in can receive the network equipment of message in interchanger or bridge or NIC etc., can also be separately provided.This implementation The message treatment method that example provides specifically includes:
Step 10, receiving end/sending end equipment issue the message of receiving device, wherein, the message includes and the transmission Medium access control MAC Address in source corresponding to end equipment and the data load transmitted according to the source MAC, the source Include in the spare field of MAC Address for indicate how handling the processing configured information of the message;
Specifically, sending ending equipment and receiving device are two opposite equip.s in Ethernet, and sending ending equipment is to connecing Receiving end equipment sends message, the message such as ethernet frame.Generally included in ethernet frame target MAC (Media Access Control) address, source MAC, Type/length, data/filling and frame check and information is waited, wherein, data/filling is the data load transmitted.MAC Address To be pre-assigned, MAC Address includes device identification, and the device identification is, for example, network interface mark, to unique mark One NIC, the NIC can be that physical network interface card can also be virtual network interface card.Send End equipment can be physical equipment or virtual machine facility, and receiving device can also be physical equipment or virtual machine facility.MAC The spare field of location includes for indicate how handling the processing configured information of the message, and the processing procedure to the message is The process of network management.Processing configured information can include but is not limited to priority indication information, tenant's configured information, Service Quality Amount(Quality of Service, abbreviation QoS)Configured information and application type configured information etc..MAC Address is used not only for Different NICs is distinguished, also carries other processing configured informations for being used for network management, the processing configured information can To be needed, to set, with the present embodiment not to be limited according to the network management of reality.
In actual applications, MAC Address generally use MAC-48 form, it is made up of 6 bytes, totally 48.Ethernet 2 bits retained in MAC Address are used for specific use:The lowest order of highest byte is used to represent unicast(0)Or multicast(1) Address;The secondary low level of highest byte is used to represent global administration address(0)Or local management address(1).When being designated as part During management, MAC Address can be distributed by local administrator oneself.In addition, Ethernet remains address " FF:FF:FF:FF:FF: FF " is used as broadcast address.
Then preferably, time of the lowest order and highest byte of the above-mentioned highest byte as specific use is removed in MAC Address Outside low level and MAC Address as broadcast address, other bits in MAC Address can be made full use of to be connect to carry network Mouth mark and processing configured information.Network interface identifies and processing configured information can be respectively the continuation field in MAC Address, It can also be discontinuous field, be pre-configured with procotol and the network equipment is identified.Network interface mark The digit of knowledge can also be set according to network equipment quantity actual in Ethernet, and the digit for handling configured information then can root Factually the network management on border is needed to set.
The ethernet frame that message processing apparatus can receive connected physical machine or virtual machine is sent, from ethernet frame Middle extraction source MAC and/or target MAC (Media Access Control) address.If the message processing apparatus is integrated in ethernet frame forwarding capability In the network equipment, or the message processing apparatus is not only with the Network Management Function also forwarding capability with ethernet frame, then The message processing apparatus can identify according to the network interface in target MAC (Media Access Control) address the ethernet frame being sent to corresponding network Interface card.
Step 20, according to the processing configured information, the message is handled.
Specifically, the type of network management can have a variety of, for example, access privilege control, traffic management, transmission control, QoS controls and safety management etc..Corresponding processing configured information can be set corresponding to different network managements, according to the processing Configured information is handled the message for carrying the processing configured information accordingly, to realize network management.
The message treatment method that the present embodiment provides, message processing apparatus receiving end/sending end equipment issue receiving device Message, wherein, message includes source medium access control MAC Address corresponding with sending ending equipment and carried out according to source MAC The data load of transmission, include in the spare field of source MAC for indicate how handle the processing configured information of message, According to processing configured information, message is handled.Because MAC Address not only includes being used for the device identification for identifying equipment, also Including the processing configured information for network management, MAC Address is taken full advantage of, avoids the wasting of resources of MAC Address.And And be extended on the basis of original MAC Address to realize effective management to network, improve network management effect.
Fig. 2 is second of message treatment method flow chart provided in an embodiment of the present invention.As shown in Fig. 2 in the present embodiment In, the processing configured information is tenant's identity configured information;The message also includes target MAC (Media Access Control) address, the purpose MAC Location includes being used for the device identification for identifying the receiving device;Correspondingly, step 20, it is described according to the processing instruction letter Breath, carrying out processing to the message includes:
Step 201, judge whether the tenant indicated by tenant's identity configured information has to the receiving device Access rights, if so, then sending the message to the reception using the source MAC and the target MAC (Media Access Control) address End equipment.
Specifically, the processing instruction message in MAC Address includes being used for the tenant's configured information for identifying different tenants, the rent Family configured information is specifically as follows tenant identification, to one tenant of unique mark.In the data center of virtualization, generally deposit In different tenants, a tenant can correspond to an equipment leasing user, may correspond to a kind of application, can be with root Tenant is divided according to other standards, each tenant often possesses one or more virtual machine.One virtual machine can be provided with one Individual or multiple virtual network interface cards.When a virtual machine is provided with a virtual network interface card, connect for the virtual network Network interface mark in the MAC Address of mouth card distribution can be with the unique mark virtual network interface card, or network interface mark The combination known with tenant's configured information can be with the unique mark virtual network interface card.When a virtual machine be provided with it is multiple virtual During NIC, network interface mark can include virtual machine mark and virtual network interface card mark, virtual machine mark and The combination of virtual network interface mark can be connect with the unique mark virtual network interface card, or virtual machine mark, virtual network The combination of mouth mark and tenant's configured information can be with the unique mark virtual network interface card.
Message processing apparatus obtains source MAC and target MAC (Media Access Control) address from the ethernet frame received, according to purpose Network interface mark in MAC Address can be determined to need the NIC accessed, i.e. Internet resources, can preset not Access rights with tenant to the Internet resources, such as the tenant having have the access rights to the Internet resources, some tenants Without the access rights to the Internet resources.There is the rent of access rights by access rights token record to the Internet resources Family.In actual applications, if the Internet resources are realized by a virtual machine, multiple virtual networks are provided with this virtual machine Interface card, then can set access rights table in units of virtual machine, i.e. it is virtual can to access this by the tenant with access rights All virtual network interface cards on machine.If the Internet resources are realized by more virtual machines, the more virtual machines can also belong to In a tenant, then access rights table can be set in units of tenant, i.e. the tenant with access rights can access realization All virtual machines of the tenant of the Internet resources.
Tenant configured information of the message processing apparatus in source MAC is inquired about access rights table, and judging should Whether the tenant that tenant's configured information is identified has the access rights to the Internet resources, if so, then sending out the ethernet frame Give purpose NIC.If it is not, then the ethernet frame is abandoned.
In the present embodiment, it is described send the message to the receiving device after, methods described also includes:
Step 202, the tenant indicated by tenant's identity configured information is accessed caused by the receiving device Flow is counted.
In the present embodiment, it is described send the message to the receiving device after, methods described also includes:
Step 203, flow caused by all tenants access receiving device is counted.
Specifically, message processing apparatus can also access the tenant Internet resources caused by flow count, And flow caused by accessing the Internet resources to all users counts.
The message treatment method that the present embodiment provides, by setting tenant's configured information in a mac address, it is possible to achieve base In the network management-application of tenant.
In the present embodiment, the network interface mark includes virtual machine mark and virtual network interface card mark, described Virtual machine is identified for identifying virtual machine, and the virtual network interface card identifies what is identified for identifying the virtual machine The virtual network interface card set on virtual machine.
In a kind of concrete implementation mode, the method for expressing of MAC Address can be as shown in table 1:
Table 1
Bit set Implication
MAC[39:20] Tenant identification(TID)
MAC[19:4] Virtual machine identifies(VMID)
MAC[3:0] Virtual network interface card identifies(VNICID)
Other Retain
MAC Address includes following information:Tenant identification TID(That is tenant's configured information), virtual machine mark VMID and virtual NIC identifies VNICID.Tenant identification TID is used to distinguish different tenants, and virtual machine mark VMID is same for distinguishing The different virtual machine of tenant, virtual network interface card identify VNICID to distinguish the different virtual network interfaces of same virtual machine Card.Wherein, tenant identification TID, virtual machine mark VMID and virtual network interface card mark VNICID combination may insure institute There is the uniqueness of the MAC Address of the virtual network interface card of virtual machine.It should be noted that MAC is defined when specifically used Location information can be not limited to the above information, can be the subset of these information or extended on the basis of subset.Tenant identification TID, virtual machine mark VMID and virtual network interface card mark VNICID shared by field and digit be also not necessarily limited to shown in table 1 Method for expressing.
Assuming that a kind of application environment, as shown in figure 3, in the application environment, is provided with two physical hosts, respectively One physical host 81 and the second physical host 82, an Ethernet switch 83, a management equipment 84 and certain computer can The Internet resources 85 of access.Six virtual machines are run on two physical hosts altogether, are virtual machine A0, virtual machine A1 respectively, it is empty Plan machine B0, virtual machine B1, virtual machine B2 and virtual machine C0.Wherein, virtual machine A0 and virtual machine A1 belongs to tenant A, virtual machine B0, Virtual machine B1 and virtual machine B2 belongs to tenant B, and virtual machine C0 belongs to tenant C.Message processing apparatus is provided with management equipment 84, Access of each tenant to Internet resources 85 is controlled, counts the flow of addressable tenant.It is stored with management equipment 84 default Access rights table, register which user has the authority of access Internet resources 85.Assuming that tenant A and tenant B, which has, accesses net The authority of network resource 85, tenant C do not access the authority of Internet resources 85.Then management equipment 84 is carried out according to mac address information The detailed process of access privilege control and traffic management is:When management equipment 84 receives an ethernet frame from tenant, First, the source MAC in ethernet frame is read, and from MAC [40:20] tenant identification TID is extracted;Secondly, access right is checked Table is limited, checks whether tenant identification TID there are access rights and handled.Allow the Ethernet if tenant there are access rights Frame by, and add up the tenant flow;Otherwise the ethernet frame is abandoned.Handling process more than, management equipment 84 will Allow to come self virtualizing machine A0, virtual machine A1, virtual machine B0, virtual machine B1 and virtual machine B2 ethernet frame by and cumulative tenant A and tenant B flowing of access, and the ethernet frame for carrying out self virtualizing machine C0 will be dropped.So management equipment 84 is achieved that visit Ask the function of control of authority and traffic statistics.
Fig. 4 is the third message treatment method flow chart provided in an embodiment of the present invention.As shown in figure 4, in the present embodiment In, the processing configured information is priority indication information;Correspondingly, step 20, it is described according to the processing configured information, it is right The message, which carries out processing, to be included:
Step 211, transmit queue determined according to the priority indication information, the message is sent into the transmit queue In, wherein, the quantity of the transmit queue is at least two, each transmit queue and a priority indication information It is corresponding;
Step 212, according to preset order by least two transmit queues message send.
Specifically, at least two transmit queues, a transmit queue and a priority indication information can be pre-set Corresponding, i.e., priority possessed by different transmit queues is different, and the high transmit queue of priority is first sent.In MAC Address Including priority indication information, then message processing apparatus can be according to the precedence information of the source MAC in ethernet frame, will The ethernet frame is sent into corresponding transmit queue.Ethernet frame in the high transmit queue of priority is preferentially sent.
The message treatment method that the present embodiment provides, by setting priority indication information in a mac address, it is possible to achieve Network management-application based on priority.
In another concrete implementation mode, the method for expressing of MAC Address can be as shown in table 2:
Table 2
Bit set Implication
MAC[39:20] Tenant identification(TID)
MAC[19:4] Virtual machine identifies(VMID)
MAC[3:2] Virtual network interface card identifies(VNICID)
MAC[1:0] Priority indication information(PRI)
Other Retain
MAC Address includes following information:Tenant identification TID, virtual machine mark VMID, virtual network interface card mark VNICID and priority indication information PRI, tenant identification TID are used to distinguish different tenants, and virtual machine mark VMID is used for area The different virtual machine of not same tenant, virtual network interface card identify VNICID to distinguish the different virtual nets of same virtual machine Network interface card, priority indication information PRI are used to identify different priority.Wherein, tenant identification TID, virtual machine mark VMID and virtual network interface card mark VNICID combination are with may insure the MAC of the virtual network interface card of all virtual machines The uniqueness of location.It should be noted that mac address information is defined when specifically used can be not limited to the above information, can To be the subset of these information or be extended on the basis of subset.Tenant identification TID, virtual machine mark VMID, virtual network interface Field and digit shared by card mark VNICID and priority indication information PRI are also not necessarily limited to method for expressing shown in table 2.
Message processing apparatus can realize the transmission control based on priority, and the message processing apparatus can be integrated in exchange In machine.Assuming that in the output port of interchanger, to be provided with four transmit queues be respectively Q0, Q1, Q2 and Q3, and sequence number is high Ethernet frame in transmit queue is preferentially sent.Then the implementation process of the transmission control based on priority is specific as follows:When one When individual ethernet frame reaches interchanger, message processing apparatus reads the source MAC in ethernet frame first, and from MAC [1:0] Extract priority indication information PRI;Secondly, message processing apparatus send ethernet frame according to priority indication information PRI value In the transmit queue of corresponding sequence number for entering output port.Ethernet frame in the high transmit queue of sequence number is preferentially sent.Specifically The ethernet frame in transmit queue can be sent successively from high to low according to sequence number.In the transmission process, interchanger can be with Obtain the tenant identification TID, virtual machine mark VMID and virtual network interface card mark of the target MAC (Media Access Control) address in the ethernet frame VNICID, the combination that VMID and virtual network interface card mark VNICID are identified by tenant identification TID, virtual machine uniquely determine One virtual network interface card, and the Ether frame is sent to the virtual network interface card.
In the present embodiment, the processing configured information is service quality QoS configured information;Correspondingly, step 20, it is described According to the processing configured information, carrying out processing to the message includes:
Link bandwidth resource is distributed according to the QoS configured informations, institute is sent by the link bandwidth resource of distribution State message.
Specifically, the application layer mark in MAC Address can include being used for the QoS configured informations for identifying qos requirement.When more When individual virtual machine shares physical transmission channel, message processing apparatus can determine according to the QoS configured informations in source MAC Qos requirement, and distribute link bandwidth resource according to qos requirement.For the higher ethernet frame of qos requirement, can distribute compared with Big link bandwidth resource, to ensure the transmission of the ethernet frame.
The message treatment method that the present embodiment provides, by setting QoS information in a mac address, it is possible to achieve based on QoS Network management-application.
Above-described embodiment is said from access privilege control, traffic management, transmission control and QoS controls etc. respectively It is bright, but the present invention is not limited thereto.Tenant's configured information, priority indication information and QoS can be set to refer to simultaneously in MAC Address Showing information to realize above-mentioned Network Management Function, MAC Address is also provided with the processing configured information of other application level, such as Application type configured information, application type configured information can be used for identifying different network application agreements.Message processing apparatus It can be judged whether to need to analyse in depth the ethernet frame according to the application type configured information, to improve network transmission Security.
In the present embodiment, the network interface mark includes physical machine mark and physical network interface card mark, described Physical machine is identified for identifying physical machine, and the physical network interface card identifies what is identified for identifying the physical machine The physical network interface card set in physical machine.
Specifically, when being not provided with virtual machine in physical machine, and multiple physical network interface cards are provided with the physical machine When, different physical machines can be distinguished by physical label, is distinguished by physical network interface card mark in same physical machine Different physical network interface cards.Physical machine identifies and the combination of physical network interface card mark can uniquely determine a Physical Network Network interface card.
In the present embodiment, also include being used for the device identification for identifying the sending ending equipment in the source MAC.
Fig. 5 is the first message processing apparatus structural representation provided in an embodiment of the present invention.As shown in figure 5, this implementation The message processing apparatus that example provides can specifically realize each step for the message treatment method that any embodiment of the present invention provides, Specific implementation process will not be repeated here.The message processing apparatus that the present embodiment provides specifically includes:
Receiving unit 11, the message of receiving device is issued for receiving end/sending end equipment, wherein, the message include with Medium access control MAC Address in source corresponding to the sending ending equipment and the data transmitted according to the source MAC carry Lotus, include for indicate how handling the processing configured information of the message in the spare field of the source MAC;
Processing unit 12, for according to the processing configured information, handling the message.
The message processing apparatus that the present embodiment provides, because MAC Address not only includes being used for the device identification for identifying equipment, Also include the processing configured information for network management, take full advantage of MAC Address, avoid the wasting of resources of MAC Address.And And be extended on the basis of original MAC Address to realize effective management to network, improve network management effect.
In the present embodiment, the processing configured information is priority indication information.The processing unit 12 is specifically used for Transmit queue is determined according to the priority indication information, the message is sent into the transmit queue, wherein, the transmission The quantity of queue is at least two, and each transmit queue is corresponding with a priority indication information;According to default Order sends the message at least two transmit queues.
In the present embodiment, the processing configured information is service quality QoS configured information.The processing unit 12 is specific For distributing link bandwidth resource according to the QoS configured informations, by disappearing described in the link bandwidth resource transmission of distribution Breath.
In the present embodiment, the processing configured information is tenant's identity configured information;The message also includes purpose MAC Address, the target MAC (Media Access Control) address include being used for the device identification for identifying the receiving device.The processing unit 12 is specific For judging whether the tenant indicated by tenant's identity configured information has the access rights to the receiving device, if It is then to send the message to the receiving device using the source MAC and the target MAC (Media Access Control) address.
In the present embodiment, the processing unit is further used for the rent indicated by tenant's identity configured information Flow caused by the family access receiving device is counted.
In the present embodiment, the processing unit is further used for producing all tenants access receiving device Raw flow is counted.
In the present embodiment, also include being used for the device identification for identifying the sending ending equipment in the source MAC.
The sending ending equipment is physical equipment or virtual machine facility, and the receiving device is physical equipment or virtual machine Equipment.
Fig. 6 is second of message processing apparatus structural representation provided in an embodiment of the present invention.As shown in fig. 6, this implementation The message processing apparatus that example provides can specifically realize each step for the message treatment method that any embodiment of the present invention provides, Specific implementation process will not be repeated here.The message processing apparatus that the present embodiment provides specifically includes:Processor 41 and memory 42, the memory 42 is used for store instruction.The processor 41 is coupled with the memory 42, and the processor 41 is configured to The instruction being stored in the memory 42 is performed, wherein, the processor 41 is configurable for receiving end/sending end equipment hair To the message of receiving device, wherein, the message is with including source medium access control MAC corresponding with the sending ending equipment Location and the data load transmitted according to the source MAC, include in the spare field of the source MAC for referring to Show the processing configured information for how handling the message;According to the processing configured information, the message is handled.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modifications or replacement, the essence of appropriate technical solution is departed from the scope of various embodiments of the present invention technical scheme.

Claims (14)

  1. A kind of 1. message treatment method, it is characterised in that methods described is applied to the network management procedure of Ethernet, including:
    Receiving end/sending end equipment issues the message of receiving device, wherein, the message includes corresponding with the sending ending equipment Source medium access control MAC Address and the data load that is transmitted according to the source MAC, the source MAC Include in spare field for indicate how handling the processing configured information of the message;
    According to the processing configured information, the message is handled.
  2. 2. message treatment method according to claim 1, it is characterised in that the processing configured information is priority indication Information;Correspondingly, described according to the processing configured information, carrying out processing to the message includes:
    Transmit queue is determined according to the priority indication information, the message is sent into the transmit queue, wherein, it is described The quantity of transmit queue is at least two, and each transmit queue is corresponding with a priority indication information;
    The message at least two transmit queues is sent according to preset order.
  3. 3. message treatment method according to claim 1, it is characterised in that the processing configured information is service quality QoS configured informations;Correspondingly, described according to the processing configured information, carrying out processing to the message includes:
    Link bandwidth resource is distributed according to the QoS configured informations, by disappearing described in the link bandwidth resource transmission of distribution Breath.
  4. 4. message treatment method according to claim 1, it is characterised in that the processing configured information is that tenant's identity refers to Show information;The message also includes target MAC (Media Access Control) address, and the target MAC (Media Access Control) address includes being used to identify the receiving device Device identification;Correspondingly, described according to the processing configured information, carrying out processing to the message includes:
    Judge whether the tenant indicated by tenant's identity configured information has the access rights to the receiving device, if It is then to send the message to the receiving device using the source MAC and the target MAC (Media Access Control) address.
  5. 5. message treatment method according to claim 4, it is characterised in that described to send the message to the reception After end equipment, methods described also includes:
    Flow caused by accessing the receiving device to the tenant indicated by tenant's identity configured information counts.
  6. 6. message treatment method according to claim 4, it is characterised in that described to send the message to the reception After end equipment, methods described also includes:Flow caused by accessing the receiving device to all tenants counts.
  7. 7. the message treatment method according to claim 1 or 4, it is characterised in that also include being used in the source MAC Identify the device identification of the sending ending equipment.
  8. A kind of 8. message processing apparatus, it is characterised in that described device is applied to the network management procedure of Ethernet, including:
    Receiving unit, the message of receiving device is issued for receiving end/sending end equipment, wherein, the message includes and the hair Medium access control MAC Address in source corresponding to sending end equipment and the data load transmitted according to the source MAC, it is described Include in the spare field of source MAC for indicate how handling the processing configured information of the message;
    Processing unit, for according to the processing configured information, handling the message.
  9. 9. message processing apparatus according to claim 8, it is characterised in that the processing configured information is priority indication Information;
    The processing unit is specifically used for determining transmit queue according to the priority indication information, by described in message feeding In transmit queue, wherein, the quantity of the transmit queue is at least two, each transmit queue and the priority Configured information is corresponding;The message at least two transmit queues is sent according to preset order.
  10. 10. message processing apparatus according to claim 8, it is characterised in that the processing configured information is service quality QoS configured informations;
    The processing unit is specifically used for distributing link bandwidth resource according to the QoS configured informations, passes through the chain of distribution Road bandwidth resources send the message.
  11. 11. message processing apparatus according to claim 8, it is characterised in that the processing configured information is tenant's identity Configured information;The message also includes target MAC (Media Access Control) address, and the target MAC (Media Access Control) address includes setting for identifying the receiving terminal Standby device identification;
    The processing unit is specifically used for judging whether the tenant indicated by tenant's identity configured information has and connect to described The access rights of receiving end equipment, if so, then being sent the message to using the source MAC and the target MAC (Media Access Control) address The receiving device.
  12. 12. message processing apparatus according to claim 11, it is characterised in that the processing unit is further used for pair Flow caused by tenant's access receiving device indicated by tenant's identity configured information is counted.
  13. 13. message processing apparatus according to claim 11, it is characterised in that the processing unit is further used for pair Flow caused by all tenants' access receiving device is counted.
  14. 14. the message processing apparatus according to claim 8 or 11, it is characterised in that also include using in the source MAC In the device identification for identifying the sending ending equipment.
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 CN104079508A (en) 2014-10-01
CN104079508B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296973A (en) * 2020-07-20 2021-08-24 阿里巴巴集团控股有限公司 Message processing method, message reading method, device and readable medium
CN114389905B (en) * 2021-12-08 2023-10-13 阿里巴巴(中国)有限公司 Network traffic statistics method, related device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* 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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN103141058B (en) For the network interface controller of virtual distributed business
CN104639372B (en) The correlating method and system of overlay network and physical network based on SDN
CN108667739A (en) Jamming control method, apparatus and system
CN103281252B (en) Message flow control method and device based on multi-path transmission
CN105556916B (en) The information statistical method and device of network flow
CN105337750B (en) Fibre channel sans configuration method and device
EP2086178A1 (en) Link aggregation method, device, mac frame receiving/sending method and system
CN104253767B (en) A kind of implementation method of virtual burst network and a kind of interchanger
CN106603550B (en) A kind of Network Isolation method and device
CN105264509A (en) Adaptive interrupt coalescing in a converged network
CN105099953B (en) The partition method and device of cloud data center virtual network
CN107800743A (en) Cloud desktop system, cloud management system and relevant device
CN112600684B (en) Bandwidth management and configuration method of cloud service and related device
CN108306832A (en) A kind of network flow quantity shunting method and device
CN108521397B (en) Method and system for accessing resource service
CN103533090A (en) Mapping method and device for simulating single physical network port into multiple logical network ports
CN104079508B (en) Message treatment method and device
CN105847179A (en) Method and device for concurrently reporting data in DPI system
CN106921534A (en) Data traffic monitoring and managing method and device
CN103001828A (en) Message statistical method and device and network device based on data flow
CN101808037A (en) Method and device for traffic management in switch network
CN109787911A (en) Method, control face entity and the transponder of load balancing
CN109039947A (en) Network packet De-weight method, device, network shunt equipment and storage medium
US11870707B2 (en) Bandwidth management and configuration method for cloud service, and related apparatus
CN109005122A (en) File transmitting method, device and the network equipment

Legal Events

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