CN114301831B - Service transmission method, device and storage medium - Google Patents
Service transmission method, device and storage medium Download PDFInfo
- Publication number
- CN114301831B CN114301831B CN202111507284.XA CN202111507284A CN114301831B CN 114301831 B CN114301831 B CN 114301831B CN 202111507284 A CN202111507284 A CN 202111507284A CN 114301831 B CN114301831 B CN 114301831B
- Authority
- CN
- China
- Prior art keywords
- service
- target
- message
- network
- driver
- 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
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a service transmission method, a device and a storage medium, relates to the technical field of communication, and is used for solving the problem of higher complexity of network construction in the prior art. The method comprises the following steps: after receiving the first service message for requesting transmission of the target service and including the service identifier of the target service, the routing policy corresponding to the service identifier may be determined by reading the pre-stored service routing information, and then the second service message for transmitting the target service may be transmitted according to the routing policy. Because the target service is a fixed network service sent by a fixed network or a mobile network service sent by a mobile network, the method and the device can realize the transmission of service messages of different network types on one device, thereby reducing the complexity of network construction.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a service transmission method, a device, and a storage medium.
Background
With the accelerated development of the fifth generation mobile communication technology (5 th-generation, 5G) mobile communication and gigabit optical broadband service, telecom operators tend to use a comprehensive bearer network to comprehensively carry the fixed network service and the mobile network service in a metropolitan area, and service messages of the fixed network subscribers can be transmitted to a fixed network subscriber gateway (broadband remote access server, BRAS) through an optical line terminal (optical line terminal, OLT) by the metropolitan area comprehensive bearer network so as to complete authentication, authorization and charging of the fixed network subscribers and complete service policy control based on subscriber sessions. Meanwhile, a baseband processing unit (building base band unite, BBU) of the 5G base station is accessed through the metropolitan area integrated bearer network, and service messages of the mobile network user are transmitted to a 5G core network user plane gateway (user plane function, UPF) so as to finish the operations of routing and forwarding of the mobile network user service data, data and service identification, action, policy execution and the like.
However, with the development of multi-access edge computing technology (multi-access edge computing, MEC), both BRAS and UPF need to sink further towards the user side to meet the needs of user traffic to be able to access the MEC nearby. In the prior art, aiming at different network types and service scenes of fixed network and mobile network, the deployed user plane gateway has different equipment forms and service processing methods. Operators need to deploy a plurality of user plane gateways in a fixed network and a plurality of user plane gateways in a mobile network at the edge position of the metropolitan area integrated bearer network respectively, so that the complexity of network construction is increased.
Disclosure of Invention
The application provides a service transmission method, a device and a storage medium, which are used for solving the problem of higher complexity of gateway network construction in the prior art.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, a service transmission method is provided, including: and receiving a first service message which is used for requesting to transmit a target service and comprises a service identifier of the target service, wherein the target service is a fixed network service sent through a fixed network or a mobile network service sent through a mobile network. Then, a routing policy corresponding to the service identification is determined by reading the pre-stored service routing information, and then, a second service message for transmitting the target service is transmitted according to the routing policy.
Optionally, the method further comprises: invoking a target driver to perform the processing of adding and de-encapsulating the data message on the first service message so as to obtain a second service message; when the target service is a fixed network service, the target driver is a first driver for carrying out the processing of adding and de-encapsulating the data message of the fixed network service; when the target service is a mobile network service, the target driver is a second driver for performing the encapsulation and decapsulation processing on the data message of the mobile network service.
Optionally, before the target driver performs the processing of encapsulating and decapsulating the data message on the first service message, the method further includes: and calling a target computing resource for the target driver so that the target driver performs the processing of adding and de-encapsulating the data message on the first service message.
Optionally, the method further comprises: and when the target service is the service type which cannot be processed by the target driver, calling another driver except the target driver to perform the encapsulation and decapsulation processing on the data message on the first service message so as to obtain a second service message, and sending the second service message.
Optionally, the method for reading the pre-stored service routing information and determining the routing policy corresponding to the service identifier specifically includes: invoking a target container operated through the container mirror image, and determining a routing strategy corresponding to the service identifier from service routing information; when the target service is a fixed network service, the target container is a first container for determining a routing strategy corresponding to the fixed network service; when the target service is a mobile network service, the target container is a second container for determining a routing policy corresponding to the mobile network service.
In a second aspect, there is provided a service transmission apparatus, including: a receiving unit, a determining unit and a transmitting unit; a receiving unit configured to receive a first service message for requesting a transmission target service; the target service is a fixed network service sent by a fixed network or a mobile network service sent by a mobile network; the first service message comprises a service identifier of the target service; the determining unit is used for reading the pre-stored service routing information and determining a routing strategy corresponding to the service identifier received by the receiving unit; the service routing information comprises routing information for transmitting fixed network service and routing information for transmitting mobile network service; and the sending unit is used for sending a second service message for transmitting the target service according to the routing strategy determined by the determining unit.
Optionally, the service transmission device further includes: a processing unit; the processing unit is used for calling the target driver to perform the encapsulation and de-encapsulation processing of the data message on the first service message received by the receiving unit so as to obtain a second service message; when the target service is a fixed network service, the target driver is a first driver for carrying out the processing of adding and de-encapsulating the data message of the fixed network service; when the target service is a mobile network service, the target driver is a second driver for performing the encapsulation and decapsulation processing on the data message of the mobile network service.
Optionally, the service transmission device further includes: a scheduling unit; and the scheduling unit is used for calling target computing resources for the target driver so that the target driver can carry out the processing of adding and de-packaging the data message on the first service message.
Optionally, the processing unit is further configured to: and when the target service is the service type which cannot be processed by the target drive, calling another drive except the target drive to perform the encapsulation and de-encapsulation processing of the data message on the first service message received by the receiving unit so as to obtain a second service message.
Optionally, the determining unit is specifically configured to: invoking a target container operated through the container mirror image, and determining a routing strategy corresponding to the service identifier from service routing information; when the target service is a fixed network service, the target container is a first container for determining a routing strategy corresponding to the fixed network service; when the target service is a mobile network service, the target container is a second container for determining a routing policy corresponding to the mobile network service.
In a third aspect, a service transmission apparatus is provided, including a memory and a processor; the memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus; when the service transmission device is operated, the processor executes the computer-executable instructions stored in the memory, so that the service transmission device executes the service transmission method according to the first aspect.
The service transmission device may be a network device or may be a part of a device in the network device, for example, a chip system in the network device. The system-on-chip is configured to support the network device to implement the functions involved in the first aspect and any one of its possible implementations, for example, to obtain, determine, and send data and/or information involved in the above-mentioned service transmission method. The chip system includes a chip, and may also include other discrete devices or circuit structures.
In a fourth aspect, there is provided a computer readable storage medium comprising computer executable instructions which, when run on a computer, cause the computer to perform the method of traffic transmission according to the first aspect.
In a fifth aspect, there is also provided a computer program product comprising computer instructions which, when run on a traffic transmission device, cause the traffic transmission device to perform the traffic transmission method according to the first aspect described above.
It should be noted that the above-mentioned computer instructions may be stored in whole or in part on the first computer readable storage medium. The first computer readable storage medium may be packaged together with the processor of the service transmission apparatus, or may be packaged separately from the processor of the service transmission apparatus, which is not limited in the embodiment of the present application.
The description of the second, third, fourth and fifth aspects of the present application may refer to the detailed description of the first aspect; the advantages of the second aspect, the third aspect, the fourth aspect and the fifth aspect may be referred to as analysis of the advantages of the first aspect, and will not be described here.
In the embodiment of the present application, the names of the above service transmission apparatuses do not limit the devices or functional modules, and in actual implementation, these devices or functional modules may appear under other names. Insofar as the function of each device or function module is similar to the present application, it is within the scope of the claims of the present application and the equivalents thereof.
These and other aspects of the present application will be more readily apparent from the following description.
The technical scheme provided by the application at least brings the following beneficial effects:
based on any one of the above aspects, the present application proposes a service transmission method, after receiving a first service message for requesting to transmit a target service and including a service identifier of the target service, determining a routing policy corresponding to the service identifier by reading pre-stored service routing information, and then sending a second service message for transmitting the target service according to the routing policy. Because the target service is a fixed network service sent through a fixed network or a mobile network service sent through a mobile network, the method and the device can realize the transmission of service messages of different network types on one device. Therefore, gateway equipment does not need to be deployed for services of different network types, the number of the gateway equipment is effectively reduced, and the complexity of network construction is further reduced.
Drawings
Fig. 1 is a schematic structural diagram of a service transmission system provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a gateway device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a gateway device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a target network according to an embodiment of the present application;
fig. 5 is a schematic hardware structure of a communication device according to an embodiment of the present application;
fig. 6 is a schematic diagram of another hardware structure of a communication device according to an embodiment of the present application;
fig. 7 is a schematic flow chart of a service transmission method provided in an embodiment of the present application;
fig. 8 is a flow chart of another service transmission method according to an embodiment of the present application;
fig. 9 is a flow chart of another service transmission method according to an embodiment of the present application;
fig. 10 is a flow chart of another service transmission method according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a service transmission device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the terms "first", "second", and the like are used to distinguish the same item or similar items having substantially the same function and effect, and those skilled in the art will understand that the terms "first", "second", and the like are not limited in number and execution order.
As described in the background art, the existing service transmission method requires a large number of gateway devices, resulting in high complexity of network construction.
In view of the foregoing, an embodiment of the present application provides a service transmission method, after receiving a first service message for requesting transmission of a target service and including a service identifier of the target service, determining a routing policy corresponding to the service identifier by reading pre-stored service routing information, and then sending a second service message for transmitting the target service according to the routing policy. Because the target service is a fixed network service sent through a fixed network or a mobile network service sent through a mobile network, the method and the device can realize the transmission of service messages of different network types on one device. Therefore, gateway equipment does not need to be deployed for services of different network types, the number of the gateway equipment is effectively reduced, and the complexity of network construction is further reduced.
The service transmission method is suitable for a service transmission system. Fig. 1 shows a structure of the service transmission system. As shown in fig. 1, the service transmission system includes: gateway device 101, transmitting end 102, and receiving end 103.
Wherein the transmitting end 102 is a network device in the network for transmitting messages, and the receiving end 103 is a network device in the network for receiving messages. The gateway device 101 is communicatively connected to the transmitting end 102 and the receiving end 103, respectively.
It should be understood that any network device in the network may be a transmitting end (e.g., the transmitting end 102 is a network device for transmitting messages) or a receiving end (e.g., the transmitting end 102 may be a network device for receiving messages).
In practical applications, the gateway device 101 may be connected to multiple sending terminals or multiple receiving terminals. For ease of understanding, fig. 1 illustrates an example in which a gateway apparatus 101 connects a transmitting end 102 and a receiving end 103.
As shown in fig. 2, gateway device 101 includes a central processing unit (central processing unit, CPU), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA), a network port, and a device port. The CPU is respectively connected with the ASIC and the FPGA through a high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIE) so as to realize that the forwarding function of the data message is unloaded to the ASIC and the FPGA. The ASIC connects the FPGA and the network port respectively through a four-stage pulse amplitude scaling (four-level pulse amplitude modulation, PAM 4) serializer/deserializer (SERDES). The FPGA is connected with the device port through PAM4 SERDES.
As shown in fig. 3, the operating system of the gateway device 101 is divided into a kernel layer and a user layer.
The kernel layer includes one of a target driver 301, i.e., an ASIC user plane function (user plane function, UPF) driver (ASIC-UPF-driver) (for performing a data packet encapsulation process on a service message of a mobile network service) or an ASIC driver (ASIC-driver) (for performing a data packet encapsulation process on a service message of a fixed network service), and another driver 302 other than the target driver, i.e., an FPGA driver (FPGA-driver) (for performing a message conversion process on a service that cannot be processed by the target driver).
The user layer includes a target container 303, either a UPF container or a BRAS container, running through container mirroring techniques, a resource scheduling module 304 (for scheduling computing resources in the gateway device 101).
Illustratively, the UPF container communicates (packet forwarding control protocol, PFCP) via a packet forwarding control protocol with a session management function (session management function, SMF) network element of a core network (the 5th generation core,5 GC) of the fifth generation mobile communication technology through an N4 interface, the N4 interface controls the delivery of messages to a UPF control plane, performs N4 message processing interactions, establishes UPF users, sessions, and rules, and replies with reply messages through the original path.
Optionally, the user layer further includes a configuration issuing module (for receiving network service configuration parameters issued by the network element management system and the network controller), a configuration parsing module (for parsing the configuration parameters, converting service configuration data into machine readable codes), and a database (for storing the service configuration data).
The transmitting end 102 and the receiving end 103 in fig. 1 may be terminals, base stations or core network devices in the target network.
The terminal may be, among other things, a device that provides voice and/or data connectivity to a user, a handheld device with wireless connectivity, or other processing device connected to a wireless modem. The wireless terminal may communicate with one or more core networks via a radio access network (radio access network, RAN). The wireless terminals may be mobile terminals such as mobile telephones (or "cellular" telephones) and computers with mobile terminals, as well as portable, pocket, hand-held, computer-built-in or car-mounted mobile devices which exchange voice and/or data with radio access networks, e.g. cell phones, tablet computers, notebook computers, netbooks, personal digital assistants (personal digital assistant, PDA).
The base station may be a base station (base transceiver station, BTS) in a global system for mobile communications (global system for mobile communication, GSM), a base station (base transceiver station, BTS) in a code division multiple access (code division multiple access, CDMA), a base station (node B) in a wideband code division multiple access (wideband code division multiple access, WCDMA), a base station (eNB) in an internet of things (internet of things, ioT) or a narrowband internet of things (NB-IoT), a base station in a future 5G mobile communication network or a future evolved public land mobile network (public land mobile network, PLMN), to which the embodiments of the present application do not impose any limitation.
Optionally, as shown in fig. 4, the structure of the target network may include: a plurality of terminals, a plurality of base stations, a plurality of gateway devices (including gateway device 401), a plurality of aggregation units (including aggregation unit 402), a plurality of core layer devices (including core layer device 403), and core network device 404. The gateway equipment, the aggregation units and the core layer equipment respectively form a ring network topology, and the terminal, the base station and the gateway equipment are in communication connection.
The core network device 404 is a device deployed in a communication cloud, and includes 5GC and BRAS-CP.
Alternatively, the core network device 404 may be one server in a server cluster (including multiple servers), or may be a chip in the server, or may be a system on a chip in the server, or may be implemented by a Virtual Machine (VM) deployed on a physical machine, which is not limited in this embodiment of the present application.
The basic hardware structures of the gateway apparatus 101, the transmitting end 102, and the receiving end 103 in the communication system are similar, and include elements included in the communication device shown in fig. 5 or fig. 6. The hardware configuration of the gateway apparatus 101, the transmitting end 102, and the receiving end 103 will be described below taking the communication devices shown in fig. 5 and 6 as an example.
Fig. 5 is a schematic diagram of a hardware structure of a communication device according to an embodiment of the present application. The communication device comprises a processor 21, a memory 22, a communication interface 23, a bus 24. The processor 21, the memory 22 and the communication interface 23 may be connected by a bus 24.
The processor 21 is a control center of the communication device, and may be one processor or a collective term of a plurality of processing elements. For example, the processor 21 may be a general-purpose central processing unit (central processing unit, CPU), or may be another general-purpose processor. Wherein the general purpose processor may be a microprocessor or any conventional processor or the like.
As one example, processor 21 may include one or more CPUs, such as CPU 0 and CPU 1 shown in fig. 5.
In a possible implementation, the memory 22 may exist separately from the processor 21, and the memory 22 may be connected to the processor 21 by a bus 24 for storing instructions or program code. The processor 21, when calling and executing instructions or program code stored in the memory 22, is capable of implementing the service transmission method provided in the following embodiments of the present invention.
In the embodiment of the present application, the software programs stored in the memory 22 are different for the gateway apparatus 101, the transmitting end 102, and the receiving end 103, so the functions realized by the gateway apparatus 101, the transmitting end 102, and the receiving end 103 are different. The functions performed with respect to the respective devices will be described in connection with the following flowcharts.
In another possible implementation, the memory 22 may also be integrated with the processor 21.
A communication interface 23 for connecting the communication device with other devices via a communication network, which may be an ethernet, a radio access network, a wireless local area network (wireless local area networks, WLAN) or the like. The communication interface 23 may include a receiving unit for receiving data, and a transmitting unit for transmitting data.
Bus 24 may be an industry standard architecture (industry standard architecture, ISA) bus, an external device interconnect (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus.
Fig. 6 shows another hardware configuration of the communication apparatus in the embodiment of the present invention. As shown in fig. 6, the communication device may include a processor 31 and a communication interface 32. The processor 31 is coupled to a communication interface 32.
The function of the processor 31 may be as described above with reference to the processor 21. The processor 31 also has a memory function and can function as the memory 22.
The communication interface 32 is used to provide data to the processor 31. The communication interface 32 may be an internal interface of the communication device or an external interface of the communication device (corresponding to the communication interface 23).
It should be noted that the structure shown in fig. 5 (or fig. 6) does not constitute a limitation of the communication apparatus, and the communication apparatus may include more or less components than those shown in fig. 5 (or fig. 6), or may combine some components, or may be arranged in different components.
The service transmission method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
As shown in fig. 7, the service transmission method provided in the embodiment of the present application is applied to a gateway device, and includes: S701-S703.
S701, the gateway device receives a first service message for requesting a transmission target service.
The target service is a fixed network service sent through a fixed network or a mobile network service sent through a mobile network.
Specifically, in the service transmission process, the gateway device may receive, through the ASIC, a fixed network service sent by the sending end through the fixed network or a mobile network service sent by the mobile network, so that the gateway device may perform message forwarding processing on the fixed network service or the mobile network service.
Wherein the first service message includes a service identification of the target service.
Alternatively, the fixed network service may be a home broadband service, a network protocol television (internet protocol television, IPTV) service, or an enterprise private line service.
Alternatively, the mobile network service may be a third generation mobile communication technology (3 th-generation, 3G), a fourth generation mobile communication technology (4 th-generation, 4G), or a 5G mobile broadband service.
Alternatively, the service identifier may be a service number, a service name, or the like.
S702, the gateway equipment reads the pre-stored service routing information and determines a routing strategy corresponding to the service identifier.
The service routing information comprises routing information for transmitting fixed network service and routing information for transmitting mobile network service.
Specifically, after receiving the first service message, in order to enable the second service message of the service message to be transmitted to the receiving end according to the routing policy, the gateway device may determine, from the service routing information stored in advance in the database, a corresponding routing policy according to the service identifier of the target service.
Alternatively, the routing policy may refer to a target network segment, a mask, a next hop device, a metric value, and so on.
Alternatively, the pre-stored traffic routing information may be acquired in advance by the gateway device.
Specifically, in connection with fig. 3, the method for obtaining service routing information by the gateway device may include: the configuration issuing module receives network service configuration parameters issued by the network element management system and the network controller. Then, the configuration analysis module analyzes the network service configuration parameters and converts the network service configuration parameters into service routing information of the machine-readable codes. Subsequently, the traffic routing information is stored in a database.
S703, the gateway equipment sends a second service message for transmitting the target service according to the routing strategy.
Specifically, in the service transmission process, the gateway device may send the second service message to the receiving end according to the routing policy.
Optionally, after receiving the first service message, the gateway device may perform processing of encapsulating and decapsulating the data message on the first service message, so as to obtain the second service message.
The preset gateway device receives a first service message (including a service identifier a) sent by the terminal and used for transmitting the service a. The gateway device reads the service routing information stored in the database in advance, and determines the routing strategy (including the destination address as the core network device) corresponding to the service identifier a. Then, the gateway device may perform a processing of decapsulating the data packet on the first service message, to generate a second service message with a destination address for transmitting the service a as the core network device. And then, the gateway equipment sends a second service message to the core network equipment according to the routing strategy.
In one embodiment, in conjunction with fig. 7, as shown in fig. 8, prior to S703, the method further comprises: s801.
S801, the gateway equipment calls a target driver to perform the encapsulation and decapsulation processing of the data message on the first service message so as to obtain a second service message.
When the target service is the fixed network service, the target drive is a first drive for carrying out the encapsulation and decapsulation processing of the data message on the fixed network service, and when the target service is the mobile network service, the target drive is a second drive for carrying out the encapsulation and decapsulation processing of the data message on the mobile network service.
Specifically, since the first service message is a service message communicated between the sending end and the gateway device, and the second service message is a service message communicated between the gateway device and the receiving end, a data message for transmitting the first service message is different from a data message for transmitting the second service message. Therefore, the gateway device may invoke the target driver corresponding to the network type according to the network type corresponding to the target service to perform the encapsulation and decapsulation processing of the data message on the first service message, so that the gateway device may update the first service message into the second service message.
Alternatively, in connection with fig. 3, the first driver may be an ASIC-driver in the kernel layer of the gateway device, and the second driver may be an ASIC-UPF-driver in the kernel layer of the gateway device.
Optionally, the method for determining the network type of the target service by the gateway device includes: the gateway device determines a network type of a port receiving the first traffic message as a network type of the target traffic. Or the gateway equipment determines the network type corresponding to the address field as the network type of the target service according to the address field carried in the received message of the first service message.
Illustratively, the header received by the preset gateway device for transmitting the first service message of the service a includes a point-to-point protocol over ethernet (PPPoE) address field on the ethernet. Since the PPPoE address field corresponds to a fixed network, the gateway device determines that service a is a fixed network service. After the gateway equipment determines that the routing strategy of the service A comprises a receiving end, the ASIC-driver is called to carry out the encapsulation and decapsulation processing of the data message on the first service message, so as to obtain a second service message. And then, the gateway equipment sends a second service message to the receiving end through the ASIC-driver.
In one embodiment, as shown in fig. 8, before S801, the method further includes: s802.
S802, the gateway equipment calls target computing resources for the target driver, so that the target driver performs the processing of adding and de-packaging the data message on the first service message.
Specifically, before the target driver is invoked to perform the processing of adding and decapsulating the data message on the first service message, the gateway device may determine, according to the service identifier of the target service, a hardware module or a software module corresponding to the service identifier. And then, the gateway equipment calls a corresponding hardware module or software module to provide target computing resources for the target driver so that the target driver can carry out the encapsulation and decapsulation processing of the data message on the first service message.
In connection with fig. 3, the resource scheduling module of the gateway device may determine, according to the service identifier of the target service, a hardware module or a software module corresponding to the service identifier. Then, the resource scheduling module transmits a request message requesting for the call to the corresponding hardware module or software module. The corresponding hardware module or software module provides the target computing resource for the target drive in response to the request message.
Optionally, the computing resources are CPU resources, memory resources, hard disk resources, network resources, and the like required by the gateway device during operation. In one embodiment, in conjunction with fig. 8, as shown in fig. 9, prior to S703, the method further comprises: s901.
And S901, when the target service is a service type which cannot be processed by the target driver, the gateway equipment calls another driver except the target driver to perform the encapsulation and de-encapsulation processing of the data message on the first service message so as to obtain a second service message.
Specifically, when the first service message is received, the gateway device may determine, according to the service identifier, whether the target service is a service type that cannot be processed by the target driver. When the target service is a service type which cannot be processed by the target driver, the gateway device can call another driver except the target driver to perform the encapsulation and decapsulation processing of the data message on the first service message so as to obtain a second service message, so that the gateway device can flexibly process multiple types of services.
Alternatively, in connection with fig. 3, another driver may be an FPGA-driver in the kernel layer of the gateway device.
The first service message (including the service identifier a) received by the gateway device and used for transmitting the service a is preset. When the service type that the target service cannot be processed by the target driver is determined according to the service identifier a, after the gateway equipment determines that the routing strategy of the service A comprises the receiving end, the FPGA-driver can be called to perform the encapsulation processing of the data message on the first service message, so as to obtain the second service message. And then, the gateway equipment sends a second service message to the receiving end through the FPGA-driver.
In one embodiment, referring to fig. 7, as shown in fig. 10, the method for determining a routing policy corresponding to a service identifier by reading, by a gateway device, pre-stored service routing information in S702 specifically includes: s1001.
S1001, the gateway equipment calls a target container running through the container mirror image, and determines a routing strategy corresponding to the service identifier from service routing information.
When the target service is a fixed network service, the target container is a first container for determining a routing policy corresponding to the fixed network service, and when the target service is a moving network service, the target container is a second container for determining a routing policy corresponding to the moving network service.
Specifically, when the gateway device receives the first service message, the network type corresponding to the target service may be determined. Then, the target driver of the gateway device sends the service type of the target service to the corresponding target container according to the network type. Then, the target container determines a routing strategy corresponding to the service identifier according to the service routing information of the database and sends the routing strategy to the target driver, so that the gateway equipment sends a second service message for transmitting the service message to the receiving end according to the routing strategy.
Alternatively, in connection with fig. 3, the first container may be a BRAS container in the user layer of the gateway device, and the second container may be a UPF container in the user layer of the gateway device.
The service identifier of the first service message is preset as a first packet message with 5-tuple flow as granularity. After the gateway device determines that the target service is a network-moving service, a message is sent to a UPF container through an ASIC-UPF-driver, and the UPF container generates a routing policy (including forwarding or discarding) with 5-tuple flow granularity. And the ASIC-UPF-driver forwards the message.
Alternatively, when the routing policy of the target service is acquired, the target driver may send a second service message for transmitting the target service according to the routing policy.
The first service message is illustratively a mobile network data flow follow-up message with 5-tuple flow as granularity. After the gateway equipment determines that the target service is the network-moving service, the data message forwarding processing (namely, the two-layer and three-layer message header decapsulation) is performed through the ASIC-UPF-driver, and the routing strategy is obtained to directly process and forward.
In summary, in the service transmission process of the service transmission device in the embodiment of the present application, after receiving a first service message for requesting to transmit a target service and including a service identifier of the target service, the service transmission device may determine a routing policy corresponding to the service identifier by reading pre-stored service routing information, and then send a second service message for transmitting the target service according to the routing policy. Because the target service is a fixed network service sent through a fixed network or a mobile network service sent through a mobile network, the method and the device can realize the transmission of service messages of different network types on one device. Therefore, gateway equipment does not need to be deployed for services of different network types, the number of the gateway equipment is effectively reduced, and the complexity of network construction is further reduced.
Specifically, after obtaining the updated service identifier, the server may send the updated service identifier to the second node device connected to the terminal, because the updated service identifier includes the unique identifier of the terminal.
The foregoing description of the solution provided in the embodiments of the present application has been mainly presented in terms of a method. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application may divide the function modules of the support server according to the above method example, for example, each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. Optionally, the division of the modules in the embodiments of the present application is schematic, which is merely a logic function division, and other division manners may be actually implemented.
Fig. 11 is a schematic structural diagram of a service transmission device according to an embodiment of the present application. The service transmission apparatus may be used to perform the method of service transmission shown in fig. 7, 8, 9 or 10. The service transmission apparatus shown in fig. 11 includes: a receiving unit 1101, a determining unit 1102, and a transmitting unit 1103.
A receiving unit 1101 for receiving a first service message for requesting a transmission target service. In connection with fig. 7, the receiving unit 1101 is configured to execute S701.
A determining unit 1102, configured to read the pre-stored service routing information, and determine a routing policy corresponding to the service identifier received by the receiving unit 1101. For example, in connection with fig. 7, the determining unit 1102 is configured to execute S702.
A sending unit 1103, configured to send a second service message for transmitting the target service according to the routing policy determined by the determining unit 1102. For example, in connection with fig. 7, the transmission unit 1103 is configured to execute S703.
Optionally, the service transmission device further includes: a processing unit 1104.
A processing unit 1104, configured to invoke the target driver to perform processing of encapsulating and decapsulating the data message on the first service message received by the receiving unit 1101, so as to obtain a second service message. For example, in connection with fig. 8, the processing unit 1104 is configured to execute S801.
Optionally, the service transmission device further includes: a scheduling unit 1105.
A scheduling unit 1105, configured to call a target computing resource for the target driver, so that the target driver performs processing of encapsulating and decapsulating the data message for the first service message. For example, in connection with fig. 8, the scheduling unit 1105 is configured to execute S802.
Optionally, the processing unit 1104 is further configured to, when the target service is a service type that cannot be processed by the target driver, invoke another driver other than the target driver to perform processing for encapsulating and decapsulating the data message for the first service message received by the receiving unit 1101, so as to obtain the second service message. For example, in connection with fig. 9, the processing unit 1104 is configured to execute S901.
Optionally, the determining unit 1102 is specifically configured to invoke the target container running through the container mirror image, and determine a routing policy corresponding to the service identifier from the service routing information. For example, in connection with fig. 10, the determination unit 1102 is configured to execute S1001.
The embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium includes computer-executable instructions that, when executed on a computer, cause the computer to perform the service transmission method provided in the foregoing embodiments.
The embodiment of the application also provides a computer program which can be directly loaded into a memory and contains software codes, and the computer program can realize the service transmission method provided by the embodiment after being loaded and executed by a computer.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer-readable storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and the division of modules or units, for example, is merely a logical function division, and other manners of division are possible when actually implemented. For example, multiple units or components may be combined or may be integrated into another device, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
Claims (10)
1. A method for transmitting traffic, comprising:
receiving a first service message for requesting transmission of a target service; the target service is a fixed network service sent by a fixed network or a mobile network service sent by a mobile network; the first service message comprises a service identifier of the target service;
reading pre-stored service route information and determining a route strategy corresponding to the service identifier; the service routing information comprises routing information for transmitting the fixed network service and routing information for transmitting the mobile network service;
invoking a target driver to perform the processing of adding and de-encapsulating the data message on the first service message so as to obtain a second service message; when the target service is the fixed network service, the target driver is a first driver for performing the processing of adding and de-encapsulating the data message on the fixed network service; when the target service is the network-moving service, the target driver is a second driver for performing the processing of adding and de-encapsulating the data message on the network-moving service;
And sending the second service message for transmitting the target service according to the routing strategy.
2. The service transmission method according to claim 1, wherein before the call target driver performs the decapsulation processing of the data packet on the first service message, the method further comprises:
and calling target computing resources for the target driver so that the target driver can carry out the encapsulation and decapsulation processing of the data message on the first service message.
3. The service transmission method according to claim 1, wherein before the second service message for transmitting the target service is sent according to the routing policy, further comprising:
and when the target service is a service type which cannot be processed by the target driver, calling another driver except the target driver to perform the encapsulation and de-encapsulation processing of the data message on the first service message so as to obtain the second service message.
4. The service transmission method according to claim 1, wherein the reading the pre-stored service routing information and determining the routing policy corresponding to the service identifier specifically includes:
invoking a target container operated through container mirror image, and determining a routing strategy corresponding to the service identifier from the service routing information; when the target service is the fixed network service, the target container is a first container for determining a routing policy corresponding to the fixed network service; and when the target service is the network moving service, the target container is a second container for determining a routing strategy corresponding to the network moving service.
5. A traffic transmission device, comprising: the device comprises a receiving unit, a determining unit, a processing unit and a transmitting unit;
the receiving unit is used for receiving a first service message for requesting to transmit a target service; the target service is a fixed network service sent by a fixed network or a mobile network service sent by a mobile network; the first service message comprises a service identifier of the target service;
the determining unit is used for reading the pre-stored service routing information and determining a routing strategy corresponding to the service identifier received by the receiving unit; the service routing information comprises routing information for transmitting the fixed network service and routing information for transmitting the mobile network service;
the processing unit is used for calling a target driver to perform the processing of adding and de-packaging the data message on the first service message received by the receiving unit so as to obtain a second service message; when the target service is the fixed network service, the target driver is a first driver for performing the processing of adding and de-encapsulating the data message on the fixed network service; when the target service is the network-moving service, the target driver is a second driver for performing the processing of adding and de-encapsulating the data message on the network-moving service;
The sending unit is configured to send the second service message for transmitting the target service according to the routing policy determined by the determining unit.
6. The traffic transmission device according to claim 5, further comprising: a scheduling unit;
the scheduling unit is configured to call a target computing resource for the target driver, so that the target driver performs the processing of encapsulating and decapsulating the data message on the first service message.
7. The traffic transmission device according to claim 5, wherein the processing unit is further configured to:
and when the target service is a service type which cannot be processed by the target drive, calling another drive except the target drive to perform the encapsulation and decapsulation processing of the data message on the first service message received by the receiving unit so as to obtain the second service message.
8. The traffic transmission device according to claim 5, wherein the determining unit is specifically configured to:
invoking a target container operated through container mirror image, and determining a routing strategy corresponding to the service identifier from the service routing information; when the target service is the fixed network service, the target container is a first container for determining a routing policy corresponding to the fixed network service; and when the target service is the network moving service, the target container is a second container for determining a routing strategy corresponding to the network moving service.
9. A service transmission device, comprising a memory and a processor; the memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus; when the service transmission apparatus is operated, the processor executes the computer-executable instructions stored in the memory to cause the service transmission apparatus to perform the service transmission method according to any one of claims 1 to 4.
10. A computer readable storage medium comprising computer executable instructions which, when run on a computer, cause the computer to perform the traffic transmission method according to any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111507284.XA CN114301831B (en) | 2021-12-10 | 2021-12-10 | Service transmission method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111507284.XA CN114301831B (en) | 2021-12-10 | 2021-12-10 | Service transmission method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114301831A CN114301831A (en) | 2022-04-08 |
CN114301831B true CN114301831B (en) | 2023-07-07 |
Family
ID=80967748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111507284.XA Active CN114301831B (en) | 2021-12-10 | 2021-12-10 | Service transmission method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114301831B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115277467B (en) * | 2022-07-29 | 2023-10-24 | 联想(北京)有限公司 | Communication method and device based on home gateway, gateway and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108471629A (en) * | 2017-02-23 | 2018-08-31 | 华为技术有限公司 | The control method of business service quality, equipment and system in transmission network |
CN110383762A (en) * | 2017-04-14 | 2019-10-25 | 华为技术有限公司 | A kind of methods, devices and systems of implementation strategy control |
CN111431803A (en) * | 2020-03-27 | 2020-07-17 | 中国联合网络通信集团有限公司 | Routing method and device |
WO2020187052A1 (en) * | 2019-03-19 | 2020-09-24 | 华为技术有限公司 | Network slice selection method and apparatus |
WO2020199896A1 (en) * | 2019-04-02 | 2020-10-08 | 华为技术有限公司 | Service flow routing control method, apparatus and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114390596A (en) * | 2018-08-13 | 2022-04-22 | 华为技术有限公司 | Method for processing service flow, communication method and device |
-
2021
- 2021-12-10 CN CN202111507284.XA patent/CN114301831B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108471629A (en) * | 2017-02-23 | 2018-08-31 | 华为技术有限公司 | The control method of business service quality, equipment and system in transmission network |
CN110383762A (en) * | 2017-04-14 | 2019-10-25 | 华为技术有限公司 | A kind of methods, devices and systems of implementation strategy control |
WO2020187052A1 (en) * | 2019-03-19 | 2020-09-24 | 华为技术有限公司 | Network slice selection method and apparatus |
WO2020199896A1 (en) * | 2019-04-02 | 2020-10-08 | 华为技术有限公司 | Service flow routing control method, apparatus and system |
CN111770545A (en) * | 2019-04-02 | 2020-10-13 | 华为技术有限公司 | Service flow routing control method, device and system |
CN111431803A (en) * | 2020-03-27 | 2020-07-17 | 中国联合网络通信集团有限公司 | Routing method and device |
Non-Patent Citations (4)
Title |
---|
3Gpp. "SA3-LI Living Document -- Mobile Cloud Services Lawful Interception Impact Evaluation v0.1.3._clean".3GPP tsg_sa\WG3_Security.2013,全文. * |
On the Scalability of Routing With Policies;Andras Gulyas;IEEE/ACM Transactions on Networking;第23卷(第5期);全文 * |
基于业务属性的SDN路由策略研究;李江舟;中国优秀硕士学位论文数据库;全文 * |
基于深度学习的路由调度机制研究;买天乐;中国优秀硕士学位论文数据库;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114301831A (en) | 2022-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11765686B2 (en) | Packet transmission method and apparatus for communicating between terminals of a same 5G LAN group | |
US20210006967A1 (en) | Method and device for relay transmission | |
US20230023571A1 (en) | Service processing method for proximity service, device, and system | |
US8824958B2 (en) | Relay node connection management | |
WO2022152238A1 (en) | Communication method and communication apparatus | |
JP6028292B2 (en) | Data partitioning method and device | |
US11489760B2 (en) | Multicast group creation method, multicast group joining method, and apparatus | |
EP4106482A1 (en) | Communication method and apparatus | |
US8923182B2 (en) | Method and apparatus for providing IPv6 link-layer adaptation over a wireless channel | |
KR102648031B1 (en) | Session management method and device | |
CN113873478B (en) | Communication method and device | |
WO2022033345A1 (en) | Pdu session establishment method, terminal device, and chip system | |
EP3499922B1 (en) | Method, device and computer-readable storage medium for applying qos based on user plane data mapping | |
US11399307B2 (en) | Service authorization method, terminal device and network device | |
US11678156B2 (en) | Method and terminal device for data transmission | |
US8744457B2 (en) | Unique radio bearer (RB) procedure | |
WO2020252710A1 (en) | Wireless communication method and device | |
CN107079524A (en) | The method and controller of a kind of data forwarding | |
US20220263879A1 (en) | Multicast session establishment method and network device | |
CN114301831B (en) | Service transmission method, device and storage medium | |
US20230371094A1 (en) | Communication method and apparatus | |
CN115915196A (en) | Link state detection method, communication device and communication system | |
CN104662991A (en) | Apparatus and method for communication | |
WO2023141909A1 (en) | Wireless communication method, remote ue, and network element | |
WO2023141877A1 (en) | Methods, devices, and systems for performing network slice replacement during mobility |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |