CN108551422A - A kind of gateway, its network message processing method, device and gateway storage medium - Google Patents

A kind of gateway, its network message processing method, device and gateway storage medium Download PDF

Info

Publication number
CN108551422A
CN108551422A CN201810278544.2A CN201810278544A CN108551422A CN 108551422 A CN108551422 A CN 108551422A CN 201810278544 A CN201810278544 A CN 201810278544A CN 108551422 A CN108551422 A CN 108551422A
Authority
CN
China
Prior art keywords
network message
service
network
local area
area network
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.)
Pending
Application number
CN201810278544.2A
Other languages
Chinese (zh)
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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201810278544.2A priority Critical patent/CN108551422A/en
Publication of CN108551422A publication Critical patent/CN108551422A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

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

Abstract

The invention discloses a kind of gateway, its network message processing method, device and gateway storage mediums, by the virtual local area network tags for receiving and identifying network message;By the virtual local area network tags of downlink network message by original outer net tag modification be privately owned label, the virtual local area network tags of uplink network message are reverted into outer net label by privately owned label;By virtual local area network tags, treated that uplink network message is forwarded to Wide Area Network interface, and by virtual local area network tags, treated that downlink network message is forwarded to mixed service lan interfaces.The network of multiple business type can be both corresponded to the same mixed service lan interfaces by the way of changing virtual local area network tags, multiple business is achieved in and transmission is realized by an interface, avoid the strong dependence between business and hardware.Even if increasing more type of service networks in practical applications all haves no need to change gateway hardware, the versatility of hardware design is enhanced, reduces hardware modifications cost.

Description

