The content of the invention
In order to solve the above technical problems, it is an object of the present invention to propose a kind of message biography that can quick and precisely transmitTransmission method, MEC equipment and system.
A kind of message transmitting method, for the message transmissions of MEC equipment, methods described includes:
When receiving message, judge whether the purpose IP of the message meets local IP rules;
If the purpose IP of the message does not meet the local IP rules, the message is subjected to transparent transmission forwarding;
If the purpose IP of the message meets the local IP rules, the message is subjected to processing locality.
The message transmitting method, after the judgement that the local IP rules are carried out to the message, turned by the transparent transmissionIt is more flexible that the mode of hair and the processing locality make it that the local shunting to the message is handled, and is entering the messageRow local shunting need not all carry out any modification when transmitting, so as to greatly reduce the deployment complexity of network system.
Above-mentioned message transmitting method, wherein, whether the purpose IP for judging the message meets the local IP rulesThe step of include:Judge whether the purpose IP included in the message meets institute according to the local IP segment limits of local IP or defaultState local IP rules.
Above-mentioned message transmitting method, wherein, the message is ARP messages, judges whether the purpose IP of the ARP messages accords withClosing the step of the local IP rules includes judging whether the purpose IP of the ARP messages is the local IP;
The step of transparent transmission forwarding, includes:
When receiving the ARP messages, and when the purpose IP for determining the ARP messages is not the local IP, by instituteState ARP messages and carry out transparent transmission forwarding;
The step of processing locality, includes:
When receiving the ARP messages, and when the purpose IP for determining the ARP messages is the local IP, according to instituteState ARP messages and arp response is carried out to the transmitting terminal of the ARP messages.
Above-mentioned message transmitting method, wherein, the message is VLAN messages, and the VLAN messages seal to the addition of VLAN headsThe user's message of dress and GTPU tunnel encapsulations, the IP heads of the user's message include the purpose IP of the VLAN messages;
The step whether the purpose IP of the message for judging to receive meets the local IP rules includes judgingWhether the purpose IP of the VLAN messages is in the local IP segment limits;
The step of transparent transmission forwarding, includes:
When receiving the VLAN messages, and according to determining the IP heads of the user's message in the VLAN messagesWhen the purpose IP of VLAN messages is not in the local IP segment limits, the VLAN messages are subjected to transparent transmission forwarding;
The step of processing locality, includes:
When the purpose IP for determining the VLAN messages is in the local IP segment limits, the mark of the VLAN messages is recordedKnow and the user's message is obtained to VLAN messages progress VLAN heads decapsulation and the decapsulation in GTPU tunnels, by the useFamily message, which is sent to LAN, to be responded.
Above-mentioned message transmitting method, wherein, the message is non-VLAN IP messages, and the non-VLAN IP messages are not addAdd VLAN heads to encapsulate but with the addition of the user's message of GTPU tunnel encapsulations, the IP heads of the user's message include the non-VLANThe purpose IP of IP messages;
The step whether the purpose IP for the message for judging to receive meets the local IP rules includes:Described in judgementWhether the IP heads for the user's message that non-VLAN IP messages include are the local IP or in the local IP segment limits, with rootIt is judged that the non-VLAN IP messages are carried out the transparent transmission forwarding or carry out the processing locality by result.
Above-mentioned message transmitting method, wherein, methods described also includes:
The MEC equipment detects the software and hardware state of the CPU processor of the MEC equipment in real time, when detecting the CPUDuring processor software and hardware exception, notify the physical network card of the MEC equipment to enter bypass condition so that the message pass through it is describedPhysical network card is directly transmitted.
A kind of MEC equipment, the MEC equipment include:
Message receiving module, for receiving message;
Whether judge module, the purpose IP for judging the message meet default local IP rules;
Transparent transmission forwarding module, the purpose IP for determining the message when the judge module do not meet the local IPWhen regular, the message is subjected to transparent transmission forwarding;
Processing locality module, the purpose IP for determining the message when the judge module meet the local IP ruleWhen then, processing locality is carried out to the message.
The transparent transmission of message is realized by the design of the MEC equipment, and passes through the transparent transmission forwarding module and instituteState the design of processing locality module so that the local shunting transmission more flexibility and reliability of the message.
Above-mentioned MEC equipment, wherein, the message is ARP messages, and the judge module is specifically used for judging the ARP reportsText purpose IP whether be the MEC equipment the machine IP;
The transparent transmission forwarding module includes:
ARP message transmission forwarding modules, the purpose IP for determining the ARP messages when the judge module are not institutesWhen stating the machine IP, the ARP messages are subjected to transparent transmission forwarding.
Above-mentioned MEC equipment, wherein, the message is VLAN messages, the VLAN messages for the addition of the encapsulation of VLAN heads andThe user's message of GTPU tunnel encapsulations, the IP heads of the user's message include the purpose IP of the VLAN messages;
The judge module be specifically used for judge the VLAN messages purpose IP whether the MEC equipment setting sheetIn ground IP segment limits;
The transparent transmission forwarding module also includes:
VLAN message transmission forwarding modules, for receiving the VLAN request messages when the MEC equipment, and according to instituteThe IP heads for stating the user's message in VLAN messages determine the sheet that the purpose IP of the VLAN messages is not set in the MEC equipmentIn ground IP segment limits, the VLAN messages are subjected to transparent transmission forwarding.
Above-mentioned MEC equipment, wherein, the processing locality module includes:
Arp response module, the purpose IP for determining the ARP messages received when the judge module is describedDuring the machine IP, arp response is carried out to the transmitting terminal of the ARP messages.
Above-mentioned MEC equipment, wherein, the processing locality module also includes:
VLAN decapsulation modules, for determining the purpose IP of the VLAN messages when the judge module in the MECIn the local IP segment limits that equipment is set, record the mark of the VLAN messages and VLAN head deblockings are carried out to the VLAN messagesThe decapsulation of dress and GTPU tunnels obtains the user's message;
Sending module, for the user's message to be sent to LAN.
Above-mentioned MEC equipment, wherein, the message is non-VLAN IP messages, and the non-VLAN IP messages are to be not added withVLAN heads encapsulate but with the addition of the user's message of GTPU tunnel encapsulations, and the IP heads of the user's message include the non-VLAN IPThe purpose IP of message;
The judge module is specifically used for:The IP heads of the user's message included to the non-VLAN IP messages carry out purposeIP judgement, so that the non-VLAN IP messages are carried out into the transparent transmission forwarding according to judged result or carry out the processing locality.
Above-mentioned MEC equipment, wherein, the physical network card of the MEC equipment is provided with fault detection module, the fault detectModule detects the software and hardware state of the CPU processor of the MEC equipment in real time, when detecting that the CPU processor software and hardware is differentChang Shi, the physical network card is notified to enter bypass condition, so that message is directly transmitted by the physical network card.
The present invention have also been devised a kind of message transfer system, and the message transfer system includes base station, core net, LANAnd MEC equipment, the MEC equipment are arranged in series between the base station and the core net.
The message transfer system has flexible and efficient message transmissions efficiency, and reduces the deployment of the MEC equipmentComplexity, reduce equipment cost and O&M cost.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to endSame or similar label represents same or similar element or the element with same or like function.Below with reference to attachedThe embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
In the description of the invention, term " longitudinal direction ", " transverse direction ", " on ", " under ", "front", "rear", "left", "right", " perpendicularDirectly ", the orientation of the instruction such as " level ", " top ", " bottom " or position relationship are based on orientation shown in the drawings or position relationship, are onlyFor the ease of the description present invention rather than require that the present invention must be therefore it is not intended that right with specific azimuth configuration and operationThe limitation of the present invention.
With reference to following description and accompanying drawing, it will be clear that these and other aspects of embodiments of the invention.In these descriptionsIn accompanying drawing, some particular implementations in embodiments of the invention are specifically disclosed, to represent to implement the implementation of the present inventionSome modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, the present inventionEmbodiment includes all changes, modification and the equivalent fallen into the range of the spirit and intension of attached claims.
The invention provides a kind of message transmitting method, and applied to the message transmissions of MEC equipment, the MEC equipment is located atBetween base station and core net, and LAN is served, Fig. 1 is the flow for the message transmitting method that first embodiment of the invention providesFigure, including step S10 to S40.
Step S10, receive message.
Step S20, judges whether the purpose IP of the message meets local IP rules.
When the step S20 judges that the purpose IP of the message does not meet the local IP rules, execution step S30;
Step S30, the message is subjected to transparent transmission forwarding.
When the step S20 judges that the purpose IP of the message meets the local IP rules, execution step S40;
Step S40, the message is subjected to processing locality.
The message transmitting method of the present embodiment is by judging it is right whether the purpose IP of the message meets the local P rulesThe message carries out transparent transmission forwarding or carries out processing locality, realizes between the base station, the MEC equipment and the core netFlexible transparent networking, the MEC equipment can be deployed between the base station and the core net with transparent, the base station andThe core net does not all need any modification, and deployment complexity is reduced so as to high degree.
Referring to Fig. 2, the flow chart that transparent transmission forwards in the message transmitting method provided for second embodiment of the invention, this realityThe message transmitting method for applying example offer is applied to the message transmissions of MEC equipment, the MEC equipment located at base station and core net itBetween, and LAN is served, after the message that the MEC equipment receives the base station or core net is sent, judge the messageWhether purpose IP meets the local IP rules, and whether the purpose IP for judging the message meets the local IP rulesStep includes:According to meeting whether the purpose IP that the local IP segment limits of local IP or default judge to include in the messageLocal IP rules;
When the message is ARP messages, the ARP messages are ARP request message or arp response message, are judged describedThe step of purpose IP of ARP request message is not default local IP, and the transparent transmission of the ARP messages forwards includes S11 to S61.
Step S11, receive the ARP request message that the base station is sent.
Step S21, the purpose IP for judging the ARP request message are not the local IP.
Step S31, the ARP request message transmission is forwarded to the core net.
Step S41, after the core net receives the ARP request message, processing generation is carried out to the ARP request messageArp response message, and send the arp response message.
Step S51, the purpose IP for judging the arp response message are not the local IP.
Step S61, the arp response message transmission is forwarded to the base station.
When the purpose IP of the ARP request message is not the local IP, the ARP request message is subjected to transparent transmission and turnedHair, the flow of the transparent transmission forwarding are:In order to realize that link setup relation is set to the MEC with the core net after electricity on the base stationPreparation goes out the request ARP messages, the ARP request message be in order to ask the MAC of the next-hop IP of the core net, it is describedAfter MEC equipment receives the ARP request message, the purpose IP for judging the ARP request message is not the local IP, is enteredAnd the ARP request message transmission is forwarded to the core net by the MEC equipment, the core net receives the ARP pleaseThe arp response message is sent to the MEC by the processing generation arp response message, the core net after seeking messageEquipment, because the purpose IP of the arp response message is not the local IP, so the MEC equipment is by the arp response reportLiterary transparent transmission is forwarded to the base station, it is achieved thereby that the normal link-building and communication between the base station and the core net.
Referring to Fig. 3, for the flow chart of processing locality in the message transmitting method of second embodiment of the invention offer, work as instituteIt is ARP messages to state message, when the purpose IP for judging the ARP messages is the local IP, the processing locality of the ARP messagesThe step of include S12 to S42.
Step S12, receive the ARP messages that the base station is sent.
Step S22, the purpose IP for judging the ARP messages are the local IP.
Step S32, the ARP messages are sent to the processing locality module of inside.
Step S42, arp response is carried out to the transmitting terminal of the ARP messages by the ARP messages.
When the purpose IP of the ARP messages is the local IP, by the ARP messages carry out processing locality, describedGround processing flow be:The base station sends the ARP in order to realize the link setup with the MEC equipment, to the MEC equipment and reportedText, after the MEC equipment receives the ARP messages, the purpose IP for judging the ARP messages is the local IP, describedAfter the processing locality module that MEC equipment sends the ARP to inside is handled, the transmitting terminal of the ARP messages is carried outArp response.
Referring to Fig. 4, the flow chart that transparent transmission forwards in the message transmitting method provided for third embodiment of the invention, this realityThe message transmitting method for applying example offer is applied to the message transmissions of MEC equipment, the MEC equipment located at base station and core net itBetween, and LAN is served, the message is VLAN messages, and the VLAN messages are VLAN request messages or VLAN response reportsText, the VLAN messages are that with the addition of the encapsulation of VLAN heads and the user's message of GTPU tunnel encapsulations, the IP heads of the user's messageThe purpose IP of the VLAN messages is included, judges the purpose IP of the VLAN messages whether in the local that the MEC equipment is setInclude S13 to S63 in IP sections, the step of the forwarding of the transparent transmissions of the LVAN messages.
Step S13, receive the VLAN request messages that the base station is sent.
Step S23, judge the purpose IP of the VLAN request messages not in the local IP segment limits.
Step S33, the VLAN request messages transparent transmission is forwarded to the core net.
Step S43, after the core net receives the VLAN request messages, processing production is carried out to the VLAN request messagesThe raw VLAN response messages, and send the VLAN response messages.
Step S53, judge the purpose IP of the VLAN response messages not in the local IP segment limits.
Step S63, the VLAN response messages transparent transmission is forwarded to the base station.
When the purpose IP of the VLAN request messages is not in the local IP segment limits, by the VLAN request messagesTransparent transmission forwarding is carried out, the flow of the transparent transmission forwarding is:The user's message is sent to the base station, the base station by user equipmentThe encapsulation of VLAN heads is added to the user's message and GTPU tunnel encapsulations obtain the VLAN request messages, the base station is againThe VLAN request messages are sent to the MEC equipment, the MEC equipment and judge the purpose IP of the VLAN response messagesNot in the local IP segment limits, VLAN request messages progress transparent transmission is forwarded to the core net by the MEC equipment,The core net carries out wireless protocols to the VLAN request messages and terminates to obtain the user's message, then by the user's messageIt is sent to internet, the internet is responded to obtain user response message to the user's message, then by the user responseMessage sends to the core net, the core net and carries out the encapsulation of VLAN heads and GTPU tunnel encapsulations to the user response messageThe VLAN response messages are obtained, the core net again sends the VLAN response messages to the MEC equipment, the MECAfter equipment judges the purpose IP of the VLAN response messages not in the local IP segment limits, the MEC equipment will described inVLAN response message transparent transmissions are forwarded to the base station, to realize the biography of the VLAN messages between the base station and the core netIt is defeated.
Referring to Fig. 5, be the flow chart of processing locality in the message transmitting method of third embodiment of the invention offer, it is describedThe step of processing locality of VLAN messages, includes S14 to S84.
Step S14, receive the VLAN request messages that the base station is sent.
Step S24, judge the purpose IP of the VLAN request messages in the local IP sections.
Step S34, the VLAN request messages are sent to the processing locality module of inside.
Step S44, the processing locality module record the mark of the VLAN request messages and the VLAN are asked to reportText carries out the decapsulation of VLAN heads and the decapsulation in GTPU tunnels obtains the user's message.
Step S54, the user's message is sent to the LAN.
Step S64, the LAN receive the user's message, and processing is carried out to the user's message and produces user responseMessage, and send the user response message.
Step S74, the encapsulation of VLAN heads and GTPU are carried out to the user response message according to the VLAN marks of recordThe VLAN response messages are obtained after tunnel encapsulation.
Step S84, the VLAN response messages are sent to the base station.
When the purpose IP of the VLAN messages is in the local IP segment limits, the VLAN request messages are carried out thisGround processing, the flow of the processing locality are:
The user's message is sent to the base station by user equipment, and the base station carries out adding VLAN heads to the user's messageEncapsulation and GTPU tunnel encapsulations obtain the VLAN request messages, and the base station again sends the VLAN request messages to describedMEC equipment, it is described when the MEC equipment judges that the purpose IP of the VLAN request messages is in the local IP segment limitsMEC equipment sends the VLAN request messages mark for the processing locality module of inside, recording the VLAN request messagesAnd the user's message is obtained to VLAN request messages progress VLAN heads decapsulation and the decapsulation in GTPU tunnels, it is describedThe user's message is sent to the LAN by MEC equipment, and the LAN receives the user's message, and the user is reportedText carries out processing and produces user response message, and the user response message is sent to the MEC equipment, the MEC equipmentThe user response message that the LAN returns is received, is identified according to the VLAN of record to the user response reportText obtains the VLAN response messages after carrying out the encapsulation of VLAN heads and GTPU tunnel encapsulations, and the MEC equipment is again by the VLANResponse message is sent to the base station, and the base station carries out VLAN encapsulation to the VLAN response messages and GTPU tunnel decapsulations obtainTo the user response message, and send to the user equipment.
When the message is non-VLAN IP messages, the non-VLAN IP messages are to be not added with the encapsulation of VLAN heads but with the addition ofThe user's message of GTPU tunnel encapsulations, the IP heads of the user's message include the purpose IP of the non-VLAN IP messages, to describedThe step of purpose IP of non-VLAN IP messages is judged also includes:
The IP heads of the user's message included to the non-VLAN IP messages carry out purpose IP judgement, judge described non-Whether the IP heads for the user's message that VLAN IP messages include are the local IP or in the local IP segment limits, with basisThe non-VLAN IP messages are carried out the transparent transmission forwarding or carry out the processing locality by judged result.
Further, in the present embodiment, the physical network card of the MEC equipment is provided with fault detection module, the eventBarrier detection module detects the software and hardware state of the CPU processor of the MEC equipment in real time, and under normal circumstances, the MEC equipment connectsReceive after first passing through the physical network card when base station is sent to the message of the core net, reach the CPU processor, pass throughThe physical network card is sent to again after crossing the CPU processor processing, and the physical network card is forwarded to the core net again, when describedWhen fault detection module detects the CPU processor software and hardware exception, the physical network card is notified to enter bypass condition, so thatThe base station and the core net carry out direct message transmissions by the physical network card.The link layer bypass technology can be mostEnsure the reliability of equipment in big degree, pass through the technology, it is possible to reduce the deployment complexity of MEC equipment, reduce equipment costAnd O&M cost.
Referring to Fig. 6, the structural representation of the MEC equipment 10 provided for fourth embodiment of the invention, the MEC equipment 10It is arranged between core net 30 and at least one base station 20, the MEC equipment 10 also serves a LAN 40, and the MEC is setStandby 10 include:
Message receiving module 11, for the message for receiving the base station 20 or the core net 30 is sent;
Whether judge module 12, the purpose IP for judging the message meet the local IP rules;
Transparent transmission forwarding module 13, the purpose IP for determining the message when the judge module 12 do not meet describedGround IP rules, transparent transmission forwarding is carried out by the message between the base station 20 and the core net 30;
Processing locality module 14, the purpose IP for determining the message when the judge module 12 meet the localIP rules, processing locality is carried out to the message.
The message is ARP messages, and the ARP messages are ARP request message or arp response message.
The transparent transmission forwarding module 13 includes ARP message transmissions forwarding module 15, the ARP message transmissions forwarding module 15Including:
ARP request message transmission forwarding module 17, for determining the ARP request message when the judge module 12When purpose IP is not the machine IP of the MEC equipment 10, the ARP request message transmission is forwarded to the core net 30, withAfter the core net 30 is received the ARP request message, processing is carried out to the ARP request message and produces arp response message,And the arp response message is sent to the MEC equipment 10;
Arp response message transmission forwarding module 18, for determining the arp response message when the judge module 12When purpose IP is not the machine IP, the arp response message transmission is forwarded to the base station 20, to realize the base station 20Normal link-building and communication between the core net 30.
The message is VLAN messages, and the VLAN messages are VLAN request messages or VLAN response messages, the VLANMessage is the user's message that with the addition of the encapsulation of VLAN heads and GTPU tunnel encapsulations, and the IP heads of the user's message include the VLANThe purpose IP of message, the MEC equipment 10 judge the VLAN messages purpose IP whether the MEC equipment 10 set sheetIn ground IP segment limits.
The transparent transmission forwarding module 13 also includes VLAN message transmissions forwarding module 16, and the VLAN message transmissions forward mouldBlock 16 includes:
VLAN request message transparent transmissions forwarding module 19, for when the MEC equipment 10 receive from the base station 20 it is describedVLAN request messages, and judge the local IP sections that the purpose IP of the VLAN request messages is not set in the MEC equipment 10In the range of when, by the VLAN request messages progress transparent transmission be forwarded to the core net 30 so that the core net 30 is to describedVLAN messages produce the VLAN response messages after being handled, and the VLAN response messages are sent to the MEC equipment10;
VLAN response message transparent transmissions forwarding module 21, received for the MEC equipment 10 from the core net 30 describedVLAN response messages, and judge the local IP sections that the purpose IP of the VLAN response messages is not set in the MEC equipment 10In the range of when, the VLAN response messages transparent transmission is forwarded to the base station 20, to realize the base station 20 and the core netThe transmission of VLAN messages between 30.
The processing locality module 14 includes:Arp response module 22, described in being received when the MEC equipment 10When the purpose IP of ARP messages is the machine IP, arp response is carried out to the transmitting terminal of the ARP messages.
The processing locality module 14 also includes:
VLAN decapsulation modules 23, for determining the VLAN sent from the base station 20 when the judge module 12When the purpose IP of request message is in the local IP segment limits that the MEC equipment 10 is set, the VLAN request messages are recordedIdentify and the user's message, institute are obtained to VLAN request messages progress VLAN heads decapsulation and the decapsulation in GTPU tunnelsState MEC equipment 10 and the user's message is sent to the LAN 40, so that the LAN 40 produces user response messageAnd the user response message is sent to the MEC equipment 10;
Sending module 24, for the user's message to be sent into the LAN 40, so that the LAN 40 producesUser response message simultaneously sends the user response message to the MEC equipment 10;
The VLAN package modules 25, for receiving the use of the return of LAN 40 when the MEC equipment 10During the response message of family, the encapsulation of VLAN heads and GTPU are carried out to the user response message according to the VLAN request marks of recordThe VLAN response messages are obtained after tunnel encapsulation, and the VLAN response messages are sent to the base station 20, with described in realizationThe transmission of VLAN messages between base station 20 and the core net 30.
The step of purpose IP of the message of the MEC equipment 10 to receiving judges also includes:When the reportWen Weifei VLAN IP messages, the non-VLAN IP messages are to be not added with the encapsulation of VLAN heads but with the addition of the use of GTPU tunnel encapsulationsFamily message, the IP heads of the user's message include the purpose IP of the non-VLANIP messages, and the MEC equipment 10 is to receivingThe step of purpose IP of the message is judged be:The MEC equipment 10 includes to the non-VLAN IP messages receivedThe IP heads of user's message carry out purpose IP judgement, with according to judged result will the non-VLAN IP messages progress it is describedPass forwarding or carry out the processing locality.
Referring to Fig. 7, the structural representation of the physical network card of the MEC equipment 10 provided for fourth embodiment of the invention, instituteTo state in MEC equipment 10 and be provided with physical network card 51 and CPU processor 52, the physical network card 51 is provided with fault detection module 53,The fault detection module 53 detects the software and hardware state of the CPU processor 52 in real time, when the fault detection module 53 is examinedWhen measuring the 52 software and hardware exception of CPU processor, the physical network card 51 is notified to enter bypass condition, so that the base station 20Direct message transmissions are carried out by the physical network card 51 with the core net 30.
Referring to Fig. 8, the structural representation of the message transfer system provided for fifth embodiment of the invention, the message passesDefeated system includes base station 20, core net 30, LAN 40 and MEC equipment 10, and the MEC equipment 10 is arranged on the core net20 between 30 and at least one base station, the MEC equipment 10 serves the LAN 40, and the base station 20 is gone back and userEquipment 50 is connected, and the core net 30 is also connected with internet 60.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:NotIn the case of departing from the principle and objective of the present invention a variety of change, modification, replacement and modification can be carried out to these embodiments, thisThe scope of invention is limited by claim and its equivalent.