A kind of gateway, its network message processing method, device and gateway storage medium
Technical field
The present invention relates to field of communication technology, espespecially a kind of gateway, its network message processing method, device and gateway storage Medium.
Background technology
With the continuous development of technology in intelligent mobile terminal and smart home field, smart machine, which removes, at present has it Other than the function of script, internet can also be connected, there is open application platform, the diversified forms such as human-computer interaction may be implemented Function.
Since carrier market is provided simultaneously with multiple independent industry such as Interactive Internet TV (IPTV) business and internet Business data shape, smart machine need to distinguish different Operator Specific Services according to virtual LAN (Virtual Local Area Network, abbreviation VLAN) it is divided, after the data of different business are by gateway downlink, each business and an office Domain net (Local Area Network, abbreviation LAN) mouth is bound.However each LAN mouthfuls only transmit a kind of business datum, either Gateway or smart machine, it is LAN mouthfuls multiple if necessary to multiple business is transmitted, be required to be arranged, otherwise it cannot meet more The demand of business.
Invention content
A kind of gateway of present invention offer, its network message processing method, device and gateway storage medium, it is a variety of to realize Business realizes transmission by an interface, avoids the strong dependence between business and hardware.
In a first aspect, the present invention provides a kind of network message processing method of net, the gateway includes:Wide Area Network interface, Multiple lan interfaces and at least one mixed service lan interfaces;The method includes:
Reception needs to be forwarded to the mixed service lan interfaces or the net from the mixed service lan interfaces Network message;
Identify the virtual local area network tags of the network message received;
When the network message is to need to be forwarded to the downlink network message of the mixed service lan interfaces, by institute It is the predetermined type of service with the downlink network message that virtual local area network tags, which are stated, by original outer net tag modification Corresponding privately owned label, when the network message is the uplink network message from the mixed service lan interfaces, The virtual local area network tags of the network message are reverted to by privately owned label to the type of service phase with the uplink network message Corresponding outer net label;
By virtual local area network tags, treated that uplink network message is forwarded to the Wide Area Network interface, by virtual LAN Downlink network message after tag processes is forwarded to the mixed service lan interfaces;
Wherein, the type of service of the network message has predetermined one-to-one relationship with the outer net label, The type of service of the network message has predetermined one-to-one relationship with the privately owned label.
In one possible implementation, in the above method provided by the invention, further include:It is needing to be forwarded to institute State the downlink network message of mixed service lan interfaces the outer net label it is default when, for the downlink network message increase After the first privately owned label corresponding with the type of service of the downlink network message, it is forwarded to the mixed service LAN and connects Mouthful;
It is described first privately owned in the virtual local area network tags of the uplink network message from the mixing lan interfaces When label, after described the first of the uplink network message the privately owned label removal, it is forwarded to the Wide Area Network interface.
In one possible implementation, in the above method provided by the invention, need to be forwarded to institute in reception When the network message for stating mixed service lan interfaces includes the downlink network message of at least two types of service, it is described will be described Virtual local area network tags are corresponding privately owned with the type of service of downlink network message by original outer net tag modification Label, including:
It is successively that each downlink network message is former according to the correspondence of the type of service and privately owned label of network message Some outer net tag modifications are privately owned label corresponding with each type of service of downlink network message.
In one possible implementation, described by virtual local area network tags in the above method provided by the invention Treated, and downlink network message is forwarded to the mixed service lan interfaces, including:
By virtual local area network tags treated each downlink network message according to the excellent of predetermined type of service Grade is selected to be forwarded to the mixed service lan interfaces successively.
In one possible implementation, in the above method provided by the invention, the mixing is come from reception It is described by the network report when network message of business lan interfaces includes the uplink network message of at least two types of service The virtual local area network tags of text revert to outer network mark corresponding with the type of service of uplink network message by privately owned label Label, including:
According to the correspondence of the type of service and outer net label of network message, successively by each uplink network message Privately owned label reverts to outer net label corresponding with each type of service of uplink network message.
In one possible implementation, described by virtual local area network tags in the above method provided by the invention Treated, and uplink network message is forwarded to the Wide Area Network interface, including:
By virtual local area network tags treated each uplink network message according to the excellent of predetermined type of service Grade is selected to be forwarded to the Wide Area Network interface successively.
In one possible implementation, in the above method provided by the invention, the service class of the network message Type includes:Internet service, network TV business or webmaster business.
Second aspect, the present invention provide a kind of network message processing unit, including:
Receiving module needs to be forwarded to the mixed service lan interfaces or from the mixed service office for receiving The network message of domain network interface;
Identification module, the virtual local area network tags of the network message received for identification;
Processing module, for being the downlink net for needing to be forwarded to the mixed service lan interfaces in the network message By original outer net tag modification it is predetermined with the downlink network report by the virtual local area network tags when network message The corresponding privately owned label of type of service of text is the uplink from the mixed service lan interfaces in the network message When network message, the virtual local area network tags of the network message are reverted to and the uplink network message by privately owned label The corresponding outer net label of type of service;
Forwarding module, for treated that uplink network message is forwarded to the wide area network connects by virtual local area network tags Mouthful, by virtual local area network tags, treated that downlink network message is forwarded to the mixed service lan interfaces;
Wherein, the type of service of the network message has predetermined one-to-one relationship with the outer net label, The type of service of the network message has predetermined one-to-one relationship with the privately owned label.
The third aspect, the embodiment of the present invention provide a kind of gateway, including:Wide Area Network interface, multiple lan interfaces, at least One mixed service lan interfaces and processor;
The processor needs to be forwarded to the mixed service lan interfaces or from the mixed service for receiving The network message of lan interfaces;Identify the virtual local area network tags of the network message received;It is in the network message When needing to be forwarded to the downlink network message of the mixed service lan interfaces, by the virtual local area network tags by original Outer net tag modification is privately owned label corresponding with the type of service of downlink network message, is next in the network message From the uplink network message of the mixed service lan interfaces when, by the virtual local area network tags of the network message by privately owned Label reverts to outer net label corresponding with the type of service of uplink network message;After virtual local area network tags are handled Uplink network message be forwarded to the Wide Area Network interface, by virtual local area network tags, treated that downlink network message is forwarded to The mixed service lan interfaces;
Wherein, the type of service of the network message has predetermined one-to-one relationship with the outer net label, The type of service of the network message has predetermined one-to-one relationship with the privately owned label.
Fourth aspect, the embodiment of the present invention provide a kind of gateway storage medium, and the gateway storage medium is stored with gateway Executable instruction, the gateway executable instruction is for making the gateway execute any of the above-described method.
The present invention has the beneficial effect that:
Gateway, its network message processing method, device and gateway storage medium provided in an embodiment of the present invention, including:Extensively Domain network interface, multiple lan interfaces and at least one mixed service lan interfaces;It needs to be forwarded to mixing by receiving Business lan interfaces or network message from mixed service lan interfaces;Identify the virtual local area of the network message received Network mark label;When network message is the downlink network message for needing to be forwarded to mixed service lan interfaces, by virtual LAN Label is predetermined privately owned label corresponding with the type of service of downlink network message by original outer net tag modification, When network message is the uplink network message from mixed service lan interfaces, by the virtual local area network tags of network message Outer net label corresponding with the type of service of uplink network message is reverted to by privately owned label;Virtual local area network tags are handled Uplink network message afterwards is forwarded to Wide Area Network interface, and by virtual local area network tags, treated that downlink network message is forwarded to is mixed Conjunction business lan interfaces;Wherein, the type of service of network message has predetermined one-to-one relationship with outer net label, The type of service of network message has predetermined one-to-one relationship with privately owned label.Above-mentioned gateway provided by the invention is suitable For providing multiple business type network for smart machine, and need respectively to tie up the network of each type of service in the prior art The fixed scheme to a lan interfaces, gateway provided in an embodiment of the present invention can by the way of changing virtual local area network tags The network of multiple business type is both corresponded into the same mixed service lan interfaces, is achieved in multiple business by one Interface realizes transmission, avoids the strong dependence between business and hardware.Even if increasing more outer nets (fortune in practical applications Battalion's quotient's network) gateway hardware is all had no need to change, the versatility of hardware design is enhanced, hardware modifications cost is reduced.
Description of the drawings
Fig. 1 is one of gateway architecture schematic diagram provided in an embodiment of the present invention;
Fig. 2 is the flow chart of network message processing method provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of network message provided in an embodiment of the present invention processing;
Fig. 4 is the structural schematic diagram of network message processing unit provided in an embodiment of the present invention;
Fig. 5 is the second structural representation of gateway provided in an embodiment of the present invention.
Specific implementation mode
For problems of the prior art, an embodiment of the present invention provides a kind of gateway, its network message processing sides Method, device and gateway storage medium are realized that multiple business realizes transmission by an interface, are avoided strong between business and hardware Dependence.
Below in conjunction with the accompanying drawings, gateway provided in an embodiment of the present invention, its network message processing method, device and gateway are deposited Storage media is specifically described.
As shown in Figure 1, the embodiment of the present invention provides a kind of gateway, which includes:Wide Area Network interface WAN, multiple locals Network interface LAN and at least one mixed service lan interfaces LAN '.
For the gateway of structure as shown in Figure 1, the embodiment of the present invention provides a kind of network message processing method of gateway, such as Shown in Fig. 2, following below scheme can specifically include:
S201, reception need to be forwarded to mixed service lan interfaces or the network report from mixed service lan interfaces Text;
The virtual local area network tags for the network message that S202, identification receive;
When network message is the downlink network message for needing to be forwarded to mixed service lan interfaces, step is executed S203-S204;When network message is the uplink network message from mixed service lan interfaces, step S205- is executed S206;
S203, by virtual local area network tags by original outer net tag modification it is predetermined with downlink network message The corresponding privately owned label of type of service;
S204, by virtual local area network tags, treated that downlink network message is forwarded to mixed service lan interfaces;
S205, the virtual local area network tags of network message are reverted to by privately owned label to service class with uplink network message The corresponding outer net label of type;
S206, by virtual local area network tags, treated that uplink network message is forwarded to Wide Area Network interface.
Wherein, the type of service of network message has predetermined one-to-one relationship, network message with outer net label Type of service and privately owned label there is predetermined one-to-one relationship.
Above-mentioned gateway provided in an embodiment of the present invention is suitable for for smart machine providing multiple business type network, and existing The scheme that the network of each type of service is tied to a lan interfaces respectively, the embodiment of the present invention is needed to provide in technology Gateway the network of multiple business type can be both corresponded to the same mixing industry by the way of changing virtual local area network tags Business lan interfaces are achieved in multiple business and realize transmission by an interface, avoid the strong dependence between business and hardware Relationship.Even if increasing more outer nets (carrier network) in practical applications all haves no need to change gateway hardware, enhance hard The versatility of part design, reduces hardware modifications cost.
Specifically, above-mentioned network message processing method provided in an embodiment of the present invention, a variety of industry can be transmitted by being directed to The mixed service lan interfaces of service type network need the smart machine of multiple business type to answer correspondingly, connecting the interface This has processing capacity corresponding with gateway.Gateway can be transmitted to a variety of industry of smart machine by mixed service lan interfaces The network message of service type, and the network message of each type of service corresponds to a kind of privately owned label respectively, then smart machine The corresponding type of service with network message is needed in the network message sent by above-mentioned mixed service lan interfaces Corresponding privately owned label.And before using above-mentioned network message processing method provided in an embodiment of the present invention, it needs first Determine the agreement relationship between network mark label other than type of service and privately owned label.Since outer net is generally various operator's nets Network, and with the virtual office that differentiated service in carrier network interchanger is set in the network message that carrier network is transmitted Domain network mark label, the virtual local area network tags are known, are referred to as in embodiments of the present invention " outer net label ";And privately owned label Be then gateway according to network traffic types is not all virtual local area network tags that each type of service is configured, the privately owned label It can be configured and change according to actual needs, after the correspondence of privately owned label and type of service is determined, These privately owned labels are then carried by the network message that mixed service lan interfaces transmit, it can be true according to the difference of privately owned label Surely transmit be which kind of type of service network message.For example, for the network message of IPTV service, outer net label can be vlan B, and gateway can be vlan 666 for the privately owned label of its configuration.
From the point of view of gateway side, received network message, which is divided into, to be needed to be forwarded under mixed service lan interfaces Row network message and the uplink network message for coming from mixed service lan interfaces, will forwarding after downlink network Message processing To mixed service lan interfaces, uplink network Message processing aftereffect fatal position is forwarded to Wide Area Network interface.Identifying reception After the virtual local area network tags of network message, for downlink network message, the service class according to the downlink network message is needed Type stamps the privately owned label for being only applicable to this gateway, if the downlink network message has carried the outer net for being adapted to carrier network The outer net tag modification is then that privately owned label is forwarded to mixed service lan interfaces again by label.It is connect for example, coming from WAN The virtual local area network tags of the downlink network message of the Internet service of mouth are vlan A, then need to repair vlan A before turning It is forwarded to LAN ' interfaces after being changed to vlan 0.For uplink network message, then the privately owned label carried is needed to revert to suitable It should be forwarded to Wide Area Network interface again in the outer net label of carrier network.For example, coming from the upper of the IPTV service of LAN ' interfaces The virtual local area network tags of row network message are vlan 666, then turn after needing for vlan 666 to be revised as vlan B before turning It is sent to wan interface.
Make the network message of various businesses type all have its corresponding privately owned label in the Home Network Central Shanxi Plain as a result, mixes Business lan interfaces can only no longer bind the network of single type of service, but can be adapted for the net of multiple business type Network shares the interface.And be that corresponding privately owned label is arranged in the network messages of different service types, then it can be there are a variety of industry When the network of service type, data broadcasting is prevented, reduces the expense of system resource.
In alternatively possible existing application scenarios, the network message of the carrier network of some outer net access gatewaies Virtual local area network tags are default, then it is directed to such case, above-mentioned network message processing method provided in an embodiment of the present invention, and also Including:
It is downlink net when the outer net label for the downlink network message for needing to be forwarded to mixed service lan interfaces is default After network message increases the first privately owned label corresponding with the type of service of the downlink network message, it is forwarded to mixed service local Network interface;
It, will when the virtual local area network tags of the uplink network message from mixing lan interfaces are the first privately owned label After first privately owned label removal of uplink network message, it is forwarded to Wide Area Network interface.
The above situation is a kind of special circumstances in above-mentioned network message processing method, even if the virtual LAN of network message Label is default, which still falls within the network message of a certain type of service, therefore for the network of this type of service Still a corresponding privately owned label, i.e., the above-mentioned first privately owned label, then receiving can be arranged for it in message, the embodiment of the present invention In the downlink network message of this type of service, connect to be forwarded to mixed service LAN after its first privately owned label of increase Mouthful.And in the uplink network message for receiving this type of service, then it needs to be forwarded to after the first privately owned label removal wide Domain network interface.
Further, the network message processing method of above-mentioned gateway provided in an embodiment of the present invention, is particularly suitable for simultaneously The case where there are multiple business type carrier networks, then for receive need be forwarded to mixed service lan interfaces When network message includes the downlink network message of at least two types of service, above-mentioned step S203 can specifically include:
It is successively that each downlink network message is original according to the correspondence of the type of service and privately owned label of network message Outer net tag modification is privately owned label corresponding with each type of service of downlink network message.
Before running above-mentioned gateway provided in an embodiment of the present invention, configured and each industry for the network of various businesses type The corresponding privately owned label of service type, which is only applicable to the gateway, including two or more type of service Network when, need not be one physical local area network interface of network bound of each type of service again, and only by each type of service The virtual local area network tags of network message be revised as corresponding privately owned label, the network message of such multiple business type The same physical local area network interface can be shared, in embodiments of the present invention referred to as mixed service lan interfaces.
It, can be according to the significance level of type of service since there are the network messages of multiple business type to forward simultaneously Priority is forwarded, then above-mentioned step S204, can specifically include:
By virtual local area network tags treated each downlink network message according to the priority of predetermined type of service It is forwarded to mixed service lan interfaces successively.
For different application scenarios, the priority of the network message of each type of service is upper different in setting, for example, When the network message terminal of each type of service of forwarding needs to be transmitted to smart television, then the network message of IPTV service is excellent The highest that first grade should be set to protect smart television that the function of broadcasting TV may be implemented first, and then realizes online Etc. other functions.Therefore, in practical applications, the network message that each type of service is flexibly set according to particular condition in use is needed Forwarding priority.
Correspondingly, include the uplink of at least two business in the network message from mixed service lan interfaces of reception When network message, above-mentioned step S205 can specifically include:
According to the correspondence of the type of service and outer net label of network message, successively by the privately owned of each uplink network message Label reverts to outer net label corresponding with each type of service of uplink network message.
As described above, when the uplink network message of the type of service including two or more needs forwarding, for The network message of each type of service has the virtual local area network tags that its script is suitable for each outer net, therefore by these networks Message is forwarded to before Wide Area Network interface, needs the privately owned label of each network message reverting to its original outer net label again Forwarded upstream.
It similarly, can be according to the significance level of type of service when being forwarded simultaneously there are the network message of multiple business type Priority be forwarded, then above-mentioned step S206, can specifically include:
By virtual local area network tags treated each uplink network message according to the priority of predetermined type of service It is forwarded to Wide Area Network interface successively.
As described above, in practical applications, needing the network report that each type of service is flexibly arranged according to particular condition in use The forwarding priority of text.The embodiment of the present invention not to type of service and its priority orders specifically limited.
By taking gateway forwards business shown in Fig. 3 as an example, 163 public networks and IPTV private networks are entered by the wan interface of gateway Gateway, PC terminals only need the network of Internet service under normal circumstances, and smart television need simultaneously Internet service and The network of IPTV service.For the network message of 163 public networks, virtual local area network tags are default, and gateway processes module increases for it Privately owned label vlan tag1 are added to be forwarded to LAN ' interfaces again;For IPTV multicast network services, virtual local area network tags vlan 50, which is revised as vlan tag2 and is forwarded to LAN ' interfaces again by gateway processes module;It is mono- for IPTV Network service is broadcast, virtual local area network tags are vlan 45, which is revised as vlan by gateway processes module Tag3 is forwarded to LAN ' interfaces again.Smart television receives the multiple business class that LAN ' interfaces are sent by the wan interface that it is carried The network message of type, to be carried out at the same time IPTV service and Internet service.On the contrary, smart television can also be connect by WAN Mouth sends the network message of multiple business type to the LAN ' interfaces of gateway, is directed to the net that privately owned label is vlan tag1 at this time Network message, gateway processes module will remove the privately owned label and continue to be uploaded to wan interface;It is vlan tag3 for privately owned label Network message, gateway processes module restores it to continue to be uploaded to wan interface after vlan 45.Wherein, vlan tag1, Tag1, tag2, tag3 in vlan tag2, vlan tag3 could be provided as the arbitrary value in 0-4096, but distinguish original Some outer net labels are configured.LAN interface in gateway is identical with the example, in hardware of LAN ', appointing in lan interfaces Meaning is one or more when connection needs the equipment of multiple business, may be configured as mixed service lan interfaces.
In practical applications, the type of service of network message may include:Internet service, network TV business or webmaster Business.In addition to this, the embodiment of the present invention can be used there may be a variety of other types of network services in practical applications The above-mentioned network message processing method provided carries out the processing of virtual local area network tags, and the above type of service is only for example, originally Inventive embodiments do not limit the type of service of network message specifically.
Based on the same technical idea, the embodiment of the present invention additionally provides a kind of network message processing unit, such as Fig. 4 institutes Show, which may include:
Receiving module 41 is needed to be forwarded to mixed service lan interfaces or be connect from mixed service LAN for receiving The network message of mouth;
Identification module 42, the virtual local area network tags of the network message received for identification;
Processing module 43, for being the downlink network message for needing to be forwarded to mixed service lan interfaces in network message When, by virtual local area network tags by original outer net tag modification be the predetermined type of service phase with downlink network message Corresponding privately owned label, when network message is the uplink network message from mixed service lan interfaces, by network message Virtual local area network tags outer net label corresponding with the type of service of uplink network message is reverted to by privately owned label;
Forwarding module 44, for by virtual local area network tags, treated that uplink network message is forwarded to Wide Area Network interface, By virtual local area network tags, treated that downlink network message is forwarded to mixed service lan interfaces;
Wherein, the type of service of network message has predetermined one-to-one relationship, network message with outer net label Type of service and privately owned label there is predetermined one-to-one relationship.
Optionally, processing module 43 are additionally operable in the downlink network message for needing to be forwarded to mixed service lan interfaces Outer net label it is default when, increase for downlink network message corresponding with the type of service of the downlink network message first privately owned After label, it is forwarded to mixed service lan interfaces;In the virtual local area of the uplink network message from mixing lan interfaces When network mark label are the first privately owned label, after the first of uplink network message the privately owned label removal, it is forwarded to Wide Area Network interface.
Optionally, processing module 43, specifically for the network for needing to be forwarded to mixed service lan interfaces in reception When message includes the downlink network message of at least two types of service, according to pair of the type of service and privately owned label of network message It should be related to, be successively opposite with each type of service of downlink network message by the original outer net tag modification of each downlink network message The privately owned label answered.
Optionally, forwarding module 44, be specifically used for by virtual local area network tags treated each downlink network message according to The priority of predetermined type of service is forwarded to mixed service lan interfaces successively.
Optionally, processing module 43 are specifically used for the network message packet from mixed service lan interfaces in reception When including the uplink network message of at least two types of service, closed according to the type of service of network message is corresponding with outer net label System, reverts to outer net corresponding with each type of service of uplink network message by the privately owned label of each uplink network message successively Label.
Optionally, forwarding module 44, be specifically used for by virtual local area network tags treated each uplink network message according to The priority of predetermined type of service is forwarded to Wide Area Network interface successively.
On the other hand, the embodiment of the present invention also provides a kind of gateway, as shown in figure 5, the gateway may include:Wide area network connects Mouth WAN, multiple lan interfaces LAN, at least one mixed service lan interfaces LAN ' and processor 50.
Processor 50 needs to be forwarded to mixed service lan interfaces or from mixed service lan interfaces for receiving Network message;Identify the virtual local area network tags of the network message received;It is to need to be forwarded to mixed service in network message When the downlink network message of lan interfaces, it is and downlink network report by original outer net tag modification by virtual local area network tags The corresponding privately owned label of type of service of text is the uplink network message from mixed service lan interfaces in network message When, the virtual local area network tags of network message are reverted to by privately owned label corresponding with the type of service of uplink network message Outer net label;By virtual local area network tags, treated that uplink network message is forwarded to Wide Area Network interface, by virtual local area network mark Treated that downlink network message is forwarded to mixed service lan interfaces for label;
Wherein, the type of service of network message has predetermined one-to-one relationship, network message with outer net label Type of service and privately owned label there is predetermined one-to-one relationship.
The embodiment of the present invention also provides a kind of gateway storage medium, which is stored with the executable finger of gateway It enables, gateway executable instruction is for making gateway execute any of the above-described network message processing method.
Gateway, its network message processing method, device and gateway storage medium provided in an embodiment of the present invention, including:Extensively Domain network interface, multiple lan interfaces and at least one mixed service lan interfaces;It needs to be forwarded to mixing by receiving Business lan interfaces or network message from mixed service lan interfaces;Identify the virtual local area of the network message received Network mark label;When network message is the downlink network message for needing to be forwarded to mixed service lan interfaces, by virtual LAN Label is predetermined privately owned label corresponding with the type of service of downlink network message by original outer net tag modification, When network message is the uplink network message from mixed service lan interfaces, by the virtual local area network tags of network message Outer net label corresponding with the type of service of uplink network message is reverted to by privately owned label;Virtual local area network tags are handled Uplink network message afterwards is forwarded to Wide Area Network interface, and by virtual local area network tags, treated that downlink network message is forwarded to is mixed Conjunction business lan interfaces;Wherein, the type of service of network message has predetermined one-to-one relationship with outer net label, The type of service of network message has predetermined one-to-one relationship with privately owned label.Above-mentioned gateway provided by the invention is suitable For providing multiple business type network for smart machine, and need respectively to tie up the network of each type of service in the prior art The fixed scheme to a lan interfaces, gateway provided in an embodiment of the present invention can by the way of changing virtual local area network tags The network of multiple business type is both corresponded into the same mixed service lan interfaces, is achieved in multiple business by one Interface realizes transmission, avoids the strong dependence between business and hardware.Even if increasing more outer nets (fortune in practical applications Battalion's quotient's network) gateway hardware is all had no need to change, the versatility of hardware design is enhanced, hardware modifications cost is reduced.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of network message processing method of gateway, which is characterized in that the gateway includes:Wide Area Network interface, multiple locals Network interface and at least one mixed service lan interfaces;The method includes:
Reception needs to be forwarded to the mixed service lan interfaces or the network report from the mixed service lan interfaces Text;
Identify the virtual local area network tags of the network message received;
When the network message is to need to be forwarded to the downlink network message of the mixed service lan interfaces, by the void Quasi- Local Area Network tag is predetermined opposite with the type of service of downlink network message by original outer net tag modification The privately owned label answered, when the network message is the uplink network message from the mixed service lan interfaces, by institute State network message virtual local area network tags reverted to by privately owned label it is corresponding with the type of service of uplink network message Outer net label;
By virtual local area network tags, treated that uplink network message is forwarded to the Wide Area Network interface, by virtual local area network tags Treated, and downlink network message is forwarded to the mixed service lan interfaces;
Wherein, the type of service of the network message has predetermined one-to-one relationship with the outer net label, described The type of service of network message has predetermined one-to-one relationship with the privately owned label.
2. the method as described in claim 1, which is characterized in that further include:It is needing to be forwarded to the mixed service LAN When the outer net label of the downlink network message of interface is default, increase and the downlink network message for the downlink network message The corresponding first privately owned label of type of service after, be forwarded to the mixed service lan interfaces;
It is the described first privately owned label in the virtual local area network tags of the uplink network message from the mixing lan interfaces When, after described the first of the uplink network message the privately owned label removal, it is forwarded to the Wide Area Network interface.
3. the method as described in claim 1, which is characterized in that connect in the mixed service LAN that needs to be forwarded to of reception Mouthful network message when including the downlink network message of at least two types of service, it is described by the virtual local area network tags by original Some outer net tag modifications are privately owned label corresponding with the type of service of downlink network message, including:
It is successively that each downlink network message is original according to the correspondence of the type of service and privately owned label of network message Outer net tag modification is privately owned label corresponding with each type of service of downlink network message.
4. method as claimed in claim 3, which is characterized in that described by virtual local area network tags treated downlink network report Text is forwarded to the mixed service lan interfaces, including:
By virtual local area network tags treated each downlink network message according to the priority of predetermined type of service It is forwarded to the mixed service lan interfaces successively.
5. the method as described in claim 1, which is characterized in that in the net from the mixed service lan interfaces of reception When network message includes the uplink network message of at least two types of service, the virtual local area network tags by the network message Outer net label corresponding with the type of service of uplink network message is reverted to by privately owned label, including:
According to the correspondence of the type of service and outer net label of network message, successively by the privately owned of each uplink network message Label reverts to outer net label corresponding with each type of service of uplink network message.
6. method as claimed in claim 5, which is characterized in that described by virtual local area network tags treated uplink network report Text is forwarded to the Wide Area Network interface, including:
By virtual local area network tags treated each uplink network message according to the priority of predetermined type of service It is forwarded to the Wide Area Network interface successively.
7. method as claimed in any one of claims 1 to 6, which is characterized in that the type of service of the network message includes:Mutually Networking service, network TV business or webmaster business.
8. a kind of network message processing unit, which is characterized in that including:
Receiving module needs to be forwarded to the mixed service lan interfaces or from the mixed service LAN for receiving The network message of interface;
Identification module, the virtual local area network tags of the network message received for identification;
Processing module, for being the downlink network report for needing to be forwarded to the mixed service lan interfaces in the network message The virtual local area network tags by original outer net tag modification are predetermined with the downlink network message by Wen Shi The corresponding privately owned label of type of service is the uplink network from the mixed service lan interfaces in the network message When message, the virtual local area network tags of the network message are reverted to by privately owned label to the business with the uplink network message The corresponding outer net label of type;
Forwarding module will for by virtual local area network tags, treated that uplink network message is forwarded to the Wide Area Network interface Treated that downlink network message is forwarded to the mixed service lan interfaces for virtual local area network tags;
Wherein, the type of service of the network message has predetermined one-to-one relationship with the outer net label, described The type of service of network message has predetermined one-to-one relationship with the privately owned label.
9. a kind of gateway, which is characterized in that including:Wide Area Network interface, multiple lan interfaces, at least one mixed service local Network interface and processor;
The processor needs to be forwarded to the mixed service lan interfaces or from the mixed service local for receiving The network message of network interface;Identify the virtual local area network tags of the network message received;It is to need in the network message When being forwarded to the downlink network message of the mixed service lan interfaces, by the virtual local area network tags by original outer net Tag modification is privately owned label corresponding with the type of service of downlink network message, in the network message for from institute When stating the uplink network message of mixed service lan interfaces, by the virtual local area network tags of the network message by privately owned label Revert to outer net label corresponding with the type of service of uplink network message;By virtual local area network tags on treated Row network message is forwarded to the Wide Area Network interface, and by virtual local area network tags, treated that downlink network message is forwarded to is described Mixed service lan interfaces;
Wherein, the type of service of the network message has predetermined one-to-one relationship with the outer net label, described The type of service of network message has predetermined one-to-one relationship with the privately owned label.
10. a kind of gateway storage medium, which is characterized in that the gateway storage medium is stored with gateway executable instruction, described Gateway executable instruction is for making the gateway perform claim require 1-7 any one of them methods.
CN201810278544.2A 2018-03-30 2018-03-30 A kind of gateway, its network message processing method, device and gateway storage medium Pending CN108551422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810278544.2A CN108551422A (en) 2018-03-30 2018-03-30 A kind of gateway, its network message processing method, device and gateway storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810278544.2A CN108551422A (en) 2018-03-30 2018-03-30 A kind of gateway, its network message processing method, device and gateway storage medium

Publications (1)

Publication Number Publication Date
CN108551422A true CN108551422A (en) 2018-09-18

Family

ID=63517556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810278544.2A Pending CN108551422A (en) 2018-03-30 2018-03-30 A kind of gateway, its network message processing method, device and gateway storage medium

Country Status (1)

Country Link
CN (1) CN108551422A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473835A (en) * 2022-08-05 2022-12-13 北京罗克维尔斯科技有限公司 Flow statistical method and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710468A (en) * 2011-03-28 2012-10-03 华为技术有限公司 Customer service access method and system and access equipment
US20130329741A1 (en) * 2012-06-07 2013-12-12 Donald B. Grosser Methods systems and apparatuses for dynamically tagging vlans
CN107154898A (en) * 2016-03-02 2017-09-12 中兴通讯股份有限公司 A kind of connection control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710468A (en) * 2011-03-28 2012-10-03 华为技术有限公司 Customer service access method and system and access equipment
US20130329741A1 (en) * 2012-06-07 2013-12-12 Donald B. Grosser Methods systems and apparatuses for dynamically tagging vlans
CN107154898A (en) * 2016-03-02 2017-09-12 中兴通讯股份有限公司 A kind of connection control method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473835A (en) * 2022-08-05 2022-12-13 北京罗克维尔斯科技有限公司 Flow statistical method and related equipment
CN115473835B (en) * 2022-08-05 2023-09-26 北京罗克维尔斯科技有限公司 Flow statistics method and related equipment

Similar Documents

Publication Publication Date Title
CN110266592A (en) The communication means and device of SRV6 network and IP MPLS network
CN102300270B (en) Resource configuration method and device of return link control channel information
CN102647355A (en) LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
CN102368725B (en) Data receiving method of multiple network cards and system thereof
CN108076525A (en) Uplink time-domain resource dispatching method and the network equipment
CN101951665A (en) Routing method of double-card mobile terminal and double-card mobile terminal
CN103067292A (en) Websocket-transmission-based load balancing method and device
CN103228058A (en) Method of managing connectivity status within a mobile radio communications device
CN101605099B (en) Service binding method and device
CN102065018B (en) Method and system for transmitting message
CN102594886A (en) Method and device for direct communication between browsers, and communication system
CN106231007B (en) A kind of method and device for preventing MAC Address from drifting about
CN102511146A (en) Implementation method for session board controller pool and session board controller
CN107368334A (en) A kind of business plug-in unit interactive system and method
CN104683312A (en) Method and device for negotiating media multiplexing
CN108551422A (en) A kind of gateway, its network message processing method, device and gateway storage medium
CN110012107A (en) A kind of data communications method, unit, system and storage medium
CN102917370B (en) Method, device and system for determining corresponding near-end unit of far-end unit and far-end unit
CN104394075A (en) Message transmission method and equipment
CN101902460A (en) Method and device for generating and processing operating component of network access object
CN109168185B (en) Network scanning method and device based on network name space
CN101309154B (en) Datagram sending method, sending apparatus and transmission system
CN102316002A (en) Method and apparatus for configuration of virtual local area network
CN105430665A (en) Method and system for realizing multi-network mixed scale networking
CN103825767B (en) The implementation method and bridge of service quality

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180918