CN115701725B - Method and device for configuring channel for transmitting service - Google Patents

Method and device for configuring channel for transmitting service Download PDF

Info

Publication number
CN115701725B
CN115701725B CN202110880797.9A CN202110880797A CN115701725B CN 115701725 B CN115701725 B CN 115701725B CN 202110880797 A CN202110880797 A CN 202110880797A CN 115701725 B CN115701725 B CN 115701725B
Authority
CN
China
Prior art keywords
channel
service
information
layer
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110880797.9A
Other languages
Chinese (zh)
Other versions
CN115701725A (en
Inventor
金猛
赵曜
孙东哲
张景云
朱旭东
张晓风
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110880797.9A priority Critical patent/CN115701725B/en
Priority to PCT/CN2022/107612 priority patent/WO2023011231A1/en
Publication of CN115701725A publication Critical patent/CN115701725A/en
Application granted granted Critical
Publication of CN115701725B publication Critical patent/CN115701725B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method and a device for configuring a channel for transmitting service, wherein the method comprises the following steps: the basic service layer determines to establish a first service channel according to service requirements; the basic service layer sends first information to the access layer, and the first information is used for applying for a logic channel supporting a first access technology; the basic service layer receives second information from the access layer and is used for indicating the first service channel and the first logic channel to establish a mapping relation; the basic service layer sends third information to the second electronic equipment, and the third information is used for indicating the second electronic equipment to establish a second service channel; the basic service layer receives fourth information from the second electronic equipment and is used for indicating the second service channel and the first logic channel to establish a mapping relation; and the basic service layer determines the mapping relation between the first service channel and the second service channel according to the fourth information, and completes the establishment of the first service channel. The method can enable the upper layer service to be dynamically transmitted through a plurality of access technologies, and improves the flexibility of service transmission.

Description

Method and device for configuring channel for transmitting service
Technical Field
The present application relates to the field of communications, and more particularly, to a method and apparatus for configuring a channel for transmitting traffic.
Background
The electronic devices can communicate through a wireless short-range communication technology, so that information sharing and wireless transmission of service are realized. With the new needs and the development of new technologies, wireless short-range communication technologies are also continuously developed. In order to solve the demands facing the field of the whole industry Internet, the star flash alliance (SPARKLINK ALLIANCE) is established and aims to promote the innovation of the new generation wireless short-distance communication technology and the industrial ecology so as to bear the field applications of intelligent automobiles, intelligent houses, intelligent terminals, intelligent manufacturing and the like and meet the extremely performance demands.
In order to support the new generation wireless short-range communication technology and realize the complete flow of short-range service, the design of the transmission channel of the service needs to be carried out under a brand new protocol framework. Therefore, how to configure channels for transmitting traffic becomes a problem to be solved.
Disclosure of Invention
The application provides a method and a device for configuring a channel for transmitting a service, which can enable an upper layer service to be dynamically transmitted through a plurality of access technologies and improve the flexibility of service transmission.
In a first aspect, a method for configuring a channel for transmitting a service is provided, and the method is applied to a first electronic device, where the first electronic device includes a base application layer, a base service layer, and an access layer, where the base application layer is used to issue a service requirement, and the access layer supports multiple access technologies, and the method includes: the basic service layer determines to establish a first service channel according to the service requirement; the basic service layer sends first information to the access layer, wherein the first information is used for applying for a logic channel supporting a first access technology, and the first access technology is selected from the plurality of access technologies by the basic service layer; the basic service layer receives second information from the access layer, wherein the second information is used for indicating the first service channel and the first logic channel to establish a mapping relation; the basic service layer sends third information to the second electronic equipment, wherein the third information is used for indicating the second electronic equipment to establish a second service channel; the basic service layer receives fourth information from the second electronic device, wherein the fourth information is used for indicating the second service channel and the first logic channel to establish a mapping relation; and the basic service layer determines the mapping relation between the first service channel and the second service channel according to the fourth information, and completes the establishment of the first service channel.
In the embodiment of the application, the access layer of the first electronic device can support a plurality of access technologies. When the first electronic equipment and the second electronic equipment need to carry out wireless service or service distribution, a user does not need to select or specify which access technology to carry out service transmission, a base service layer automatically selects a bottom access technology according to service requirements, and a service channel is established for transmission. The method can realize compatibility of various access technologies and unification of upper layers, namely, a basic application layer does not need to perceive the access technologies, and the basic service layer completes functions of channel creation, distribution and the like. Therefore, the upper layer service can be dynamically transmitted through multiple access technologies, and the flexibility of service transmission is improved.
With reference to the first aspect, in one possible implementation manner, the first service channel belongs to a first service channel group, where the first service channel group includes at least one service channel, the first service channel group has a mapping relationship with a first port of the first electronic device, and the first service channel group is used to transmit data issued by the first port; the second service channel belongs to a second service channel group, the second service channel group comprises at least one service channel, the second service channel group has a mapping relation with a second port of the second electronic device, and the second service channel group is used for transmitting data issued by the second port; the first port, the first service channel, the first logic channel, the second service channel and the second port are used for transmitting services between the first electronic device and the second electronic device.
In the embodiment of the application, after the basic application layer issues the data to the basic service layer, the basic service layer can select one or more service channels from the service channel group to transmit, the basic application layer does not sense how the service channels are transmitted, and the transmission of the bottom layer can be shielded to the upper layer.
With reference to the first aspect, in one possible implementation manner, the determining, by the base service layer, to establish a first service channel according to the service requirement includes: and when the transmission state of the first service channel group does not meet the service requirement, the basic service layer determines to newly establish the first service channel in the first service channel group.
When the transmission state of the first service channel group does not meet the service requirement, for example, the service is blocked, the basic service layer can newly establish a first service channel in the first service channel group for service distribution so as to improve the service transmission efficiency.
With reference to the first aspect, in one possible implementation manner, before the determining, by the base service layer, to establish the first service channel according to the service requirement, the method further includes: the basic service layer receives the service requirement sent by the basic application layer, and the service requirement indicates the basic service layer to create the first service channel group; the basic service layer determines to establish the first service channel, wherein the first service channel is a first service channel in the first service channel group.
When a new service channel group needs to be created, a flow can be initiated by the base application layer, indicating the creation of the base service layer.
With reference to the first aspect, in one possible implementation manner, before the base service layer receives the service requirement sent by the base application layer, the method further includes: the basic application layer performs port negotiation with the second electronic device, and determines that the first electronic device uses the first port and the second electronic device uses the second port; the base service layer receiving the service requirement sent by the base application layer, including: the basic service layer receives fifth information sent by the basic application layer, wherein the fifth information is used for indicating to apply for a service channel for the first port; after the basic service layer determines the mapping relation between the first service channel and the second service channel according to the fourth information, the method further comprises: and the basic service layer sends sixth information to the basic application layer, wherein the sixth information is used for indicating the first port and the first service channel group to establish a mapping relation.
With reference to the first aspect, in one possible implementation manner, the first service channel is a bidirectional transmission channel; the fifth information comprises an identification of the first port and an identification of the second port; the sixth information includes an identification of the first port and a first mapping identification, where the first mapping identification is used to indicate the first traffic channel group.
The first service channel can be a bidirectional transmission channel, so that the first electronic equipment and the second electronic equipment can conveniently perform service transmission.
With reference to the first aspect, in one possible implementation manner, the first service channel is a unidirectional transmission channel; the fifth information includes an identification of the first port; the sixth information includes an identification of the first port and a first mapping identification, where the first mapping identification is used to indicate the first traffic channel group.
With reference to the first aspect, in a possible implementation manner, the fifth information further includes service channel type information and service quality indication information.
The service channel type information may indicate a service channel type, thereby enabling the basic service layer to establish a corresponding type of service channel.
With reference to the first aspect, in one possible implementation manner, before the base service layer sends the first information to the access layer, the method further includes: and the basic service layer carries out channel parameter negotiation with the second electronic equipment.
The basic service layer negotiates channel parameters with the second electronic equipment, and the channel can be established by using the negotiated parameters, so that the establishment failure of the subsequent process is prevented.
With reference to the first aspect, in one possible implementation manner, the determining, by the base service layer, to establish a first service channel according to the service requirement includes: the base service layer generates an identification of the first service channel.
With reference to the first aspect, in a possible implementation manner, the first information includes an identifier of the first service channel; the second information comprises the identification of the first service channel and the identification of the first logic channel; the third information comprises the identification of the first service channel and the identification of the first logic channel; the fourth information includes an identification of the second traffic channel and an identification of the first logical channel.
With reference to the first aspect, in a possible implementation manner, the first information includes logic channel type information and service quality information.
With reference to the first aspect, in one possible implementation manner, the first logical channel is an established logical channel, a reconfigured logical channel or a newly established logical channel.
With reference to the first aspect, in a possible implementation manner, the method further includes: when a preset condition is met, the basic service layer determines to release the first service channel; the basic service layer sends seventh information to the access layer, wherein the seventh information is used for applying to release the first logic channel; the basic service layer receives eighth information from the access layer, wherein the eighth information is used for indicating the first service channel and the first logic channel to be in a mapping relation release; the basic service layer sends ninth information to the second electronic equipment, wherein the ninth information is used for indicating the second electronic equipment to release the second service channel; the basic service layer receives tenth information from the second electronic device, wherein the tenth information is used for indicating the demapping relation between the second service channel and the first logic channel; and the basic service layer determines the demapping relation between the first service channel and the second service channel according to the tenth information, and finishes the release of the first service channel.
When the service is finished or the service channel is not needed to be split, the first service channel can be released, so that transmission resources are released, and the resource utilization rate is improved.
With reference to the first aspect, in one possible implementation manner, the preset condition includes: the first service channel does not transmit data within a preset duration; or the basic service layer receives the indication information sent by the basic application layer, where the indication information is used to indicate and release a first service channel group to which the first service channel belongs, where the first service channel group has a one-to-one mapping relationship with a first port of the first electronic device, and the first service channel group is used to transmit data sent by the first port.
When the first traffic channel does not transmit traffic for a long period of time, the first traffic channel may be released.
The first traffic channel may be released when the upper layer indicates that the first traffic channel group is no longer being used to transmit data issued by the first port.
With reference to the first aspect, in one possible implementation manner, before the determining, by the base service layer, to release the first service channel, the method further includes: the base service layer receives eleventh information sent by the base application layer, wherein the eleventh information is used for indicating to release a service channel for a first port of the first electronic device, the first port and a first service channel group have a mapping relationship, and the first service channel group comprises the first service channel; after the basic service layer determines that the first service channel and the second service channel are in the mapping relation according to the tenth information, the method further comprises: and the basic service layer receives twelfth information sent by the basic application layer, wherein the twelfth information is used for indicating the demapping relation between the first port and the first service channel group.
With reference to the first aspect, in a possible implementation manner, the eleventh information includes an identification of the first port; the twelfth information includes an identification of the first port.
With reference to the first aspect, in a possible implementation manner, the seventh information includes an identification of the first service channel; the eighth information comprises an identification of the first service channel; the ninth information comprises an identification of the first service channel; the tenth information includes an identification of the second traffic channel.
With reference to the first aspect, in one possible implementation manner, the method further includes: parameters of the first logical channel remain unchanged or are reconfigured; or the first logical channel is deleted.
With reference to the first aspect, in one possible implementation manner, the multiple access technologies include a star-flash base SLB access technology and a star-flash low-power SLE access technology.
In a second aspect, there is provided an apparatus for configuring a channel for transmitting traffic, comprising means or units for performing the method of the first aspect or any one of the possible implementations of the first aspect. The module or unit may be a hardware circuit, or may be software, or may be implemented by combining a hardware circuit with software.
Alternatively, the device may be an electronic device, or may be a chip in the electronic device.
In one possible design, the apparatus includes a processing unit and a transceiver unit. When the apparatus is an electronic device, the processing unit may be a processor and the transceiver unit may be a transceiver. When the apparatus is a chip in an electronic device, the processing unit may be a processor and the transceiver unit may be an input/output interface, a pin, a circuit, or the like. The transceiver unit may be referred to as a communication interface.
In one possible design, the apparatus further includes a storage unit, where the storage unit is configured to store instructions, and the processing unit executes the instructions stored in the storage unit, so that the apparatus performs the method in the first aspect or any one of the possible implementation manners of the first aspect. When the apparatus is an electronic device, the storage unit may be a memory. When the apparatus is a chip in an electronic device, the storage unit may be a storage unit (for example, a register, a cache, or the like) in the chip, or may be a storage unit (for example, a read only memory, a random access memory, or the like) located outside the chip in the electronic device.
In a third aspect, an apparatus for configuring a channel for transmitting traffic is provided, comprising: a memory for storing a computer program; a processor for executing a computer program stored in the memory to cause the apparatus to perform the method of the first aspect or any one of the possible implementation manners of the first aspect.
Optionally, the apparatus further comprises a transceiver.
In a fourth aspect, an apparatus for configuring a channel for transmitting traffic is provided, comprising: at least one processor and a communication interface for providing input or output of instructions and/or data to the at least one processor, the at least one processor executing code instructions to cause the apparatus to perform the method of the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, a system on a chip is provided, comprising at least one processor, wherein program instructions, when executed in the at least one processor, cause the at least one processor to perform the method of the first aspect or any of the possible implementations of the first aspect.
In one possible design, the chip system further includes a memory for holding program instructions and/or data. The chip system may be formed of a chip or may include a chip and other discrete devices.
In one possible design, the system on a chip further comprises a transceiver for providing input or output of instructions and/or data to the at least one processor.
In a sixth aspect, there is provided a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of the first aspect or any of the possible implementations of the first aspect.
It should be noted that, the above computer program code may be stored in whole or in part on a first storage medium, where the first storage medium may be packaged together with the processor or may be packaged separately from the processor, and embodiments of the present application are not limited in this regard.
In a seventh aspect, a computer readable medium is provided, storing computer executable instructions that when run on a computer cause the computer to perform the method of the first aspect or any one of the possible implementations of the first aspect.
In an eighth aspect, a communication system is provided comprising the first electronic device and the second electronic device above.
Alternatively, the first electronic device may be an apparatus as described in any one of the second to fourth aspects.
Drawings
Fig. 1 is a schematic diagram of a communication system to which an embodiment of the present application is applicable.
Fig. 2 is a schematic diagram of a protocol framework according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of creating a non-default traffic channel according to an embodiment of the present application.
Fig. 4 is a schematic flow chart of creating a non-default traffic channel according to another embodiment of the present application.
Fig. 5 is a schematic diagram of a conflict occurring in a process of creating a non-default service channel according to an embodiment of the present application.
Fig. 6 is a schematic diagram of resolving conflicts in creating a non-default traffic channel according to an embodiment of the present application.
Fig. 7 is a schematic flow chart of adding a non-default sub-service channel according to an embodiment of the present application.
Fig. 8 is a schematic flow chart of deleting a non-default sub-service channel according to an embodiment of the present application.
Fig. 9 is a schematic flow chart of releasing a non-default service channel according to an embodiment of the present application.
Fig. 10 is a schematic flow chart diagram of a method for configuring a channel for transmitting traffic according to an embodiment of the present application.
Fig. 11 is a schematic flow chart of a method of configuring a channel for transmitting traffic according to another embodiment of the present application.
Fig. 12 is a schematic structural view of an apparatus provided in one embodiment of the present application.
Fig. 13 is a schematic structural view of an apparatus provided in another embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
Fig. 1 shows a schematic diagram of a communication system to which an embodiment of the present application is applied. As shown in fig. 1, the communication system 100 includes a plurality of electronic devices, any two of which can communicate with each other.
Taking any one of the plurality of electronic devices as an example, the electronic device may be any device having a wireless transceiving function, including but not limited to a cellular phone (cellular phone), a cordless phone, a session initiation protocol (session initiation protocol, SIP) phone, a smart phone (smart phone), a wireless local loop (wireless localloop, WLL) station, a Personal Digital Assistant (PDA), a handheld device having a wireless communication function, a computing device, a vehicle-mounted device, a wearable device, an unmanned aerial vehicle device, an electronic device in the internet of things or the internet of vehicles, other devices connected to a wireless modem, and the like.
The electronic device may also be an electronic device in Virtual Reality (VR), an electronic device in augmented reality (augmented reality, AR), an electronic device in industrial control (industrial control) (e.g., smart manufacturing), an electronic device in unmanned (SELF DRIVING), an electronic device in remote medical (remote medical), an electronic device in smart grid (SMART GRID), an electronic device in smart city (SMART CITY), an electronic device in smart home (smart home), etc.
The electronic device may also be a personal portable electronic device, a computer peripheral device, and various household or industrial electrical devices including, but not limited to, smart phones (smart phone), smart screens, smart speakers (e.g., artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) speakers, high-fidelity (HIGH FIDELITY, hiFi) speakers), smart sensors, television (television) wireless headphones, VR head displays, tablet computers, displays, cameras, laptops, laptop computers (laptop computers), car computers, car terminals (e.g., microphones, speakers, etc.), projectors, printers, smart bracelets (smart wristband), smart watches (SMART WATCH), smart glasses, smart cars, smart lathes, intelligent monitoring devices, and the like.
The embodiment of the application does not particularly limit the specific form of the electronic device. The types of the plurality of electronic devices in the communication system 100 may be partially identical, may be completely identical, or may be completely different.
By way of example, and not limitation, communication system 100 is shown to include electronic devices 101, 102, 103, 104, 105, 106, 107. Any one of the electronic devices 101 to 107 may be any one of the forms of the electronic devices mentioned above. It will be appreciated that the number of electronic devices included in communication system 100 may be greater or lesser, and embodiments of the present application are not limited in this regard, but include at least two electronic devices. It should be noted that, the communication system 100 shown in fig. 1 is only schematically illustrated, and other devices, such as a router or a base station, may be further included in the communication system, which is not limited by the embodiment of the present application.
The electronic devices can communicate through a wireless short-range communication technology, so that information sharing and wireless transmission of service are realized. With the new needs and the development of new technologies, wireless short-range communication technologies are also continuously developed. In order to solve the demands facing the field of the whole industry Internet, the star flash alliance (SPARKLINK ALLIANCE) is established and aims to promote the innovation of the new generation wireless short-distance communication technology and the industrial ecology so as to bear the field applications of intelligent automobiles, intelligent houses, intelligent terminals, intelligent manufacturing and the like and meet the extremely performance demands. The electronic equipment related to the embodiment of the application can communicate based on a new generation wireless short-range communication technology designed by the star-flash alliance.
Aiming at the scene, a brand new protocol framework needs to be established for supporting a new generation of wireless short-range communication technology and realizing a complete flow of short-range service. Fig. 2 shows a schematic diagram of a protocol framework provided by an embodiment of the present application. The protocol framework may be applied to any electronic device capable of short-range communication, such as any one of the electronic devices in the communication system 100 shown in fig. 1. As shown in fig. 2, the protocol framework 200 includes, from bottom to top, an access layer 210, a base service layer 220, and a base application layer 230.
The access layer 210 is mainly responsible for processing the underlying logical links, such as setting up, reconfiguring, deleting, etc., of the logical links to accommodate the traffic demands (e.g., reliable data, real-time data, etc.) of the basic service layer 220, where the logical links are used to transfer traffic between two electronic devices. The access layer 210 includes a plurality of access technologies including, but not limited to, an access technology of a star flash base (SPARKLINK BASIC, SLB) short range wireless communication system, an access technology of a star flash low power consumption (SPARKLINK LOW ENERGY, SLE) short range wireless communication system, and other access technologies, such as a bluetooth low energy (bluetooh low energy, BLE) technology, other star flash alliance access technologies in the future, and the like, and in the embodiment of the present application, the architecture of the access layer 210 is briefly described using only the SLB and SLE access technologies as an example.
As shown in fig. 2, the access layer 210 may further include a data link layer and a physical layer. The data link layer is used for realizing the functions of resource management, access control, data segmentation, concatenation, reordering and the like so as to ensure the reliable transfer of data. The physical layer provides physical connection for the data link layer using a transmission medium to achieve transparent transmission of the bit stream. In some embodiments, the data link layer may include a link control layer and a media access layer. The link control layer is mainly based on links established between nodes, and interacts a link control protocol (link control protocol, LCP) on the control link to perform functions of physical/logical link management, control of equipment behaviors and the like. The media access layer is responsible for radio resource allocation and provides data transmission services for the link control layer. In the embodiment of the application, the SLB access technology is mainly responsible for the transmission of large-bandwidth, high-rate and high-power-consumption services (such as video playing services), and the SLB access technology is mainly responsible for the transmission of small-bandwidth, low-rate and low-power-consumption services (such as audio playing services).
For an electronic device supporting two access technologies, such as SLB and SLE, its access layer may implement SLB access and SLE access through different modules, respectively. In the embodiment of the application, one service of the upper layer can be dynamically transmitted through a plurality of access technologies, so that the flexibility of service transmission is improved.
It will be appreciated that the names of the two star-to-flash alliance access technologies described above are merely exemplary and should not be construed as limiting embodiments of the present application, and that in other embodiments or in future architectures, SLB and SLE may also use other names.
The basic service layer 220 is mainly responsible for creation, addition, deletion, release, etc. of transmission channels, and control of logical links (e.g. selection of access technology) to accommodate traffic demands (e.g. traffic, rate, tone quality, resolution) of the basic application layer 230. The design goal is to be compatible with multiple access layer technologies, such as the SLB, SLE access technologies introduced above, and to preserve the ability to be compatible with more access technologies in the future.
The base service layer 220 may include a number of modules or functional units that achieve the above-described design goals, including, but not limited to, a device discovery module, a service management module, a channel management module, a quality of service (quality of service, qoS) management module, a security management module, a measurement management module, a multi-domain coordination module, a 5G convergence module, and the like. The device discovery module is used for discovering the device when the device is not connected with the device. The service management module is used for discovering and operating the service on the equipment. The channel management module is used for managing the transmission channel, including creation/addition/deletion/release, and the function of the module will be described in detail later, and will not be described in detail here. The QoS management module is used for managing and negotiating the QoS of the transmission. The security management module is responsible for the secure connection of the underlying service layer. The measurement management module is used for configuring measurement and scheduling of the bottom layer and is used for performing power control and the like. The multi-domain coordination module realizes information interaction among domains under the scene that a plurality of domains (sub-networks) exist, and realizes interference avoidance and load balancing among the domains. The 5G fusion module is used for establishing a channel with the cellular 5G remote management capability, and realizing equipment with the cellular 5G remote control function through an authentication and authentication mechanism.
The transmission of the basic service layer 220 may be divided into the transmission of the control plane and the transmission of the service plane, and accordingly, the transmission channel of the basic service layer 220 may include a control channel for transmitting data of the control plane and a service channel for transmitting data of the service plane. The following embodiments of the present application will describe the related flow of the service channel in detail.
The base application layer 230 is mainly responsible for supporting different traffic demands of upper layer Applications (APP) and completing routing of data to the base service layer 220. The base application layer 230 may include a plurality of different sets of business functions (also referred to as business modules or business frameworks) such as an audio video framework, a data framework, and the like, according to different classifications of business. Different service function sets comprise classified data processing of the service.
By way of example, as shown in fig. 2, the application layer 230 may include a generic awareness framework, a generic device management framework, a generic audio video framework, a generic data framework, and the like. Wherein the generic sense framework includes processing of sense data; the general device management framework includes processing of device management data; the general audio and video framework comprises processing of audio and video verses, such as encoding and decoding processing; the generic data framework contains the processing of the file data, such as encryption compression, etc. The different sets of service functions may be distinguished by service identities (business identification, BID).
In the embodiment of the present application, the basic service layer 220 and the basic application layer 230 may be collectively referred to as an upper layer protocol or a Host protocol. The Host protocol can adapt to the access layer 210 of the bottom layer to support the requirements of different services, and in particular, the Host protocol can provide the service module with a request for initiating the service, and transmit and control the service data.
In the embodiment of the present application, the electronic device shown in fig. 1 may support at least one access technology, for example, at least one of the SLB access technology and the SLE access technology shown in fig. 2. Regardless of the access technology supported by the access layer, the upper layer may use a unified Host protocol, i.e., the upper layer may be compatible with multiple access technologies.
In order to facilitate understanding of the present application, related art terms related to the present application will be described below.
Ports (ports), which are channels of the basic application layer, can be mapped to the same transmission channel.
The transport channels (transmission channel, TC) are channels of the basic service layer, and can accept mapping of a plurality of ports (ports) on the upper side and can realize mapping of a plurality of transport channels to the same logic channel on the lower side.
Logical Channel (LC), which is a channel of the access layer, can accept multiple transmission channel mappings on the pair. In some embodiments, it may also be referred to as a logical link. One logical channel corresponds to one access technology.
Specifically, referring to fig. 2, the basic application layer 230 has a concept of a port, the basic service layer 220 has a concept of a transmission channel, and the access layer 210 has a concept of a logical channel. In other words, a port is a channel of the basic application layer 230, a transmission channel is a channel of the basic service layer 220, and a logical channel is a channel of the access layer 210. The ports can be mapped to the same transmission channel, namely, the ports and the transmission channel have a mapping relation; multiple transmission channels may be mapped to the same logical channel, i.e. the transmission channels have a mapping relationship with the logical channels. The logic channel is the basis for the establishment of the transmission channel in the upper basic service layer, and the transmission channel of the basic service layer is available after the logic channel is successfully established. When two electronic devices communicate, service data can be sent to one electronic device through a port-transmission channel-logic channel path of the other electronic device.
To distinguish logical channels, a logical channel identification (logical channel identification, LCID) is defined for uniquely identifying the logical channels.
A set of transmission channels (transmission channel group) comprising a plurality of transmission channels. The plurality of transmission channels may be used in common to transmit data transmitted from the same port. That is, data (e.g., a data stream, which may include a plurality of data packets) delivered from one port is transmitted through only one transmission channel group. Specifically, after the basic application layer transmits the data of a certain port to the basic service layer, the basic service layer selects one or more transmission channels from the corresponding transmission channel group to transmit the data packets. Different transmission channels may transmit the same data, or may transmit different data, respectively. For example, when transmitting reliable service, the transmission channels in the transmission channel group can transmit the same data packet, i.e. the data packet is redundantly transmitted in the transmission channel group; when transmitting large-flow business, the transmission channels in the transmission channel group can respectively transmit different data packets. In the embodiment of the present application, a transmission channel may be considered as a sub-channel in a transmission channel group.
To distinguish between transmission channels, a transmission channel identification (transmission channel identification, TCID) is defined for uniquely identifying the transmission channel. In some embodiments, the transmission channel identification may comprise a plurality of bits (bits), wherein part of the bits are used to identify the number of the transmission channel group to which the transmission channel belongs, i.e. the group number (group identification, groupID), and part of the bits are used to identify the number of the transmission channel within the transmission channel group, i.e. the intra-group number (local identification, localID). For example, the transmission channel identification may comprise 16bits, with the high 13bits being used to identify the group number GoupID and the low 3bits being used to identify the intra-group number LocalID.
The ports and the transmission channels mentioned above have a mapping relationship, and in fact, the upper layer only concerns the transmission channel group, and does not concern the sub-channels, so it is the mapping relationship between the ports and the transmission channel group that is acquired and maintained for the basic application layer. When the basic application layer transmits data to the basic service layer, the basic service layer can select one or more transmission channels in the transmission channel group for transmission according to the mapping relation between the ports and the transmission channel group. That is, for one sub-channel, the basic service layer generates a transport channel identification, TCID. And when the transmission channel is displayed on the upper layer, the transmission channel group is displayed.
Therefore, the basic service layer may transfer the information of the transmission channel group to the basic application layer in various manners, as long as the basic application layer can obtain the mapping relationship between the ports and the transmission channel group.
For example, when the basic service layer displays the transmission channel to the basic application layer, the basic service layer may transmit the complete transmission channel identifier, may transmit the identifier of the group number GroupID that is unchanged and the intra-group number LocalID is 0, and may transmit the identifier of the transmission channel group (i.e., the group number). For ease of understanding, the following description will be given by taking an example in which the transmission channel identification includes 16 bits. That is, when the related information of the transmission channel is transferred to the upper layer, there may be the following cases:
1) The basic service layer delivers the transmission channel identifier TCID to the upper layer, as exemplified below:
13bits 3bits
GroupID LocalID
Correspondingly, after the upper layer, namely the basic application layer, receives the transmission channel identifier TCID, only 13bits high can be analyzed, so that the information of the transmission channel group can be obtained. Or after the basic application layer analyzes the 16bits transmission channel identification, extracting the information of 13bits high, and also obtaining the information of the transmission channel group.
2) The basic service layer delivers an identification of the group number GroupID unchanged and the intra-group number LocalID of 0 to the upper layer, and for convenience of description, the embodiment of the present application is called a transmission channel mapping identification (maptransmission channel identification, mapTCID), and examples are as follows:
13bits 3bits
GroupID 0b000
since MapTCID has the valid information of 13bits high GroupID, it can be considered that when the basic application layer has data to be transmitted, the basic service layer can select a transmission channel from the transmission channel group identified by GroupID for transmission. The underlying application layer is concerned with which transport channel group data is transmitted and not with which transport channel within the transport channel group is specifically used for transmission.
3) The basic service layer delivers the transmission channel group identifier to the upper layer, and examples are as follows:
13bits
GroupID
that is, the base application layer may transfer the identifier GroupID of the transmission channel group only with 13bits, so that the base application layer obtains the information of the transmission channel group.
It should be noted that the above-mentioned manner of representing the number of bits of the transmission channel identifier and showing the transmission channel to the upper layer is merely exemplary, and in other embodiments, other manners may be implemented, for example, mapping the transmission channel identifier in the same transmission channel group to another identifier, and then the basic service layer transfers the other identifier to the upper layer, which is not limited in this aspect of the present application.
The channels of the respective layers for routing data are introduced above, and the transmission path of the data is briefly described below in connection with fig. 2. Referring to fig. 2, when there is traffic data to be transmitted, the base application layer 230 transmits the data from a port to the base service layer 220 through a data flow (flow), and the base service layer 220 selects one or more transmission channels to transmit. Because the transmission channel and the logic channel have a mapping relation, correspondingly, the access layer uses the corresponding logic channel to continue transmission after receiving the data.
Illustratively, the base service layer 220 may include transmission channels TCID1-TCIDx, the base service layer 220 may select TCID1 to transmit Qos flow 1 transmitted by the generic sense frame, select TCID2 to transmit Qos flow 2 transmitted by the generic device management frame, select TCID3 to transmit Qos flow 3 transmitted by the generic audio-video frame, select TCIDx to transmit Qos flow 4 transmitted by the generic data frame, and so on. To access layer 210, data transmitted by TCID1 is transmitted through one logical channel supporting SLB, data transmitted by TCID2 is transmitted through one logical channel supporting SLB, data transmitted by TCID3 is transmitted through one logical channel supporting SLE, and data transmitted by TCIDx is transmitted through one logical channel supporting SLE. It should be understood that the correspondence between data streams and transmission channels and the correspondence between transmission channels and logic channels shown in the drawings are only exemplary and should not be construed as limiting the present application.
Any one of the transmission channels TCID1-TCIDx may belong to a certain transmission channel group, and when any one of the transmission channels is displayed on the upper layer, it may be displayed as TCID, mapTCID or GroupID.
The transmission channels may include a traffic channel for transmitting data of the traffic plane and a control channel for transmitting data of the control plane. The establishment of the control channel is the basis for establishing the service channel between the electronic devices, so that the related flow of the service channel according to the embodiment of the application is executed on the basis of the establishment of the control channel, and the embodiment of the application will not be described too much with respect to the establishment flow of the control channel.
The traffic channels may include unicast traffic channels, multicast traffic channels, and broadcast traffic channels. The unicast service channel is a service channel for transmitting unicast service, and can realize point-to-point transmission. The multicast service channel is a service channel for transmitting multicast service, can realize point-to-group transmission, has feedback (ack) at the bottom layer, and has certain bottom layer reliability. The broadcast service channel is a service channel for transmitting broadcast services, so that connectionless transmission can be realized, and the bottom layer has no feedback (ack), so that the reliability needs to be ensured through multiple transmissions.
The unicast service channel comprises a default service channel and a non-default service channel, wherein the default service channel is automatically established when the control channel is established, and the non-default service channel is established according to the requirement when the service requirement exists. The embodiment of the application mainly describes the related flow of the non-default service channel in detail.
In the embodiment of the application, the related flow of the non-default service channel mainly comprises: a flow of creating a non-default service channel, a flow of adding a non-default service sub-channel, a flow of deleting a non-default service sub-channel, a flow of releasing a non-default service channel.
It should be noted that, in the embodiments of the present application, description is mainly made with respect to a non-default traffic channel in the traffic channels, so that the description of "transmission channel" in the following embodiments may be interpreted as a traffic channel in a narrow sense, and the description of "transmission channel group" in the following embodiments may be interpreted as a traffic channel group in a narrow sense. The traffic channels may still be identified using the TCID described above, i.e. the description of "TCID" in the following embodiments is to be understood in a narrow sense as the identification of the traffic channel. In other embodiments, the TCID used to identify the traffic channel may also be referred to as a "traffic channel identification" or other name, and embodiments of the present application are not limited in this regard.
In the embodiment of the present application, the process of creating the non-default service channel may be regarded as the process of creating the new transmission channel group. The procedure of adding a non-default traffic subchannel may be considered as a procedure of adding a new transmission channel to an existing transmission channel group based on the transmission channel group. The procedure of deleting the non-default traffic sub-channel may be regarded as a procedure of deleting a transmission channel in the existing transmission channel group. The procedure of releasing the non-default traffic channel may be considered as a procedure of releasing the existing transport channel group, i.e. a procedure of deleting all transport channels in the existing transport channel group. In the following, the first electronic device and the second electronic device are taken as examples, and the above processes are described by combining the protocol architecture shown in fig. 2, through interactions between the first electronic device and the second electronic device and between the layers in the electronic devices. The basic service layer in the first electronic device and the second electronic device relates to a channel management module.
Fig. 3 is a schematic flow chart of creating a non-default traffic channel according to an embodiment of the present application. In an implementation of this flow involving a first electronic device and a second electronic device, both electronic devices may have a base application layer 230, a base service layer 220, and an access layer 210 as shown in fig. 2. The flow 300 of creating a non-default traffic channel shown in fig. 3 includes steps S301 to S313, and each step is described in detail below in connection with fig. 3.
When the first electronic device and the second electronic device need to perform wireless service, for example, when the user uses the first electronic device (such as a mobile phone) and the second electronic device (such as a wireless earphone) to transmit music for playing, the following procedure can be performed between the first electronic device and the second electronic device.
In step S301, a port negotiation is performed between the base application layer of the first electronic device and the base application layer of the second electronic device.
In this step, the data involved in the negotiation process may be transmitted via the default traffic channel that has been established. The default traffic channel is automatically established after the control channel establishment is completed for transmitting service management data. Therefore, before the non-default service channel is successfully created, service management data that needs to be interacted between the first electronic device and the second electronic device can be transmitted through the default service channel.
In some embodiments, in step S301, the base application layer of the first electronic device and the base application layer of the second electronic device may also perform service negotiation, application quality of service (quality of service, qoS) negotiation, and so on. For example, service negotiation, qoS negotiation, port negotiation, etc. between the first electronic device and the second electronic device may be uniformly transmitted on the default service channel through a service framework in the base application layer using a data template provided by the service management module. The embodiment of the present application mainly focuses on the result of port negotiation performed by the first electronic device and the second electronic device, and therefore, other negotiation processes, such as service negotiation, qoS negotiation, etc., will not be described herein.
For example, the result of the negotiation of the first electronic device and the second electronic device may be that the first electronic device uses a first port (port 1) mapping and the second electronic device uses a second port (port 2) mapping. Accordingly, the first port1 and the second port2 have mapping relations, and the basic application layer of the first electronic device and the basic application layer of the second electronic device need to maintain the mapping relations between the first port and the second port.
In the embodiment of the present application, the first electronic device is an end that initiates the service request, and may also be referred to as a home end in some embodiments. The second electronic device is the end that receives the data and may also be referred to as the opposite end in some embodiments.
In step S302, the base application layer of the first electronic device applies for a service channel to the base service layer (specifically, may be a channel management module).
In this step, the basic application layer of the first electronic device applies for a service channel to the channel management module for the first port and the second port.
Specifically, in step S302, the base application layer of the first electronic device may send information #31 to the channel management module, where the information #31 is used to apply for a service channel for the first port and the second port.
The information #31 may include traffic channel type indication information, port information, quality of service indication (QI) of SERVICE IDENTIFIER, and the like. The service channel type indication information is used for indicating the applied service channel type, wherein the service channel type can comprise a unicast service channel, a multicast service channel and a broadcast service channel. If the service channel type indication information indicates that the applied service channel is a unicast service channel, the unicast service channel refers to a non-default service channel. The port information is used to indicate the port mapped with the traffic channel, i.e. the port negotiated in step S301. In the embodiment of the present application, the port information includes a first port and a second port, where the first port is used for mapping with a service channel on the first electronic device side (it can be understood that the first port is actually mapped with a service channel group to which the service channel belongs), and the second port is used for mapping with a service channel on the second electronic device side (it can be understood that the second port is actually mapped with a service channel group to which the service channel belongs). The QI is used to indicate the traffic demand on the traffic channel, such as transmission rate, delay, packet loss rate, communication period, maximum packet size, etc.
In some embodiments, information #31 may also include additional parameters such as transmission mode indication information, whether to piggyback indication information, and the like. The transmission mode indication information is used to indicate a transmission mode of data, wherein the transmission mode may include a base mode, a transparent mode, a normal mode, a stream control mode, a stream mode, a retransmission mode, and the like.
The base mode is the default transmission mode. When the basic mode transmission is adopted, the method does not packetize, not aggregate packets, not retransmit and not flow control. The transparent transmission mode refers to one-to-one mapping between service channels and logic links. When the transmission mode is adopted for transmission, no subpackage, no packet aggregation and no packet header of a transmission and control module are added. When the common mode transmission is adopted, the method can be used for subpackaging, can be used for gathering packets, does not retransmit and does not flow control. When the flow control mode is adopted for transmission, the data packets are numbered, the transmitted data needs to be provided with an opposite end ack, a sliding window can be adopted in advance, and the data is not retransmitted. When the timer times out, the data which does not receive the opposite end ack is directly discarded, and the discarded data is detected and reported. When stream mode transmission is adopted, unidirectional real-time synchronous data is needed, and a refresh timeout (flush timout) value is arranged at the transmitting end to control the refresh of the packets which are not transmitted. The retransmission mode has a reliable transmission mechanism, the data is retransmitted in the transmission control layer, and the retransmission is carried out when the opposite terminal replies nack or the timer is overtime. The retransmission packet is not subjected to packet aggregation and other treatments, but the whole packet is retransmitted. When the retransmission is performed to the maximum number, the corresponding service channel needs to be disconnected and reported to the upper layer.
The indication information of whether the additional parameter is dedicated to the transmission of data of a certain service is used for indicating whether the service channel is dedicated to the transmission of data of a certain service. In the embodiment of the application, if the channel management module receives the dedicated instruction, a service channel is newly allocated to the first port, the existing service channel is not multiplexed, and the newly allocated service channel is not multiplexed in other subsequent flows.
In the embodiment of the present application, if the information #31 includes additional parameters, the channel management module may set relevant parameters according to the additional parameters in the information # 31. If the information #31 does not include additional parameters, the channel management module may set the related parameters by itself or set the related parameters according to a preset rule, which is not limited in the embodiment of the present application.
In step S303, the basic service layer (specifically, the channel management module) of the first electronic device determines whether to create a non-default service channel.
That is, the basic service layer of the first electronic device determines whether to create a new service channel group. In other words, in this step, the channel management module of the first electronic device determines whether to map the first port to an existing service channel group or to map the first port to a new service channel group after creating the new service channel group.
The channel management module may have a variety of implementations in determining whether to create a non-default traffic channel.
In one example, the channel management module may determine whether to create a non-default traffic channel based on the QI in information # 31. For example, the same QI may multiplex the same traffic channel, i.e. if the QI included in information #31 is the same as the QI of a certain traffic already transmitted, the existing traffic channel may be multiplexed without creating a new non-default traffic channel.
In another example, the channel management module may determine whether to create a non-default traffic channel based on the transmission mode indication information in information # 31. For example, if the upper layer indicates that the transmission mode of the service data is transparent, a new non-default service channel is created without multiplexing the existing service channel.
In yet another example, the channel management module may determine whether to create the non-default traffic channel based on the indication of whether to override in information # 31. E.g. if the overload indication information indicates that the traffic channel is dedicated to the transmission of new traffic data, a non-default traffic channel is created.
That is, the channel management module may determine whether to create a non-default traffic channel according to the information # 31. In some embodiments, if the information #31 sent by the upper layer does not indicate that the channel management module creates a new service channel group, the channel management module may make a judgment according to its algorithm (e.g., a preset rule). For example, in the case where the preset upper layer does not indicate whether to create, a non-default traffic channel is not created by default or created by default.
In other examples, the channel management module may also determine whether to create a non-default traffic channel based on other information, such as traffic type, underlying channel capabilities, traffic transmission requirements, and the like. In a specific implementation, step S303 may be performed according to different algorithms of different manufacturers, which will not be described here.
In this step S303, if the channel management module determines that no non-default traffic channel is created, the first port may be mapped onto an existing traffic channel (i.e., the created traffic channel) to transmit new traffic data using the existing traffic channel. The channel management module then executes step S313 to notify the base application layer of the first electronic device that the service channel application is successful, and sends the first port1 and the first mapping identifier to the base application layer.
It will be appreciated that the first mapping identity here is the identity that the base service layer delivers to the upper layer for indicating the group to which the traffic channel belongs. For example, the first mapping identifier may be an identifier TCID of the multiplexed service channel, an identifier GroupID of a service channel group to which the multiplexed service channel belongs, or a transmission channel mapping identifier Map TCID corresponding to the multiplexed service channel, which is not limited in the embodiment of the present application. Correspondingly, the basic application layer of the first electronic device needs to maintain a mapping relationship between the first port and the first mapping identifier, that is, a mapping relationship between the first port and the service channel group indicated by the first mapping identifier.
In this step S303, if the channel management module determines to create a non-default traffic channel, an identification TCID-S of the new traffic channel is generated.
It will be appreciated that the identification TCID-s here is an identification of the newly created traffic channel. In practical applications, the service channels for transmitting data may have different identifiers on the first electronic device side and the second electronic device side, and for convenience of description, in the embodiment of the present application, the identifier of the service channel on the first electronic device side (i.e. the home terminal) is denoted as TCID-s, and the identifier of the service channel on the second electronic device side (i.e. the opposite terminal) is denoted as TCID-d. After the service channel is established, the first electronic device and the second electronic device can both maintain the identification TCID-s of the local service channel and the identification TCID-d of the opposite service channel.
In step S304, the basic service layer (specifically, the channel management module) of the first electronic device and the basic service layer (specifically, the channel management module) of the second electronic device perform channel parameter negotiation.
Specifically, in this step, the channel management module of the first electronic device may send a channel parameter negotiation request to the channel management module of the second electronic device. Accordingly, the channel management module of the second electronic device may send a channel parameter negotiation response to the channel management module of the first electronic device. The negotiation of channel parameters is performed through the interactive process.
In some embodiments, the channel parameters negotiated by the channel management modules of the two electronic devices may include a transmission window sliding window size (as indicated by TxWindow), a refresh timer (as indicated by Flushtimer), a maximum number of transmissions (as indicated by maxRetxThreshold), a retransmission timer (as indicated by RetransmissionTimer), and so on. In the embodiment of the present application, the channel parameters negotiated in the step are related to the transmission mode of the service, for example, the size of the transmission window sliding window is the parameter to be negotiated between the flow control mode and the retransmission mode, the refresh timer is the parameter to be negotiated between the flow mode and the retransmission mode, the maximum transmission times is the parameter to be negotiated between the retransmission mode and the flow control mode, and the retransmission timer is the parameter to be negotiated between the flow control mode and the retransmission mode.
In the negotiation process, information that the first electronic device and the second electronic device need to interact with each other can be transmitted through the control channel.
Step S304 is an optional step. In some embodiments, the first electronic device and the second electronic device may not perform channel parameter negotiation, and the channel management module may set the channel parameters by itself or set the channel parameters according to a preset rule, which will not be described herein.
In step S305, the basic service layer of the first electronic device applies for a logical channel to the access layer.
Specifically, in step S305, the basic service layer of the first electronic device may send information #32 to the access layer, where the information #32 is used to apply for a logical channel to the access layer. This information #31 may include the business requirements to create TCID-s.
The information #32 may include an identification TCID-s of the home traffic channel, logical channel type indication information, quality of service QoS, etc. The identification TCID-s of the service channel at the home terminal is used for establishing a mapping relation between the service channel and the logic channel by the access layer. The logical channel type indication information is used to indicate the type of the logical channel. QoS is used for an access layer to select a logical channel or to configure relevant parameters of the logical channel, etc.
In practical application, the logic channel type may have different division modes according to different access technologies, for example, for SLE access technologies, the logic channel type may include an asynchronous logic channel, a synchronous logic channel, a unidirectional logic channel, and the like; for SLB access technologies, logical channel types may include unacknowledged mode (unacknowledgedmode, UM) logical channels, acknowledged mode (acknowledgedmode, AM) logical channels, transparent mode (TRANSPARENT MODE, TM) logical channels, and so on. When the AM mode logic channel is adopted for transmission, the packet head information of the link control layer is required to be added, and the link control layer reports the state. When UM mode logic channel transmission is adopted, the link control layer packet header information needs to be added, and the link control layer does not report the state. When adopting TM mode logic channel transmission, the packet header information of the link control layer is not added, and the link control layer does not report the state. The basic service layer (specifically, the channel management module) of the first electronic device may select a logic channel type according to the service requirement and/or the capability of the bottom layer, and indicate the logic channel type to the access layer through the logic channel type indication information. For example, for payment application services, the channel management module may select a reliable, highly confidential logical channel type; for video application services, the channel management module may select a low latency logical channel type.
It should be noted that, since a logic channel corresponds to an access technology, the process of selecting a logic channel type by the basic service layer may be considered as a process of selecting an access technology by the basic service layer, and the basic application layer does not sense which access technology is used by the bottom layer.
It should be further noted that QoS in information #32 and QI in information #31 are used to indicate quality of service, but the format and included information may be different. Specifically, after receiving a service requirement issued by a basic application layer, the basic service layer abstracts and processes information to generate a service requirement which can be analyzed by an access layer and issues the service requirement to the access layer.
In some embodiments, information #32 may also include additional parameters, such as whether to piggyback the indication information. The indication information is used for indicating whether the service channel is dedicated to transmitting corresponding service data. Here, the access layer may select a logical channel or configure relevant parameters of the logical channel according to whether to carry the indication information.
In step S306, the access layer of the first electronic device maps the traffic channel TCID-S to the logical channel LCID. Namely, a mapping relation between the service channels TCID-s and the logic channels LCID is established.
Specifically, in this step, the access layer of the first electronic device may select, according to the transmission situation, one of the following schemes to establish the underlying logical link:
scheme 1 (case # 1): TCID-s is mapped to the existing logical channel LCID. I.e. establishing a mapping between TCID-s and a certain logical channel already established.
For example, when an existing logical channel can support an existing service and a newly added service, the newly created service channel TCID-s can be mapped to the existing logical channel, so as to establish a mapping relationship between TCID-s and LCID.
Scheme 2 (case # 2): the existing logical channels are reconfigured and TCID-s are mapped to the reconfigured logical channel LCID.
For example, the access layer determines that the related parameters of an existing logic channel cannot meet the service requirement issued by the basic service layer according to the transmission condition, and then reconfigures the related parameters of the existing logic channel, and then maps the newly-built service channel TCID-s onto the reconfigured logic channel, thereby establishing the mapping relation between the TCID-s and the LCID.
Scheme 3 (case # 3): a new logical channel is established and TCID-s is mapped to the new logical channel LCID.
For example, in the case where all existing logical channels are used to transmit asynchronous data, if the service request initiated by the base application layer is to transmit synchronous data, the access layer may create a logical channel for transmitting synchronous data. And mapping the newly-built service channel TCID-s to the newly-built logic channel, thereby establishing the mapping relation between the TCID-s and the LCID.
It should be noted that the above-listed several schemes and applicable scenarios are only exemplary, and in other embodiments, the manner in which the access layer selects when setting up the underlying logical link may have other manners, and the scenarios to which the above-listed several schemes are applicable have other scenarios, which are not described here.
After step S306 is completed, a mapping relationship between the service channel and the logic channel is established.
In step S307, the access layer of the first electronic device feeds back the success of the logic channel application to the basic service layer (specifically, the channel management module).
Specifically, in this step, the access layer of the first electronic device may send information #33 to the channel management module, where the information #33 is used to indicate that the logic channel application is successful, that is, indicate that the mapping relationship between the service channel and the logic channel is established. For example, information #33 may include an identification TCID-s of the created traffic channel and an identification LCID of the logical channel. In other words, the access stratum returns the mapping relationship of TCID-s and LCID to the basic service layer through information # 33.
And after the channel management module of the first electronic device receives the mapping relation between the service channel and the logic channel, the bottom logic link is considered to be capable of transmitting.
In step S308, the basic service layer of the first electronic device sends a request for creating a transmission channel to the basic service layer of the second electronic device, where the request for creating a transmission channel is used to notify the second electronic device that the mapping relationship between the service channel and the logical channel on the first electronic device side is established.
Specifically, in this step, the basic service layer of the first electronic device may send information #34 to the basic service layer of the second electronic device, where the information #34 is used to indicate that the first electronic device has established a mapping relationship between the local service channel and the logical channel, and is also used to indicate that the second electronic device has established a mapping relationship between the opposite service channel and the logical channel.
The information #34 may include the second port2, the identity TCID-s of the home traffic channel, and the identity LCID of the logical channel.
In step S309, the basic service layer of the second electronic device generates an identification TCID-d of the peer service channel.
After step S309 is completed, the second electronic device may consider that the basic service layers of the two electronic devices have established a connection between TCID-S and TCID-d, i.e. may determine the mapping relationship between TCID-S and TCID-d. The second electronic device may store the identifier TCID-s of the local service channel and the logical channel identifier LCID, and maintain a mapping relationship between TCID-s and LCID, a corresponding relationship between TCID-s and TCID-d, and so on. Accordingly, the second electronic device may initialize the number of channels in the service channel group to which the opposite-end service channel belongs to 1.
In the embodiment of the application, the identifiers of the logic channels are the same on the first electronic equipment and the second electronic equipment, so that the second electronic equipment can establish the mapping relation between the service channels TCID-d and LCID after receiving LCID sent by the first electronic equipment.
In step S310, the basic service layer (specifically, the channel management module) of the second electronic device sends the mapping information of the port information and the service channel of the opposite end to the basic application layer of the second electronic device, so as to perform port mapping.
Specifically, in this step, the channel management module of the second electronic device may send, to the base application layer, information #35, where the information #35 is used to indicate a mapping relationship between the service channel group and the port, that is, a mapping relationship between the service channel group to which the service channel TCID-d belongs and the second port.
The information #35 may include a second port2 and a second mapping identifier, so as to establish a mapping relationship between the second port and the peer service channel group. The second mapping identifier is an identifier, which is transmitted by the basic service layer of the second electronic device to the upper layer and is used for indicating the group to which the service channel belongs. For example, the second mapping identifier may be an identifier TCID-d of the opposite service channel, may be an identifier GroupID of a service channel group to which the opposite service channel belongs, or may be a transmission channel mapping identifier Map TCID corresponding to the opposite service channel TCID-d, which is not limited in the embodiment of the present application. Correspondingly, the basic application layer of the second electronic device needs to maintain a mapping relationship between the second port and the second mapping identifier, that is, a mapping relationship between the second port and the service channel group indicated by the second mapping identifier.
In step S311, the base application layer of the second electronic device feeds back to the base service layer that the port mapping was successful.
In step S312, the basic service layer of the second electronic device sends a create transmission channel response to the basic service layer of the first electronic device, where the create transmission channel response is used to notify the first electronic device of the mapping relationship between the service channel and the logical channel on the second electronic device side.
Specifically, in this step, the basic service layer of the second electronic device may send information #36 to the basic service layer of the first electronic device, where the information #36 is used to indicate that the second electronic device has established a mapping relationship between the peer service channel and the logical channel.
The information #36 may include an identification TCID-d of the opposite traffic channel and an identification LCID of the logical channel.
It should be noted that, in step S308 and step S312, the data interacted between the basic service layer of the first electronic device and the basic service layer of the second electronic device may be transmitted through the control channel.
After step S312 is completed, the first electronic device may consider that the basic service layers of the two electronic devices have established a connection between TCID-S and TCID-d, i.e. may determine the mapping relationship between TCID-S and TCID-d. The first electronic device may store the identifier TCID-d of the opposite service channel and the logical channel identifier LCID, and maintain a mapping relationship between TCID-d and LCID, a corresponding relationship between TCID-s and TCID-d, and so on. Accordingly, the first electronic device may initialize the number of channels in the service channel group to which the local service channel belongs to 1.
In step S313, the basic service layer (specifically, the channel management module) of the first electronic device notifies the basic application layer that the service channel application is successful.
Specifically, in this step, the channel management module of the first electronic device may send information #37 to the basic application layer, where the information #37 is used to indicate a mapping relationship between the service channel group to which the local service channel TCID-s belongs and the port.
The information #37 may include a first port1 and a first mapping identifier, so as to establish a mapping relationship between the first port and the local service channel group. The first mapping identifier is an identifier, which is transmitted by the basic service layer of the first electronic device to the upper layer and is used for indicating the group to which the service channel belongs. For example, the first mapping identifier may be an identifier TCID-s of the home service channel, may be an identifier GroupID of a service channel group to which the home service channel belongs, or may be a transmission channel mapping identifier Map TCID corresponding to the home service channel TCID-s, which is not limited in the embodiment of the present application. Correspondingly, the basic application layer of the first electronic device needs to maintain a mapping relationship between the first port and the first mapping identifier, that is, a mapping relationship between the first port and the service channel group indicated by the first mapping identifier.
It should be noted that, after the non-default service channel is created, the number of channels in the service channel group is initialized to 1, but the actual service data is not necessarily transmitted on the created non-default service channel, and may be transmitted on any channel in the service channel group. This involves the addition of a non-default traffic subchannel and is described in more detail below in conjunction with the other figures and is not described in detail herein.
In the embodiment of the application, the access layers of the first electronic device and the second electronic device can support multiple access technologies, such as an SLB access technology and an SLE access technology. When the first electronic equipment and the second electronic equipment need to carry out wireless service, a user does not need to select or specify which access technology to carry out service transmission, but after the basic application layer issues the service requirement, the basic service layer automatically selects the bottom access technology according to the service requirement, and establishes a service channel for transmission.
In the embodiment of the application, the first electronic device determines the mapping relation between the first port1 and the service channel group to which the local service channel TCID-s belongs and the mapping relation between the local service channel TCID-s and the logic channel LCID, and the second electronic device determines the mapping relation between the second port2 and the service channel group to which the opposite service channel TCID-d belongs and the mapping relation between the opposite service channel TCID-d and the logic channel LCID, and mutually informs the opposite party. Thus, the non-default traffic channel created by the procedure shown in fig. 3 is a bi-directional traffic channel, i.e. the first electronic device may use the created non-default traffic channel to transmit traffic to the second electronic device, and the second electronic device may also use the created non-default traffic channel to transmit traffic to the first electronic device, wherein the transmission path of the traffic data may be the first portIt will be appreciated that the bi-directional traffic channel created by the flow 300 shown in fig. 3 supports bi-directional transmission and may also be compatible with uni-directional transmission.
Fig. 4 is a schematic flow chart of creating a non-default service channel according to another embodiment of the present application. In an implementation of this flow involving a first electronic device and a second electronic device, both electronic devices may have a base application layer 230, a base service layer 220, and an access layer 210 as shown in fig. 2. The flow 400 of creating a non-default traffic channel shown in fig. 4 is similar to the flow 300 of creating a non-default traffic channel shown in fig. 3, except that the non-default traffic channel created in the flow 400 is a unidirectional traffic channel, and parameters and data routes carried in the interaction process are different. The differences between the process 400 and the process 300 will be mainly described in detail below, and other portions not described in detail may refer to corresponding descriptions in the process 300.
As shown in fig. 4, the flow 400 of creating a non-default traffic channel includes steps S401 to S411.
In step S401, a port negotiation is performed between the base application layer of the first electronic device and the base application layer of the second electronic device.
The data involved in the negotiation process may be transmitted via an already established default traffic channel.
In some embodiments, in step S401, the base application layer of the first electronic device and the base application layer of the second electronic device may further perform service negotiation, application quality of service (quality of service, qoS) negotiation, and so on, which will not be described in detail herein.
For example, the result of the negotiation of the first electronic device and the second electronic device may be that the first electronic device uses a first port (port 1) mapping and the second electronic device uses a second port (port 2) mapping.
In step S402, the base application layer of the first electronic device applies for a service channel to a base service layer (specifically, may be a channel management module).
Specifically, the base application layer of the first electronic device may send information #41 to the channel management module, where the information #41 is used to apply for transmitting a service channel for the first port.
The information #41 may include traffic channel type indication information, a first port, QI, etc. The service channel type indication information is used for indicating the type of the applied service channel. The first port is used for mapping with a service channel of the first electronic equipment side. The QI is used to indicate the traffic demand on the traffic channel, such as transmission rate, delay, packet loss rate, communication period, maximum packet size, etc.
Optionally, the information #41 may further include additional parameters, such as transmission mode indication information, whether to carry indication information, and the like. The transmission mode indication information is used to indicate a transmission mode of data. The indication information is used for indicating whether the service channel is dedicated to transmitting data of a certain service.
Unlike step S302 in the flow 300, in step S402, the port information that may be carried in the information #41 may include the first port, but not the second port. This is because, when the unidirectional traffic channel is established, the basic service layer of the first electronic device needs to perceive the mapping relationship between the local port (i.e. the first port) and the local traffic channel group.
In step S403, the basic service layer (specifically, the channel management module) of the first electronic device determines whether to create a non-default service channel. That is, the basic service layer of the first electronic device determines whether to create a new service channel group.
If not, the channel management module does not create a non-default service channel, but maps the first port to an existing service channel to transmit new service data using the existing service channel. Then, the channel management module executes step S411 to notify the base application layer of the first electronic device that the service channel application is successful, and sends the first port and the first mapping identifier to the base application layer. Regarding the implementation manner of the basic service layer to determine whether to create the non-default service channel, and the form of the first mapping identifier may refer to the description related to step S303 in fig. 3, for brevity, no further description is provided herein.
If yes, the channel management module determines to create a non-default service channel and generates an identification TCID-s of a new service channel.
In step S404, the basic service layer (specifically, the channel management module) of the first electronic device and the basic service layer (specifically, the channel management module) of the second electronic device perform channel parameter negotiation.
Specifically, in this step, the channel management module of the first electronic device may send a channel parameter negotiation request to the channel management module of the second electronic device. Accordingly, the channel management module of the second electronic device may send a channel parameter negotiation response to the channel management module of the first electronic device. The negotiation of channel parameters is performed through the interactive process.
This step is an optional step. In some embodiments, the first electronic device and the second electronic device may not perform channel parameter negotiation, and the channel management module may set the channel parameters by itself or set the channel parameters according to a preset rule. Here, the first electronic device and the second electronic device may negotiate the channel parameters according to the transmission mode of the service, and the specific content may refer to the description related to step S404 in fig. 3, which is not repeated herein for brevity.
In step S405, the basic service layer of the first electronic device applies a logical channel to the access layer.
Specifically, in step S405, the basic service layer of the first electronic device may send information #42 to the access layer, where the information #42 is used to apply for a logical channel to the access layer. This information #42 may include the business requirements to create TCID-s.
The information #42 may include an identification TCID-s of the home traffic channel, logical channel type indication information, quality of service QoS, etc. The identification TCID-s of the service channel at the home terminal is used for establishing a mapping relation between the service channel and the logic channel by the access layer. The logical channel type indication information is used to indicate the type of the logical channel. QoS is used for an access layer to select a logical channel or to configure relevant parameters of the logical channel, etc.
Optionally, information #42 may also include additional parameters, such as whether or not to piggyback the indication information. The indication information is used for indicating whether the service channel is dedicated to transmitting corresponding service data.
In step S406, the access layer of the first electronic device maps the traffic channel TCID-S to the logical channel LCID. Namely, a mapping relation between the service channels TCID-s and the logic channels LCID is established.
Specifically, in this step, the access layer of the first electronic device may select, according to the transmission situation, one of the following schemes to establish the underlying logical link:
case #1: the TCID-s is mapped to the existing logical channel LCID, i.e. a mapping relation between the TCID-s and the established logical channel is established.
Case #2: the existing logical channels are reconfigured and TCID-s are mapped to the reconfigured logical channel LCID.
Case #3: a new logical channel is established and TCID-s is mapped to the new logical channel LCID.
For the scenario adapted to the above scheme, reference may be made to the description related to step S406 in fig. 3, which is not repeated herein for brevity.
In step S407, the access layer of the first electronic device feeds back the success of the logic channel application to the basic service layer (specifically, the channel management module).
Specifically, in this step, the access layer of the first electronic device may send information #43 to the channel management module, where the information #43 is used to indicate that the logic channel application is successful, that is, indicate that the mapping relationship between the service channel and the logic channel is established. For example, information #43 may include the identification TCID-s of the created traffic channel and the identification LCID of the logical channel. In other words, the access stratum returns the mapping relationship of TCID-s and LCID to the basic service stratum through information # 43.
And after the channel management module of the first electronic device receives the mapping relation between the service channel and the logic channel, the bottom logic link is considered to be capable of transmitting.
In step S408, the base service layer of the first electronic device sends a request for creating a transmission channel to the base service layer of the second electronic device. The request for creating the transmission channel is used for notifying the second electronic device of the establishment of the mapping relation between the service channel and the logic channel of the first electronic device side.
Specifically, in this step, the basic service layer of the first electronic device may send information #44 to the basic service layer of the second electronic device, where the information #44 is used to indicate that the first electronic device has established a mapping relationship between the local service channel and the logical channel, and is also used to indicate that the second electronic device has established a mapping relationship between the opposite service channel and the logical channel.
The information #44 may include the identity TCID-s of the home traffic channel and the identity LCID of the logical channel.
In step S409, the basic service layer of the second electronic device generates an identifier TCID-d of the peer service channel.
After step S409 is completed, the second electronic device may consider that the basic service layers of the two electronic devices have established a connection between TCID-S and TCID-d, and determine the mapping relationship between TCID-S and TCID-d. After receiving the LCID sent by the first electronic device, the second electronic device may also establish a mapping relationship between the service channel TCID-d and the LCID, and maintain a corresponding relationship between the TCID-s and the TCID-d.
Steps S401 to S409 shown in fig. 4 are similar to steps S301 to S309 shown in fig. 3, and where step S40x is not described in detail herein, reference is made to the above relevant contents regarding step S30 x.
In the embodiment of the application, because the created non-default service channel is the service channel only supporting unidirectional transmission, the second electronic equipment does not need to perceive the mapping relation between the port and the service channel group in the process of establishing, so that the service channel group and the second port of the opposite-end service channel are not required to be bound. That is, the process 400 may omit the step S310 and the step S311 compared to the process 300.
With continued reference to fig. 4, in step S410, the base service layer of the second electronic device sends a create transmission channel response to the base service layer of the first electronic device. The creation transmission channel response is used for notifying the first electronic equipment of the establishment of the mapping relation between the service channel and the logic channel of the second electronic equipment side.
Specifically, in this step, the basic service layer of the second electronic device may send information #46 to the basic service layer of the first electronic device, where the information #46 may include an identifier TCID-d of the peer service channel and an identifier LCID of the logical channel.
After step S410 is completed, the first electronic device may consider that the basic service layers of the two electronic devices have established the connection between TCID-S and TCID-d, and the first electronic device may maintain the correspondence (i.e., mapping) between TCID-S and TCID-d. Accordingly, the first electronic device may initialize the number of channels in the service channel group to which the local service channel belongs to 1.
In step S411, the basic service layer (specifically, the channel management module) of the first electronic device notifies the basic application layer that the service channel application is successful.
Specifically, in this step, the channel management module of the first electronic device may send information #47 to the basic application layer, where the information #47 is used to indicate a mapping relationship between the service channel group to which the local service channel TCID-s belongs and the port.
The information #47 may include a first port1 and a first mapping identifier, so as to establish a mapping relationship between the first port and the local service channel group. The first mapping identifier is an identifier, which is transmitted by the basic service layer of the first electronic device to the upper layer and is used for indicating the group to which the service channel belongs. The form of the first mapping identifier may refer to the description related to step S313 in fig. 3, and is not described herein for brevity.
Steps S410 to S411 shown in fig. 4 are similar to steps S312 to S313 shown in fig. 3, and reference is made to the relevant contents above with respect to fig. 3 where the steps are not described in detail herein.
In the embodiment of the present application, the non-default service channel created through the flow shown in fig. 4 is a unidirectional service channel, that is, the first electronic device may transmit the service to the second electronic device by using the created non-default service channel, and otherwise, the first electronic device may not transmit the service.
In the embodiment of the application, the identification TCID-s of the local end service channel and the identification TCID-d of the opposite end service channel can be different or the same. In case the two are different, the first electronic device and the second electronic device may each maintain a respective traffic channel identification, which makes it more flexible in creating non-default traffic channels. In the same case, i.e. when the TCID-s generated by the basic service layer of the first electronic device is identical to the TCID-d generated by the basic service layer of the second electronic device, a collision may occur.
Taking the flow shown in fig. 3 as an example, if the first electronic device and the second electronic device initiate the flow 300 of creating the non-default service channels at the same time, and the locally generated TCIDs-S are the same (e.g. all are 0x 0028), when the flows on both sides proceed to step S309, it is found that the identifiers TCIDs of the service channels applied by both sides are identical, that is, the identifiers of the service channels applied by the first electronic device for the first service transmission are the same as the identifiers of the service channels applied by the second electronic device for the second service transmission.
For ease of understanding, referring to fig. 5, the base service layer of the first electronic device initiates a process of creating a non-default traffic channel and locally generates TCID-s=0x0028, e.g. performs step S303 of process 300 or step S403 of process 400. At the same time, the base service layer of the second electronic device also initiates a procedure to create a non-default traffic channel and locally generates TCID-s=0x0028, e.g. performs step S303 of procedure 300 or step S403 of procedure 400.
The first electronic device then sends a request to create a transmission channel to the second electronic device and carries TCID-s=0x0028, for example, performing step S308 of the flow 300 or step S408 of the flow 400. At the same time, the second electronic device sends a request to create a transmission channel to the first electronic device and carries TCID-s=0x0028, for example, executing step S308 of the flowchart 300 or step S408 of the flowchart 400.
Taking the first electronic device as an example, the first electronic device generates the identifier TCID-s=0x0028 of the local service channel in the process initiated by the first electronic device, and the first electronic device also plays a role of an opposite end in the process initiated by the opposite side, so after receiving the request for creating the transmission channel sent by the second electronic device, the first electronic device needs to generate the identifier TCID-d of the opposite end service channel, for example, execute step S309 of the process 300 or step S409 of the process 400. If the service channels generated by the home terminal and the opposite terminal are required to be identical in one process, in the process initiated by the second electronic device, the TCID-d generated by the first electronic device serving as the opposite terminal needs to be identical with the TCID-s generated by the second electronic device, i.e. TCID-d=0x0028. But the first electronic device has generated the identity TCID-s=0x0028 of the local service channel in its own initiated procedure. For the first electronic device, the situation that the same service channel identifier is applied to two flows for creating the non-default service channels occurs, so that a conflict is generated, and the subsequent flows cannot be continued. The situation encountered by the second electronic device is similar and will not be described in detail.
In this scenario, to resolve the conflict problem, either both parties may be selected to fail to create, or a guessing mechanism may be introduced to resolve.
The manner in which both parties fail to create is well understood, i.e. the first electronic device stops the flow of creating the non-default traffic channel initiated by the second electronic device, and the second electronic device stops the flow of creating the non-default traffic channel initiated by the first electronic device, e.g. the step S312 of the flow 300 or the step S410 of the flow 400 carries information that the creation of the transmission channel fails.
If the guessing mechanism is introduced, a random number for comparing the size can be carried when the request for creating the transmission channel is sent to the opposite side, and whether the request for establishing the link of the opposite side is received or not is determined according to the size of the random number.
For ease of understanding, referring to fig. 6, the first electronic device sends a request to create a transmission channel to the second electronic device and carries TCID-s=0x0028 and a first random number (e.g. 100). At the same time, the second electronic device sends a create transmission channel request to the first electronic device, carrying TCID-s=0x0028 and a second random number (e.g. 90). The base service layer of the first electronic device may resolve the conflict by comparing the sizes of the first random number and the second random number. If the second random number 90 is less than the first random number 100, the first electronic device may reject the request for establishing the link of the second electronic device, stop creating the non-default traffic channel that the second electronic device requests to create, for example, feed back a response to the second electronic device that failed to create the transmission channel. Accordingly, the base service layer of the second electronic device may resolve the conflict by comparing the sizes of the first random number and the second random number. If the first random number 100 is greater than the second random number 90, the second electronic device may accept the request for establishing a link by the first electronic device, and continue to create a non-default traffic channel that the first electronic device requests to create, for example, feedback to the first electronic device that the creation of the traffic channel was successful. In this way, the transmission channel TCID-s=0x0028 is established in the flow of creating the non-default traffic channel initiated by the first electronic device, but not in the flow of creating the non-default traffic channel initiated by the second electronic device, and the conflict resolution is performed.
In some embodiments, if the first random number and the second random number are the same in size, both parties may fail to establish, and the request for establishing the link is denied. Or the first electronic device may carry a plurality of first random numbers when sending the request for creating the transmission channel, where the plurality of first random numbers have a priority order. The second electronic device may carry a plurality of second random numbers having a priority order when sending the request to create the transmission channel. When comparing the sizes of the random numbers, the comparison can be performed according to the priority order, that is, the first random number with the highest priority and the second random number with the highest priority are compared first, if the first random number with the highest priority and the second random number with the highest priority are the same, the comparison is continued, and so on.
It should be noted that the above-listed manner of resolving conflicts is merely exemplary, and in other embodiments, other manners of resolving conflicts may be provided, for example, priorities of the first electronic device and the second electronic device may be predefined, a higher priority electronic device may reject a link establishment request sent by a lower priority electronic device, etc., which will not be described in detail herein.
The process of creating a non-default traffic channel, that is, creating a new transmission channel group, provided by the embodiment of the present application is described above with reference to fig. 3 to 6. In practical applications, the service data is not necessarily transmitted on the first created service channel, but may be transmitted on any sub-channel in the service channel group. Described below in connection with fig. 7.
Fig. 7 is a schematic flow chart of adding a non-default service subchannel according to an embodiment of the present application. In an implementation of this flow involving a first electronic device and a second electronic device, both electronic devices may have a base application layer 230, a base service layer 220, and an access layer 210 as shown in fig. 2. The flow 500 of adding non-default traffic sub-channels shown in fig. 7 includes steps S501 to S508, and each step is described in detail below in connection with fig. 7.
The premise of performing the process 500 is that a first service channel group already exists, and in the process that the first electronic device and the second electronic device use the first service channel group to perform service (for example, the first port has a mapping relationship with the first service channel group, and the first service channel group is transmitting data issued by the first port), in order to implement service splitting, for example, when service is blocked, the first electronic device and the second electronic device may perform the following process to add a new service channel, that is, a non-default service sub-channel, in the first service channel group.
It should be noted that, the traffic splitting referred to herein may be understood as adding a traffic channel in the first traffic channel group to transmit data issued by the first port.
In step S501, the basic service layer (specifically, the channel management module) of the first electronic device generates an identifier TCID-S of the local service channel.
It will be appreciated that TCID-s needs to be within the same service channel group as the existing service channel on which the service is being performed. For example, TCID-s may comprise a plurality of bits (bits), wherein a portion of the bits are used to identify the number of the first traffic channel group (i.e., group number GroupID) and a portion of the bits are used to identify the number of the traffic channel within the first traffic channel group, i.e., intra-group number LocalID.
In step S502, a basic service layer (specifically, a channel management module) of a first electronic device and a basic service layer (specifically, a channel management module) of a second electronic device perform channel parameter negotiation.
Specifically, in this step, the channel management module of the first electronic device may send a channel parameter negotiation request to the channel management module of the second electronic device. Accordingly, the channel management module of the second electronic device may send a channel parameter negotiation response to the channel management module of the first electronic device. The negotiation of channel parameters is performed through the interactive process. In the negotiation process, information that the first electronic device and the second electronic device need to interact with each other can be transmitted through the control channel.
The channel parameters negotiated by the channel management modules of the two electronic devices correspond to the transmission mode of the data. For brevity, the description of the specific parameters may refer to the description of step S304 of the process 300, which is not repeated here.
Step S502 is an optional step. In some embodiments, the first electronic device and the second electronic device may not perform channel parameter negotiation, and the channel management module may set the channel parameters by itself or set the channel parameters according to a preset rule, which will not be described herein.
In step S503, the basic service layer of the first electronic device applies a logical channel to the access layer.
Specifically, the basic service layer of the first electronic device may send information #52 to the access layer, where the information #52 is used to apply for a logical channel to the access layer. This information #52 includes the business requirements to create TCID-s.
The information #52 may include an identification TCID-s of the home traffic channel, logical channel type indication information, quality of service QoS, etc. The identification TCID-s of the service channel at the home terminal is used for establishing a mapping relation between the service channel and the logic channel by the access layer. The logical channel type indication information is used to indicate the type of the logical channel. QoS is used for an access layer to select a logical channel or to configure relevant parameters of the logical channel, etc.
Optionally, the information #52 may also include additional parameters, such as whether or not the indication information is proprietary. The indication information is used for indicating whether the service channel is dedicated to transmitting service data.
The description of the relevant parameters included in the information #52 may refer to the relevant description of step S305 of the flowchart 300, and will not be repeated here for brevity.
In step S504, the access layer of the first electronic device maps the traffic channel TCID-S to the logical channel LCID. Namely, a mapping relation between the service channels TCID-s and the logic channels LCID is established.
Specifically, in this step, the access layer of the first electronic device may select, according to the transmission situation, one of the following schemes to establish the underlying logical link:
case #1: the TCID-s is mapped to the existing logical channel LCID, i.e. a mapping relation between the TCID-s and the established logical channel is established.
Case #2: the existing logical channels are reconfigured and TCID-s are mapped to the reconfigured logical channel LCID.
Case #3: a new logical channel is established and TCID-s is mapped to the new logical channel LCID.
For specific decisions and applicable scenarios of the access layer, reference may be made to the description of step S306 in the flow 300, which is omitted for brevity.
In step S505, the access layer of the first electronic device feeds back a success of the logic channel application to the basic service layer (specifically, the channel management module).
Specifically, in this step, the access layer of the first electronic device may send information #53 to the channel management module, where the information #53 is used to indicate that the logic channel application is successful, that is, indicate that the mapping relationship between the service channel and the logic channel is established. For example, information #53 may include an identification TCID-s of the added traffic channel and an identification LCID of the logical channel. In other words, the access stratum returns the mapping relationship of TCID-s and LCID to the base service layer through information # 53.
And after the channel management module of the first electronic device receives the mapping relation between the service channel and the logic channel, the bottom logic link is considered to be capable of transmitting.
In step S506, the basic service layer of the first electronic device sends a request for creating a transmission channel to the basic service layer of the second electronic device. The request for creating the transmission channel is used for notifying the second electronic device of the establishment of the mapping relation between the service channel and the logic channel of the first electronic device side.
Specifically, in this step, the basic service layer of the first electronic device may send information #54 to the basic service layer of the second electronic device, where the information #54 is used to indicate that the first electronic device has established a mapping relationship between the local service channel and the logical channel.
The information #54 may include the identity TCID-s of the home traffic channel and the identity LCID of the logical channel.
In step S507, the basic service layer of the second electronic device generates an identifier TCID-d of the peer service channel.
Specifically, if the basic service layer of the second electronic device determines that the new service channel is a subchannel in the existing service channel group, a TCID-d is allocated in the group. For example, the basic service layer of the second electronic device may determine, according to the identifier of the local service channel maintained previously, whether TCID-s is a sub-channel in the existing service channel group. If yes, a new sub-channel TCID-d is established in the corresponding opposite end service channel group.
After step S507 is completed, the second electronic device may consider that the basic service layers of the two electronic devices have established a connection between TCID-S and TCID-d, and determine and maintain a mapping relationship between TCID-S and TCID-d. Accordingly, the second electronic device may add 1 to the number of sub-channels in the peer-to-peer traffic channel group. Meanwhile, the basic service layer of the second electronic device can determine the mapping relation between the opposite-end service channel TCID-d and the LCID.
In step S508, the base service layer of the second electronic device transmits a create transmission channel response to the base service layer of the first electronic device. The creation transmission channel response is used for notifying the first electronic device of the mapping relation between the service channel and the logic channel of the second electronic device side.
Specifically, in this step, the basic service layer of the second electronic device may send information #56 to the basic service layer of the first electronic device, where the information #56 is used to indicate that the second electronic device has established a mapping relationship between the peer service channel and the logical channel.
The information #56 may include an identification TCID-d of the opposite traffic channel and an identification LCID of the logical channel.
After step S508 is completed, the first electronic device may consider that the basic service layers of the two electronic devices have established a connection between TCID-S and TCID-d, and determine and maintain a mapping relationship between TCID-S and TCID-d. Accordingly, the first electronic device may add 1 to the number of sub-channels in the local service channel group (i.e., the first service channel group).
In the embodiment of the application, when the service is required to be split (for example, the existing service channel is blocked), the basic service layer of the electronic equipment can automatically add a new service channel in the existing service channel group for data transmission, and the basic application layer does not sense the operation and flow of the basic service layer at all. After the non-default service sub-channel flow is added, a plurality of service channels exist in the same service channel group, when the basic application layer issues data, the channel management module can select one of the service channels (the existing service channel or the added service channel) for transmission, or simultaneously perform redundant transmission on the plurality of service channels, and the basic application layer does not sense the transmission mode determined by the basic service layer.
In the embodiment of the present application, there may be various manners for judging that a service channel is blocked, which is taken as an example and not by way of limitation, and data issued by an upper layer may be generally stored in a buffer (buffer) queue, and if the base service layer judges that the buffer data accumulated by the upper layer exceeds a certain percentage, the service channel may be considered to be blocked.
It will be appreciated that when traffic splitting is required, it is indicated that the first traffic channel group cannot meet the traffic demand when traffic transmission is performed, and the traffic demand may be issued by the base application layer to the base service layer when the first traffic channel group is created. Therefore, in the embodiment of the present application, the basic service layer can also be considered to determine whether to split the service according to the service requirement, that is, determine whether to add the sub-channel.
Because the basic application layer does not sense the transmission mode of the service data in the basic service layer, the basic service layer can automatically determine a new non-default service sub-channel according to the service transmission condition. When the access layers of the first electronic equipment and the second electronic equipment support multiple access technologies, the basic service layer can automatically determine which access technology is newly used as a service channel, compatibility of the multiple access technologies and unification of the upper layers are achieved, namely, the basic application layer does not need to perceive the access technologies, and the basic service layer completes related functions of channel selection, distribution and the like.
The flow of adding a non-default sub-service channel, that is, the flow of adding a new service channel in an existing service channel group, provided in the embodiment of the present application is described above with reference to fig. 7. When the service is not needed to be split, the service channel which is not transmitted any more can be deleted. Described below in connection with fig. 8.
Fig. 8 is a schematic flow chart of deleting a non-default sub-service channel according to an embodiment of the present application. In an implementation of this flow involving a first electronic device and a second electronic device, both electronic devices may have a base application layer 230, a base service layer 220, and an access layer 210 as shown in fig. 2. The process 600 of deleting a non-default traffic subchannel shown in fig. 8 includes steps S601 to S607, and each step is described in detail below in conjunction with fig. 8.
The process 600 is performed on the premise that a first traffic channel group already exists, and the first electronic device and the second electronic device are performing a service using a plurality of traffic channels in the first traffic channel group (e.g., transmitting data sent by the first port using a plurality of traffic channels in the first traffic channel group). When the traffic no longer needs to be split, a procedure may be performed between the first electronic device and the second electronic device to delete traffic channels no longer used for transmitting data (e.g. traffic channels previously used for splitting), i.e. non-default traffic sub-channels, within the first traffic channel group.
In step S601, the basic service layer (specifically, the channel management module) of the first electronic device deletes the identifier TCID-S of the local service channel.
Specifically, before step S601, the first service channel group includes a plurality of service channels, and if the channel management module determines that one of the service channels does not need to be transmitted, the channel management module deletes the service channel TCID-S. For example, the first traffic channel group includes traffic channel #1 and traffic channel #2, and the channel management module only transmits data to traffic channel #1 for a long period of time, but does not transmit data to traffic channel #2, the channel management module may consider that the transmission on traffic channel #2 is not required, and may delete traffic channel #2.
In step S602, the basic service layer of the first electronic device applies for releasing the logical channel from the access layer.
The basic service layer applies for canceling the mapping relation between the service channel TCID-s and the logic channel LCID. Specifically, the basic service layer of the first electronic device may send information #62 to the access layer, where the information #62 is used to indicate that the logical channel mapped with the traffic channel TCID-s is released, i.e. indicate that the mapping relationship between the traffic channel TCID-s and the logical channel LCID is released.
The information #62 may include the identity TCID-s of the home traffic channel.
In step S603, the access layer end service channel TCID-S of the first electronic device is mapped to the logical channel LCID.
Specifically, in this step, the access layer of the first electronic device may select, according to the transmission situation, one of the following schemes to process the underlying logical link:
scheme 1 (case # 1): the ending TCID-s maps to the existing logical channel LCID and maintains the existing LCID.
For example, when the access layer determines that the service channel TCID-s is deleted according to the transmission condition and has little influence on the existing transmission, the mapping relationship between the TCID-s and the LCID can be released, and the related parameter configuration of the LCID can be maintained. For example, if the LCID maps multiple traffic channels and TCID-s occupies 1% of the LCID transmission capability, deleting TCID-s has little effect on the LCID transmission, and thus the related parameters of the LCID may not be reconfigured.
Scheme 2 (case # 2): the ending TCID-s maps to the existing logical channel LCID and reassigns the existing logical channel LCID.
For example, when the access layer determines that the service channel TCID-s is deleted according to the transmission condition, and the influence on the existing transmission is relatively large, such as data traffic is greatly reduced, the mapping relationship between the TCID-s and the LCID can be released, and the existing logic channel LCID is reconfigured, so as to reduce the transmission capability of the LCID. For example, if the LCID maps multiple service channels and TCID-s occupies 90% of the LCID transmission capability, deleting TCID-s increases the influence of LCID transmission on the LCID, and needs to reduce the LCID transmission capability. This is because the transmission space above the logical channels is pre-allocated, and if the set QoS capability is high, the transmission of other logical channels may be affected if there is little real transmission. Thus requiring reconfiguration of the relevant parameters of the LCID.
Scheme 3 (case # 3): the ending TCID-s maps to the existing logical channel LCID and deletes the existing logical channel LCID.
For example, if the LCID maps only one traffic channel, i.e., TCID-s, then the LCID may be deleted after deleting TCID-s.
It should be noted that, the above-listed several schemes may be considered as the inverse of step S504 in the process of adding the non-default traffic sub-channel shown in fig. 7. The schemes and applicable scenarios listed herein are merely exemplary, and in other embodiments, the manner in which the access layer selects when tearing down the underlying logical link may be other, and the scenarios to which the above schemes are applicable are other scenarios, which are not described in detail herein.
After step S603 is completed, the mapping relationship between the service channel and the logical channel is released.
In step S604, the access layer of the first electronic device feeds back to the basic service layer (specifically, the channel management module) that the logical channel is successfully released.
Specifically, in this step, the access layer of the first electronic device may send information #63 to the channel management module, where the information #63 is used to indicate that the mapping relationship between the service channel and the logical channel is released, and the logical link operation is completed.
Information #63 may include the identification TCID-s of the deleted traffic channel.
And after the channel management module of the first electronic device knows that the mapping relation between the service channel and the logic channel is released, the bottom logic link is considered to be removed.
In step S605, the base service layer of the first electronic device sends a request for deleting a transmission channel to the base service layer of the second electronic device. The transmission channel deletion request is used for notifying the second electronic device of the mapping relation release of the service channel and the logic channel of the first electronic device side.
Specifically, in this step, the basic service layer of the first electronic device may send information #64 to the basic service layer of the second electronic device, where the information #64 is used to indicate that the first electronic device has released the mapping relationship between the local service channel and the logical channel, and is also used to indicate that the second electronic device releases the mapping relationship between the opposite service channel and the logical channel.
This information #64 includes the identification TCID-s of the deleted traffic channel.
In step S606, the basic service layer of the second electronic device deletes the identifier TCID-d of the peer service channel.
Specifically, the basic service layer of the second electronic device can perceive the mapping relation between the local service channel and the logic channel in the process of creating the service channel, so that the basic service layer of the second electronic device can determine the mapping relation between the opposite service channel and the logic channel to be relieved according to the mapping relation, thereby deleting the identifier TCID-d of the opposite service channel. Or in the process of creating the service channel, the second electronic device may perceive that the TCID-S is connected with the TCID-d, that is, the TCID-S has a corresponding relationship with the TCID-d, so in step S606, the base service layer of the second electronic device may determine the opposite end service channel identifier TCID-d to be deleted after obtaining the TCID-S.
After step S606 is completed, the second electronic device may consider that the basic service layer of both electronic devices has deleted the connection of TCID-S and TCID-d. Accordingly, the second electronic device may decrease the number of channels in the service channel group to which the opposite service channel TCID-d belongs by 1. Meanwhile, the basic service layer of the second electronic device releases the mapping relation between the opposite-end service channel TCID-d and the LCID.
In step S607, the base service layer of the second electronic device sends a delete transmission channel response to the base service layer of the first electronic device. The deletion transmission channel response is used for notifying the first electronic equipment of the mapping relation release of the service channel and the logic channel of the second electronic equipment side.
Specifically, in this step, the basic service layer of the second electronic device may send information #66 to the basic service layer of the first electronic device, where the information #66 is used to indicate that the second electronic device has released the mapping relationship between the peer service channel and the logical channel.
The information #66 may include an identification TCID-d of the peer traffic channel.
In step S605 and step S607, the data interacted between the basic service layer of the first electronic device and the basic service layer of the second electronic device may be transmitted through the control channel.
After step S607 is completed, the first electronic device may consider that the basic service layers of the two electronic devices have deleted the connection of TCID-S and TCID-d. Accordingly, the first electronic device may decrease the number of channels in the service channel group to which the home service channel TCID-s belongs (i.e., the first service channel group) by 1.
In the embodiment of the application, when the service no longer needs to be split, the basic service layer of the electronic equipment can delete the service channels in the service channel group by itself, and the basic application layer does not sense the operation and flow of the basic service layer at all. The data issued by the basic application layer can still be transmitted through other service channels in the service channel group, and the basic application layer does not sense the change of the service channels.
The procedure for deleting a non-default sub-service channel provided in the embodiment of the present application is described above in connection with fig. 8, and when the service transmission has ended (i.e. the service is stopped, e.g. the first port is no longer used to transmit data), the service channel group for transmitting the stopped service may be released, i.e. the non-default service channel is released. Described below in connection with fig. 9.
Fig. 9 is a schematic flow chart of releasing a non-default service channel according to an embodiment of the present application. In an implementation of this flow involving a first electronic device and a second electronic device, both electronic devices may have a base application layer 230, a base service layer 220, and an access layer 210 as shown in fig. 2. The flow 700 of releasing the non-default traffic channel shown in fig. 9 includes steps S701 to S709, and each step is described in detail below in connection with fig. 9.
When the service between the first electronic device and the second electronic device is stopped, the following procedure can be performed between the first electronic device and the second electronic device to release the first port and the second port.
In step S701, the base application layer of the first electronic device notifies the base service layer (specifically, may be a channel management module) to release the service channel.
In this step, the basic application layer of the first electronic device requests the channel management module to release the service channels for the first port and the second port, which can be understood as releasing the mapping relationship between the first port and the local service channel group and releasing the mapping relationship between the second port and the opposite service channel group.
Specifically, the base application layer of the first electronic device may send information #71 to the channel management module, where the information #71 is used to indicate that the traffic channels are released for the first port and the second port.
The information #71 may include a first port and a second port.
In step S702, the basic service layer (specifically, the channel management module) of the first electronic device determines whether to release the non-default service channel. That is, the basic service layer of the first electronic device determines whether to release the service channel group.
Specifically, the channel management module may determine whether to release the non-default service channel according to the mapping relationship between the port and the service channel group.
For example, if multiple ports are mapped to the same service channel group, i.e. the service channel group mapped to the first port has a mapping relationship with other ports, the non-default service channel is not released, i.e. the service channel group is not deleted. However, the basic service layer of the first electronic device may release the mapping relationship between the first port and the service channel group, and feed back the mapping relationship to the basic application layer. Illustratively, the basic service layer may perform step S709 to notify the basic application layer that the mapping relationship between the first port and the service channel group is released, and the first port is released.
If the first port is mapped to the service channel group and has a one-to-one mapping relationship, that is, the service channel group mapped to the first port has no mapping relationship with other ports, the non-default service channel can be released, that is, the service channel group is deleted. Illustratively, the base service layer may perform releasing the TCID-S in step S702, which may also be understood as deleting the TCID-S.
In step S703, the basic service layer of the first electronic device applies for a release logical channel to the access layer.
The basic service layer applies for canceling the mapping relation between the service channel TCID-s and the logic channel LCID. Specifically, the basic service layer of the first electronic device may send information #72 to the access layer, where the information #72 is used to indicate that the logical channel mapped with the traffic channel TCID-s is released, i.e. indicate that the mapping relationship between the traffic channel TCID-s and the logical channel LCID is released.
The information #72 may include the identity TCID-s of the home traffic channel.
In step S704, the access layer end service channel TCID-S of the first electronic device is mapped to the logical channel LCID.
Specifically, the access layer of the first electronic device may select, according to the transmission situation, one of the following schemes to process the underlying logical link:
case #1: the ending TCID-s maps to the existing logical channel LCID and maintains the existing LCID.
Case #2: the ending TCID-s maps to the existing logical channel LCID and reassigns the existing logical channel LCID.
Case #3: the ending TCID-s maps to the existing logical channel LCID, deleting the existing logical channel LCID.
It should be noted that the above-listed several schemes may be considered as the inverse of step S306 in the process of creating the non-default traffic channel shown in fig. 3. For the scenario adapted to the above scheme, reference may be made to the description related to step S603 in fig. 8, which is not repeated herein for brevity.
After step S704 is completed, the mapping relationship between the service channel and the logical channel is released.
In step S705, the access layer of the first electronic device feeds back to the basic service layer (specifically, the channel management module) that the logical channel is successfully released.
Specifically, in this step, the access layer of the first electronic device may send information #73 to the channel management module, where the information #73 is used to indicate that the mapping relationship between the service channel and the logical channel is released, the logical link operation is completed, and the release of the logical channel is successful.
Information #73 may include the identity TCID-s of the traffic channel being released.
And after the channel management module of the first electronic device knows that the mapping relation between the service channel and the logic channel is released, the bottom logic link is considered to be removed.
In step S706, the base service layer of the first electronic device sends a request for deleting the transmission channel to the base service layer of the second electronic device. The transmission channel deletion request is used for notifying the second electronic device of the mapping relation release of the service channel and the logic channel of the first electronic device side.
Specifically, in this step, the basic service layer of the first electronic device may send information #74 to the basic service layer of the second electronic device, where the information #74 is used to indicate that the first electronic device has released the mapping relationship between the local service channel and the logical channel, and is also used to indicate that the second electronic device releases the mapping relationship between the opposite service channel and the logical channel.
The information #74 includes the identity TCID-s of the traffic channel being released.
In step S707, the basic service layer of the second electronic device releases the peer traffic channel TCID-d.
Specifically, the basic service layer of the second electronic device can perceive the mapping relation between the local service channel and the logic channel in the process of creating the service channel, so that the basic service layer of the second electronic device can determine the mapping relation between the opposite service channel and the logic channel to be relieved according to the mapping relation, and the TCID-d of the opposite service channel is released. Or in the process of creating the service channel, the second electronic device may perceive that the TCID-S is connected with the TCID-d, that is, the TCID-S has a corresponding relationship with the TCID-d, so in step S707, the base service layer of the second electronic device may determine the opposite service channel TCID-d that needs to be released after obtaining the TCID-S.
After step S707 is completed, the second electronic device may consider that the basic service layer of the two electronic devices has deleted the connection of TCID-S and TCID-d. Accordingly, the second electronic device may decrease the number of channels in the service channel group to which the opposite service channel TCID-d belongs by 1 to 0. Meanwhile, the basic service layer of the second electronic device releases the mapping relation between the opposite-end service channel TCID-d and the LCID.
In some embodiments, after step S707, the basic service layer of the second electronic device may notify the basic application layer of the second electronic device that the second port is released, that is, the mapping relationship between the second port and the peer service channel group is released, and the peer service channel group is released.
In step S708, the base service layer of the second electronic device sends a delete transmission channel response to the base service layer of the first electronic device. The deletion transmission channel response is used for notifying the first electronic equipment of the mapping relation release of the service channel and the logic channel of the second electronic equipment side.
Specifically, in this step, the basic service layer of the second electronic device may send information #76 to the basic service layer of the first electronic device, where the information #76 is used to indicate that the second electronic device has released the mapping relationship between the peer service channel and the logical channel.
The information #76 may include an identification TCID-d of the peer traffic channel.
After step S708 is completed, the first electronic device may consider that the basic service layer of both electronic devices has deleted the connection of TCID-S and TCID-d. Accordingly, the first electronic device may decrease the number of channels in the service channel group to which the home service channel TCID-s belongs by 1 to 0.
It can be understood that when the service channel group to be released includes a plurality of service channels, in the process of releasing the service channels, the sub-channels in the service channel group can be sequentially released until the number of channels in the service channel group is 0. Or a plurality of sub-channels in the service channel group can be released at a time, and the sub-channels are released for a plurality of times until the number of channels in the service channel group is 0. Or may release all traffic channels at once. The procedure in the latter two cases is similar, and the procedure is briefly described below taking the case of releasing all traffic channels at once.
For example, in step S703, the information #72 may include the identities (i.e., a plurality of TCIDs-S) of all the service channels in the home service channel group, so as to inform the access layer to release the mapping relationship between the service channels and the logical channels. In step S705, the information #73 may include the identification of all traffic channels (i.e., a plurality of TCIDs-S) of the access stratum de-mapping relationship.
It should be noted that, the logical channels mapped by the plurality of service channels in the service channel group at the home terminal may support different access technologies, for example, the service channel a and the logical channel a have a mapping relationship, the logical channel a supports the SLB access technology, the service channel B and the logical channel B have a mapping relationship, and the logical channel B supports the SLE access technology. The access layer may have different functional modules to specifically implement support for a corresponding access technology, for example, the access module a implements an SLB technology, and the access module B implements an SLE technology. Then during the process of applying for releasing the logical channels (i.e. in step S703), the basic service layer may send the identity of the service channel to the corresponding module according to the access technology. In step S704, the mapping relationship between the service channels and the logical channels is ended by the corresponding access module. For example, the basic service layer sends the identifier of the service channel A to the access module A, and the access module A releases the mapping relation between the service channel A and the logic channel A; and sending the identification of the service channel B to the access module B, and releasing the mapping relation between the service channel B and the logic channel B by the access module B. Then in step S705, the access module a and the access module B feed back the identities of the traffic channels whose mapping relationship has been released, respectively.
In step S706, the information #74 may include the identities (i.e., the plurality of TCIDs-S) of all traffic channels within the home traffic channel group that have been de-mapped from the logical channel mapping relationship. Accordingly, in step S707, the base service layer of the second electronic device releases TCID-d corresponding to the plurality of TCID-S, respectively. Thus, after step S707 is completed, the number of channels in the service channel group to which the opposite service channel TCID-d belongs is reduced to 0.
In step S708, the information #76 may include the identities (i.e., the TCIDs-d) of all the service channels in the peer service channel group, so as to inform the basic service layer of the first electronic device that the mapping relationship between the service channels and the logical channels has been released. Thus, after step S708 is completed, the number of channels in the service channel group to which the home service channel TCID-S belongs is reduced to 0.
With continued reference to fig. 9, in step S709, the basic service layer (specifically, the channel management module) of the first electronic device notifies the basic application layer that the service channel release is successful. I.e. the base application layer is informed that the mapping relation of the first port to the traffic channel group has been released and that the traffic channel group has been released (i.e. all sub-channels within the traffic channel group have been deleted.
Specifically, in this step, the channel management module of the first electronic device may send information #77 to the base application layer, where the information #77 is used to indicate that the traffic channels of the first port and the second port have been released.
The information #77 may include a first port1.
In step S710, the base application layer of the first electronic device notifies the base application layer of the second electronic device of the release of the first port, and the base application layer of the second electronic device notifies the base application layer of the second electronic device of the release of the second port.
The data involved in the process may be transmitted via an already established default traffic channel.
In the embodiment of the application, when the service is finished, the basic application layer can inform the basic service layer that the data is not transmitted any more, and can release the non-default service channel. The channel management module can delete a plurality of sub-channels in turn, and finally release the non-default service channels to inform the basic application layer that the service channels are released successfully. Thereby freeing up transmission resources.
The relevant flows of the traffic channels are described above in connection with fig. 3 to 9, wherein the basic service layer, when executing the flow of creating the non-default traffic channels and the flow of adding the non-default traffic sub-channels, is essentially the same, but one traffic channel is established, except that the traffic channel is established in a new traffic channel group or in an existing traffic channel group. If the new service channel group needs to be established, the new service channel group needs to be established while the service channel is established, and the process needs to be participated by a basic application layer, such as providing port related information, maintaining the mapping relation between ports and the service channel group, and the like. Similarly, the basic service layer is essentially the same when executing the procedure of releasing the non-default traffic channel and the procedure of deleting the non-default traffic sub-channel, and is to release the traffic channel, except whether to release the entire traffic channel group. If the whole service channel group needs to be released, the participation of a basic application layer is needed, such as providing port related information, releasing the mapping relation between the ports and the service channel group, and the like.
In connection with the above embodiments and the accompanying drawings, embodiments of the present application provide a method for configuring a channel for transmitting traffic, which may be implemented in the communication system 100 shown in fig. 1, and more particularly in an electronic device having a protocol architecture as shown in fig. 2, as applied to a first electronic device. The first electronic device can include a base application layer for issuing traffic demands, a base service layer, and an access layer supporting multiple access technologies (e.g., including SLB access technologies and SLE access technologies). The basic application layer can configure ports, the basic service layer can configure service channels, and the access layer can configure logic channels. The port and the service channel have a mapping relation, the service channel and the logic channel have a mapping relation, and when the mapping relation of the port, the service channel and the logic channel is completed, the formed channel can be considered to be used for transmitting the service.
Fig. 10 is a schematic flow chart of a method for configuring a channel for transmitting a service according to an embodiment of the present application. As shown in fig. 10, the method may include steps S801 to S806.
In step S801, the basic service layer determines to establish a first service channel according to a service requirement.
Here, the traffic demand is issued by the underlying application layer. For example, the first service channel may be set up by sending the first service channel to the base service layer by the base application layer in the previous step of step S801; or by the base application layer to the base service layer when other traffic channels are established, and the traffic demand is also used to establish the first traffic channel in step S801.
In the embodiment of the application, the service requirements refer to requirements which need to be met when the service is transmitted, such as the type of a service channel, service quality, the transmission mode of the service, whether the service channel is in special load or not, and the like. When a new service channel needs to be established to meet the service requirement, the basic service layer determines to establish a first service channel. Therefore, optionally, before step S801, the basic service layer may determine whether to establish the first service channel. It will be appreciated that the establishment of the first traffic channel here refers to the establishment of a new traffic channel and not to multiplexing of already established traffic channels.
In one embodiment, in the step, the determining, by the base service layer, to establish the first service channel according to the service requirement may include: the base service layer generates an identification of the first traffic channel. By way of example and not limitation, in a specific implementation, the identification of the first traffic channel may employ TCID-s as referred to in the above embodiments.
In step S802, the basic service layer transmits first information to the access layer.
The first information is used to apply for a logical channel supporting a first access technology. The first access technology is here selected by the basic service layer among a plurality of access technologies supported by the access layer. That is, the basic service layer may specify the access technologies supported by the logical channels, or the basic service layer may specify which access technology the logical channels are applied on.
In one example, the plurality of access technologies supported by the access layer can include an SLB access technology and a SLE access technology. In other embodiments, the access layer may also support existing access technologies, such as Bluetooth, wireless Fidelity (WIRELESS FIDELITY, wi-Fi), and may also support other Star-flash alliance access technologies in the future, and so on.
It should be noted that the access technology referred to herein may be understood as an access technology in wireless short-range communication.
In one embodiment, the first information may include an identification of the first traffic channel.
By way of example and not limitation, the first information may be, for example, information #32 in fig. 3, information #42 in fig. 4, or information #52 in fig. 7. For the description of various information, reference is made to the above related description, and for brevity, the description is omitted here.
In one embodiment, the base service layer may conduct channel parameter negotiations with the second electronic device prior to step S802. Therefore, the first electronic equipment and the second electronic equipment can be aligned with the channel parameters, and subsequent process failure is prevented.
Illustratively, the channel parameters negotiated by the base service layer with the second electronic device may be related to the transmission mode. The channel parameters may include a transmission window sliding window size, a refresh timer, a maximum number of transmissions, a retransmission timer, etc. It will be appreciated that the second electronic device may also include a base service layer, where the process of channel parameter negotiation may occur between the base service layer of the first electronic device and the base service layer of the second electronic device. The data interacted in the negotiation process can be transmitted through the control channel.
In another embodiment, the first information may further include logical channel type information and quality of service information. The logical channel type information indicates the type of the logical channel. In the embodiment of the application, the logic channel types can comprise an asynchronous logic channel, a synchronous logic channel, a unidirectional logic channel, an AM mode logic channel, a UM mode logic channel, a TM mode logic channel and the like. The quality of service information is used by the access layer to select a logical channel or to configure parameters associated with the logical channel.
The description of the logic channel type may refer to the above related description, and is not repeated herein for brevity.
In step S803, the basic service layer receives second information from the access layer.
The second information is used for indicating the first service channel and the first logic channel to establish a mapping relation. That is, after receiving the first information sent by the basic service layer, the access layer may configure a first logical channel at the access layer, then establish a mapping relationship between the first service channel and the first logical channel, and notify the basic service layer in step S803.
In one example, the first logical channel may be an established logical channel, a reconfigured logical channel, or a newly established logical channel.
In other words, the access layer may map a logical channel that has been previously established as the first logical channel with the first traffic channel; or a logic channel which is built before can be reconfigured, and the reconfigured logic channel is used as a first logic channel to be mapped with a first service channel; or a new logical channel may be established as a mapping of the first logical channel to the first traffic channel.
In a specific implementation, the access layer may determine which mode is adopted to obtain the first logic channel according to the first information and in combination with the transmission condition of the access layer, which is not limited by the embodiment of the present application. By way of example and not limitation, the access stratum may perform the action of step S306 in fig. 3, or perform the action of step S406 in fig. 4, or perform the action of step S504 in fig. 7, thereby obtaining the first logical channel. For how the access layer obtains the first logical channel and the possible applicable scenario, reference may be made to the above related description, which is not repeated herein for brevity.
In one embodiment, the second information may include an identification of the first traffic channel and an identification of the first logical channel.
By way of example and not limitation, the second information may be information #33 in fig. 3, information #43 in fig. 4, or information #53 in fig. 7. For the description of various information, reference is made to the above related description, and for brevity, the description is omitted here.
In step S804, the basic service layer transmits third information to the second electronic device.
The third information is used for indicating the second electronic equipment to establish a second service channel.
In the embodiment of the application, the first service channel is established at the first electronic equipment side, the second service channel is established at the second electronic equipment side, and when the first service channel and the second service channel are mapped, the first electronic equipment and the second electronic equipment can only transmit the service through the first service channel and the second service channel.
The second electronic device may also include a base application layer, a base service layer, and an access layer. In the embodiment of the present application, the basic service layer of the first electronic device may send the third information to the basic service layer of the second electronic device. Specifically, the third information may be transmitted through a control channel established between the first electronic device and the second electronic device.
In one embodiment, the second electronic device may generate an identification of the second traffic channel. More specifically, it may be that the basic service layer of the second electronic device generates an identification of the second traffic channel. By way of example and not limitation, in a specific implementation, the identification of the first traffic channel may employ TCID-d as referred to in the above embodiments.
In the embodiment of the application, the identifier of the second service channel and the identifier of the first service channel may be independent, that is, the first electronic device and the second electronic device respectively have preset rules for generating the identifiers of the service channels, and the two electronic devices do not affect each other when generating the identifiers of the respective service channels.
Of course, the identifier of the first service channel and the identifier of the second service channel may also be set to be the same, in which case, a random number may be generated at the same time when the identifiers of the service channels are generated, and the random number may be used to solve a collision problem that may occur when the first electronic device and the second electronic device simultaneously execute the method shown in fig. 10. For specific solutions, reference may be made to the descriptions related to fig. 5 and fig. 6 above, and for brevity, details are not repeated here.
In one embodiment, after the second electronic device establishes the second service channel, the second electronic device may establish a mapping relationship between the second service channel and the first logical channel. After the second electronic device completes the mapping relation between the second service channel and the first logic channel, the first service channel and the second service channel can be considered to be connected, and the logic channel at the bottom layer can also perform service transmission.
In one embodiment, the third information may include an identification of the first traffic channel and an identification of the first logical channel.
By way of example and not limitation, the third information may be information #34 in fig. 3, information #44 in fig. 4, or information #54 in fig. 7. For the description of various information, reference is made to the above related description, and for brevity, the description is omitted here.
In step S805, the basic service layer receives fourth information from the second electronic device.
The fourth information is used for indicating the second service channel and the first logic channel to establish a mapping relation.
In one embodiment, the fourth information may include an identification of the second traffic channel and an identification of the first logical channel.
By way of example and not limitation, the fourth information may be information #36 in fig. 3, information #46 in fig. 4, or information #56 in fig. 7. For the description of various information, reference is made to the above related description, and for brevity, the description is omitted here.
In step S806, the basic service layer determines a mapping relationship between the first service channel and the second service channel according to the fourth information, so as to complete the establishment of the first service channel.
In this step, the basic service layer can learn the mapping relation between the second service channel and the first logic channel according to the fourth information, and also know the mapping relation between the first service channel and the first logic channel, so that the mapping relation between the first service channel and the second service channel can be determined, and the establishment of the first service channel is completed. In this way, the basic service layer may consider that the first service channel and the second service channel establish a connection, and the channels formed by the first service channel, the first logic channel, and the second service channel may be used for transmission of subsequent services.
In some embodiments, the base service layer may further configure a set of traffic channels, where one or more traffic channels may be included in the set of traffic channels.
In the embodiment of the application, the first service channel belongs to a first service channel group, and the first service channel group comprises at least one service channel. The first service channel group has a mapping relation with a first port of the first electronic device, and is used for transmitting data issued by the first port. The second traffic channel belongs to a second traffic channel group comprising at least one traffic channel. The second service channel group has a mapping relation with a second port of the second electronic device, and is used for transmitting data issued by the second port. The first port, the first service channel, the first logic channel, the second service channel and the second port are used for transmitting services between the first electronic device and the second electronic device.
Here, the first traffic channel may be a first traffic channel established in the first traffic channel group, or may be a traffic channel established in the first traffic channel group other than the first traffic channel. When the first service channel is a first service channel established in the first service channel group, the first service channel group needs to be established while the first service channel is established. When the first traffic channel is not the first traffic channel established in the first traffic channel group, establishing the first traffic channel may be considered as establishing a sub-channel in the already established first traffic channel group.
In one example, if the first service channel is not the first service channel established in the first service channel group, in step S801, the basic service layer determines to establish the first service channel according to the service requirement, which may include: when the transmission state of the first service channel group does not meet the service requirement, the basic service layer determines to newly establish a first service channel in the first service channel group.
In other words, the first traffic channel group is already established and used for transmitting data issued by the first port. If the transmission state of the first service channel group does not meet the service requirement, for example, the current transmission state does not meet the service quality or the service channel is blocked, the basic service layer may add a sub-channel in the first service channel group, that is, establish the first service channel, so as to perform service splitting. In a specific implementation, the basic service layer may determine whether to establish the first service channel in multiple manners according to different service requirements.
The first service channel for service splitting may use a different access technology than other service channels in the first service channel group, or use different spectrum resources, etc., so as to implement splitting.
In one example, if the first service channel is a first service channel established in the first service channel group, the base application layer is required to initiate a process of creating the service channel group. Thus, prior to step S801, the base service layer may receive a traffic demand sent by the base application layer, the traffic demand instructing the base service layer to create the first traffic channel group. In step S801, the basic service layer determines to establish a first service channel according to the indication of the service requirement, where the first service channel is a first service channel in the first service channel group.
By way of example, but not limitation, for example, the traffic demand indicates that the traffic channel is dedicated to transmitting data of a certain traffic, or the traffic demand indicates that the transmission mode of the traffic data is a transparent transmission mode, the basic service layer determines to newly create a first traffic channel, and the first traffic channel belongs to a new traffic channel group.
In some embodiments, before the basic service layer receives the service requirement sent by the basic application layer, the basic application layer may perform port negotiation with the second electronic device, to determine that the first electronic device uses the first port, and the second electronic device uses the second port.
That is, before the base service layer sends a traffic demand to instruct the base service layer to create the first traffic channel group, the base service layer needs to negotiate with the second electronic device port to determine for which port to create the first traffic channel group.
In the embodiment of the present application, the second electronic device may also include a basic application layer, so that the port negotiation process may occur between the basic service layer of the first electronic device and the basic service layer of the second electronic device. The information interacted by the port negotiation process can be transmitted through a default service channel.
For the case where the first traffic channel is the first traffic channel established in the first traffic channel group (i.e., the first traffic channel is established while the first traffic channel group needs to be established), the method shown in fig. 10 may further include step S807 and step S808, as shown in fig. 10.
Before step S801, step S807 is performed, and the basic service layer receives fifth information transmitted by the basic application layer.
The fifth information is used for indicating that the service channel is applied for the first port. The first port is the port through which the first electronic device and the second electronic device negotiate to determine. The first port is a port used for transmitting service on the electronic equipment side. It may be understood that, in the case where the first electronic device and the second electronic device negotiate the ports, the fifth information is used to indicate that the service channel is applied for the first port, and may be understood to indicate that the service channel is applied for the first port and the second port.
By way of example and not limitation, the fifth information may be information #31 in fig. 3, or information #41 in fig. 4. For the description of various information, reference is made to the above related description, and for brevity, the description is omitted here.
After step S806, step S808 is performed, and the base service layer transmits sixth information to the base application layer.
The sixth information is used for indicating the first port to establish a mapping relation with the first service channel group.
By way of example and not limitation, the sixth information may be information #37 in fig. 3, or information #47 in fig. 4. For the description of various information, reference is made to the above related description, and for brevity, the description is omitted here.
In the embodiment of the present application, the first service channel may be a bidirectional transmission channel, that is, a channel used for the first electronic device and the second electronic device to mutually transmit services. The first traffic channel may be a unidirectional transmission channel, i.e. for the first electronic device to transmit traffic to the second electronic device, but not for the second electronic device to transmit traffic to the first electronic device.
In one embodiment, if the first traffic channel is a bidirectional transmission channel, the fifth information may include an identification of the first port and an identification of the second port. The sixth information may include an identification of the first port and a first mapping identification, wherein the first mapping identification is used to indicate the first traffic channel group.
Because the first service channel is a bidirectional transmission channel, when the basic application layer applies for the service channel for the port, the basic service layer needs to be notified of the port negotiated by the first electronic device and the second electronic device to establish the first service channel available for bidirectional transmission.
In one embodiment, if the first traffic channel is a unidirectional transmission channel, the fifth information may include an identification of the first port. The sixth information may include an identification of the first port and a first mapping identification, wherein the first mapping identification is used to indicate the first traffic channel group.
In the embodiment of the present application, the first mapping identifier is denoted as an identifier of the first service channel group, as above GoupID, may be denoted as an identifier of the first service channel, as above TCID, and may be denoted as a transmission channel mapping identifier, as above MapTCID. For the representation of GoupID, TCID and MapTCID, reference is made to the above related description, and for brevity, no further description is given here.
In some embodiments, the fifth information may further include traffic channel type information and quality of service indication information. The service channel type information is used for indicating the type of the service, such as indicating that the first service channel is a unicast service channel, a multicast service channel or a broadcast service channel. The quality of service indication information is used to indicate the traffic demand on the traffic channel, such as transmission rate, delay, packet loss rate, communication period, maximum packet size, etc.
In some embodiments, the fifth information may further include additional parameters such as transmission mode information, whether to piggyback indication information, and the like. Wherein the transmission mode information is used to indicate a transmission mode of the data, wherein the transmission mode may include a base mode, a transparent mode, a normal mode, a stream control mode, a stream mode, a retransmission mode, and the like. The information indicating whether to carry is used for indicating whether the first service channel is special for transmitting the data issued by the first port.
Regarding the service channel type, the transmission mode, etc., reference may be made to the related descriptions in the embodiments of fig. 3 to 9, and the description is omitted herein for brevity.
In the embodiment of the application, the access layer of the first electronic device can support a plurality of access technologies, such as an SLB access technology and an SLE access technology. When the first electronic equipment and the second electronic equipment need to carry out wireless service or service distribution, a user does not need to select or specify which access technology to carry out service transmission, a base service layer automatically selects a bottom access technology according to service requirements, and a service channel is established for transmission. The method can realize compatibility of various access technologies and unification of upper layers, namely, a basic application layer does not need to perceive the access technologies, and the basic service layer completes functions of channel creation, distribution and the like.
The method shown in fig. 10 describes a process of establishing a first traffic channel, which may also be released in some embodiments when it is not required to transmit traffic. Fig. 11 is a schematic flow chart of another method for configuring a channel for transmitting traffic according to an embodiment of the present application. As shown in fig. 11, the method may include steps S801 to S808 and steps S901 to S906.
Steps S801 to S808 are used to establish the first traffic channel, and steps S901 to S906 are used to release the first traffic channel. The process of establishing the first service channel is the same as steps S801 to S808 shown in fig. 10, and specifically, the description related to fig. 10 will be referred to, and for brevity, will not be repeated here. Only the procedure of releasing the first traffic channel will be described in detail.
As shown in fig. 11, in steps S801 to S808, a first traffic channel is established.
In step S901, when a preset condition is satisfied, the basic service layer determines to release the first service channel.
In the embodiment of the present application, if the first service channel group includes a plurality of service channels, and the first service channel is one of the plurality of service channels, the process of releasing the first service channel is a process of deleting sub-channels in the service channel group. If the first service channel group includes a service channel, that is, when the first service channel is included, the process of releasing the first service channel may also be considered as a process of releasing the first service channel group when the first service channel is released, that is, when the first service channel is released, the service channel group to which the first service channel belongs is released.
In one example, the preset conditions may include: the first service channel does not transmit data within a preset duration.
That is, the first traffic channel may be released if the first traffic channel does not transmit traffic for a long period of time.
In another example, the preset conditions may include: the base service layer receives indication information sent by the base application layer, wherein the indication information is used for indicating and releasing a first service channel group to which a first service channel belongs, the first service channel group has a one-to-one mapping relationship with a first port of the first electronic device, and the first service channel group is used for transmitting data issued by the first port.
That is, when the basic service layer receives the indication information of the basic application layer, the first service channel may be released according to the indication information. It should be noted that, here, the basic service layer needs to combine the mapping situation of the port and the service channel group to determine whether to release the first service channel. For example, when the first port and the first service channel group are in a one-to-one mapping relationship, it is determined to release the first service channel.
In step S902, the basic service layer transmits seventh information to the access layer.
The seventh information is used to apply for releasing the first logical channel. Here, the first logical channel has a mapping relation with the first service channel.
In one embodiment, the seventh information may include an identification of the first traffic channel.
By way of example and not limitation, the seventh information may be information #62 in fig. 8 or information #72 in fig. 9. For the description of various information, reference is made to the above related description, and for brevity, the description is omitted here.
In step S903, the basic service layer receives eighth information from the access layer.
The eighth information is used for indicating the demapping relation between the first service channel and the first logic channel.
In one embodiment, the eighth information may include an identification of the first traffic channel.
By way of example and not limitation, the eighth information may be information #63 in fig. 8, or information #73 in fig. 9. For the description of various information, reference is made to the above related description, and for brevity, the description is omitted here.
In some embodiments, the parameters of the first logical channel may remain unchanged or be reconfigured. Or the first logical channel is deleted. In a specific implementation, the access layer may process the first logic channel according to practical situations, and details refer to the related descriptions of fig. 8-9.
In step S904, the basic service layer transmits ninth information to the second electronic device.
The ninth information is used for indicating the second electronic device to release the second service channel, that is, indicating the second electronic device to release the mapping relation between the second service channel and the first logic channel.
In one embodiment, the ninth information may include an identification of the first traffic channel.
By way of example and not limitation, the ninth information may be information #64 in fig. 8, or information #74 in fig. 9. For the description of various information, reference is made to the above related description, and for brevity, the description is omitted here.
Accordingly, after receiving the ninth information, the second electronic device may release the second service channel.
In step S905, the basic service layer receives tenth information from the second electronic device.
The tenth information is used for indicating the unmapped relation between the second service channel and the first logic channel.
In one embodiment, the tenth information may include an identification of the second traffic channel.
By way of example and not limitation, the tenth information may be information #66 in fig. 8, or information #76 in fig. 9. For the description of various information, reference is made to the above related description, and for brevity, the description is omitted here.
It should be noted that steps S904 and S905 may occur between the basic service layer of the first electronic device and the basic service layer of the second electronic device, where information interacted with by the two devices may be transmitted through the control channel.
In step S905, the basic service layer determines that the first service channel and the second service channel are in a mapping relation released according to the tenth information, and completes the release of the first service channel.
When the basic service layer receives the tenth information, the link between the first electronic device and the second electronic device can be considered to be removed, and the first service channel and the second service channel are disconnected.
As mentioned above, when the first traffic channel is the only one traffic channel within the first traffic channel group, the first traffic channel group needs to be released while the first traffic channel is released. Thus in some embodiments, when it is desired to simultaneously release the first traffic channel group, the method shown in fig. 11 may further comprise steps S907 and S908 before step S901, as follows.
Before step S901, step S907 is performed, where the basic service layer receives eleventh information sent by the basic application layer.
The eleventh information is used for indicating to release the service channel for the first port of the first electronic device, wherein the first port has a mapping relationship with the first service channel group, and the first service channel group includes the first service channel.
In one embodiment, the eleventh information may include an identification of the first port.
By way of example and not limitation, the eleventh information may be information #71 in fig. 9. For the description of the information #71, reference is made to the above related description, and for brevity, the description is omitted here.
After step S906, step S908 is performed, where the basic service layer receives twelfth information transmitted by the basic application layer.
The twelfth information is used for indicating the unmapped relation between the first port and the first service channel group.
In one embodiment, the twelfth information may include an identification of the first port.
By way of example and not limitation, the twelfth information may be information #77 in fig. 9. For the description of the information #77, reference is made to the above related description, and for brevity, the description is omitted here.
In the embodiment of the application, when the service is ended or the service channel is not needed to be split, the first service channel can be released, so that the transmission resource is released, and the resource utilization rate is improved.
In the methods shown in fig. 10 and 11, the base application layer may be the base application layer 230 shown in fig. 2, and the operations performed by the base application layer may be specifically performed by the corresponding service modules in the base application layer 230 shown in fig. 2. The base service layer may be the base service layer 220 shown in fig. 2, and the operations performed by the base service layer may be performed by a channel management module in the base service layer 230 shown in fig. 2. The access layer may be the access layer 210 shown in fig. 2, and the operations performed by the access layer may be performed by a corresponding access module in the access layer 210 shown in fig. 2.
The method embodiments of the present application are described above in detail with reference to fig. 1 to 11, and the apparatus embodiments of the present application are described below in detail with reference to fig. 12 to 13. It is to be understood that the description of the method embodiments corresponds to the description of the device embodiments, and that parts not described in detail can therefore be seen in the preceding method embodiments.
Fig. 12 is a schematic structural view of an apparatus provided by an embodiment of the present application. The apparatus 1000 in fig. 12 may be a specific example of the electronic device in fig. 1 or fig. 2. The apparatus 1000 shown in fig. 12 may be used to perform the method of fig. 10 or 11, and the embodiments shown in fig. 3 to 9 may be embodied, and the description will not be repeated to avoid redundancy.
The apparatus 1000 shown in fig. 12 includes a traffic module 1010, a channel management module 1020, and an access module 1030. The apparatus 1000 supports multiple access technologies, where the access module 1030 may be a module implementing one of the access technologies.
And a service module 1010, configured to issue a service requirement.
A channel management module 1020 for:
Establishing a first service channel according to service requirements;
Transmitting first information to the access module 1030, the first information being used to apply for a logical channel supporting a first access technology, the first access technology being selected from a plurality of access technologies by the channel management module 1020;
Receiving second information from the access module 1030, where the second information is used to instruct the first service channel to establish a mapping relationship with the first logic channel;
transmitting third information to the second electronic equipment, wherein the third information is used for indicating the second electronic equipment to establish a second service channel;
Receiving fourth information from the second electronic device, wherein the fourth information is used for indicating the second service channel and the first logic channel to establish a mapping relation;
and determining the mapping relation between the first service channel and the second service channel according to the fourth information, and completing the establishment of the first service channel.
By way of example and not limitation, the business module 1010 may be any of the business modules shown in fig. 2 in the underlying application layer 230. The channel management module 1020 may be a channel management module in the base service layer 220 shown in fig. 2. Access module 1030 may be a module supporting SLB access technology in access layer 210 shown in fig. 2 or a module supporting SLE access technology.
Optionally, the first service channel belongs to a first service channel group, the first service channel group includes at least one service channel, the first service channel group has a mapping relationship with a first port of the first electronic device, and the first service channel group is used for transmitting data issued by the first port. The second service channel belongs to a second service channel group, the second service channel group comprises at least one service channel, the second service channel group has a mapping relation with a second port of the second electronic device, and the second service channel group is used for transmitting data issued by the second port. The first port, the first service channel, the first logic channel, the second service channel and the second port are used for transmitting services between the first electronic device and the second electronic device.
Here, the first electronic device is the apparatus 1000.
Optionally, the channel management module 1020 is specifically configured to determine to newly create the first service channel in the first service channel group when the transmission status of the first service channel group does not meet the service requirement.
Optionally, the channel management module 1020 is further configured to receive a service requirement sent by the service module 1010, where the service requirement instructs the channel management module 1020 to create a first service channel group; and determining to establish a first service channel, wherein the first service channel is a first service channel in a first service channel group.
Optionally, the service module 1010 is further configured to perform port negotiation with the second electronic device to determine that the first electronic device uses the first port and the second electronic device uses the second port.
Optionally, the channel management module 1020 is specifically configured to receive the fifth information sent by the service module 1010. The fifth information is used for indicating to apply for a service channel for the first port; the sixth information is sent to the traffic module 1010. The sixth information is used for indicating the first port to establish a mapping relation with the first service channel group.
Optionally, the first service channel is a bidirectional transmission channel; the fifth information comprises an identification of the first port and an identification of the second port; the sixth information includes an identification of the first port and a first mapping identification, wherein the first mapping identification is used to indicate the first traffic channel group.
Optionally, the first service channel is a unidirectional transmission channel; the fifth information includes an identification of the first port; the sixth information includes an identification of the first port and a first mapping identification, wherein the first mapping identification is used to indicate the first traffic channel group.
Optionally, the fifth information further includes service channel type information and quality of service indication information.
Optionally, the channel management module 1020 is further configured to perform channel parameter negotiation with the second electronic device.
Optionally, the channel management module 1020 is specifically configured to generate an identifier of the first service channel.
Optionally, the first information includes an identification of the first traffic channel.
Optionally, the second information includes an identification of the first traffic channel and an identification of the first logical channel.
Optionally, the third information includes an identification of the first traffic channel and an identification of the first logical channel.
Optionally, the fourth information includes an identification of the second traffic channel and an identification of the first logical channel.
Optionally, the first information includes logical channel type information and quality of service information.
Optionally, the first logical channel is an established logical channel, a reconfigured logical channel, or a newly established logical channel.
Optionally, the channel management module 1020 is further configured to:
when a preset condition is met, determining to release the first service channel;
transmitting seventh information to the access module 1030, where the seventh information is used to apply for releasing the first logical channel;
receiving eighth information from the access module 1030, where the eighth information is used to indicate that the first service channel and the first logical channel are in a demapping relationship;
Transmitting ninth information to the second electronic device, wherein the ninth information is used for indicating the second electronic device to release the second service channel;
Receiving tenth information from the second electronic device, where the tenth information is used to instruct the second service channel to de-map with the first logic channel;
and determining the demapping relation of the first service channel and the second service channel according to the tenth information, and completing the release of the first service channel.
Optionally, the preset conditions include: the first service channel does not transmit data within a preset duration; or the channel management module 1020 receives the indication information sent by the service module 1010, where the indication information is used to indicate to release the first service channel group to which the first service channel belongs, where the first service channel group has a one-to-one mapping relationship with the first port of the first electronic device, and the first service channel group is used to transmit data sent by the first port.
Optionally, the channel management module 1020 is further configured to receive eleventh information sent by the service module 1010, where the eleventh information is used to indicate that the service channel is released for the first port of the first electronic device, and the first port has a mapping relationship with the first service channel group, and the first service channel group includes the first service channel; the twelfth information sent by the service module 1010 is received, where the twelfth information is used to indicate that the first port and the first service channel group are in a mapping relation.
Optionally, the eleventh information includes an identification of the first port.
Optionally, the twelfth information includes an identification of the first port.
Optionally, the seventh information includes an identification of the first traffic channel.
Optionally, the eighth information includes an identification of the first traffic channel.
Optionally, the ninth information includes an identification of the first traffic channel.
Optionally, the tenth information includes an identification of the second traffic channel.
Optionally, the parameters of the first logical channel remain unchanged or are reconfigured; or the first logical channel is deleted.
Optionally, the plurality of access technologies includes a star flash base SLB access technology and a star flash low power SLE access technology.
Fig. 13 is a schematic structural view of an apparatus provided in another embodiment of the present application. The apparatus 1100 shown in fig. 13 may correspond to the apparatus described above, for example, an electronic device, and in particular the apparatus 1100 may be a specific example of the electronic device in fig. 1 or fig. 2.
The apparatus 1100 comprises: a processor 1120. In an embodiment of the present application, the processor 1120 is configured to implement a corresponding control management operation, for example, the processor 1120 is configured to support the apparatus to perform the method or operation or function shown in fig. 10 or 11 and the method or operation or function of the embodiment shown in fig. 3 to 9 in the foregoing embodiment.
Optionally, the apparatus 1100 may further include: memory 1110 and a communication interface 1130. Processor 1120, communication interface 1130, and memory 1110 may be interconnected or interconnected by bus 1140. Wherein the communication interface 1130 is used to support communication by the device and the memory 1110 is used to store program codes and data for the device. Processor 1120 invokes code or data stored in memory 1110 to perform the corresponding operations. The memory 1110 may or may not be coupled to the processor. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, which may be in electrical, mechanical, or other forms for information interaction between the devices, units, or modules.
The processor 1120 may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so forth. The communication interface 1130 may be a transceiver, circuit, bus, module, or other type of communication interface. Bus 604 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 13, but not only one bus or one type of bus.
The embodiment of the application also provides a communication system which comprises the first electronic equipment and the second electronic equipment.
Embodiments of the present application also provide a computer-readable storage medium having program instructions which, when executed by a processor, cause the processor to perform the method of configuring a channel for transmitting traffic hereinbefore.
The embodiment of the application also provides a chip system, which comprises at least one processor, and when the program instructions are executed in the at least one processor, the at least one processor is caused to execute the method for configuring the channel for transmitting the service.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software 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.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, 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 units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. 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 application 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (24)

1. A method of configuring a channel for transmitting traffic, the method being applied to a first electronic device, the first electronic device including a base application layer, a base service layer, and an access layer, wherein the base application layer is configured to issue traffic demands, and the access layer supports multiple access technologies, the method comprising:
The basic service layer determines to establish a first service channel according to the service requirement;
The basic service layer sends first information to the access layer, wherein the first information is used for applying for a logic channel supporting a first access technology, and the first access technology is selected from the plurality of access technologies by the basic service layer;
The basic service layer receives second information from the access layer, wherein the second information is used for indicating the first service channel and the first logic channel to establish a mapping relation;
The basic service layer sends third information to the second electronic equipment, wherein the third information is used for indicating the second electronic equipment to establish a second service channel;
The basic service layer receives fourth information from the second electronic device, wherein the fourth information is used for indicating the second service channel and the first logic channel to establish a mapping relation;
and the basic service layer determines the mapping relation between the first service channel and the second service channel according to the fourth information, and completes the establishment of the first service channel.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The first service channel belongs to a first service channel group, the first service channel group comprises at least one service channel, the first service channel group has a mapping relation with a first port of the first electronic equipment, and the first service channel group is used for transmitting data issued by the first port;
The second service channel belongs to a second service channel group, the second service channel group comprises at least one service channel, the second service channel group has a mapping relation with a second port of the second electronic device, and the second service channel group is used for transmitting data issued by the second port;
the first port, the first service channel, the first logic channel, the second service channel and the second port are used for transmitting services between the first electronic device and the second electronic device.
3. The method of claim 2, wherein the base service layer determining to establish a first traffic channel based on the traffic demand comprises:
and when the transmission state of the first service channel group does not meet the service requirement, the basic service layer determines to newly establish the first service channel in the first service channel group.
4. The method of claim 2, further comprising, prior to the base service layer determining to establish a first traffic channel based on the traffic demand:
The basic service layer receives the service requirement sent by the basic application layer, and the service requirement indicates the basic service layer to create the first service channel group;
the basic service layer determines to establish the first service channel, wherein the first service channel is a first service channel in the first service channel group.
5. The method of claim 4, further comprising, before the base service layer receives the traffic demand sent by the base application layer:
The basic application layer performs port negotiation with the second electronic device, and determines that the first electronic device uses the first port and the second electronic device uses the second port;
The base service layer receiving the service requirement sent by the base application layer, including:
The basic service layer receives fifth information sent by the basic application layer, wherein the fifth information is used for indicating to apply for a service channel for the first port;
after the basic service layer determines the mapping relation between the first service channel and the second service channel according to the fourth information, the method further comprises:
and the basic service layer sends sixth information to the basic application layer, wherein the sixth information is used for indicating the first port and the first service channel group to establish a mapping relation.
6. The method of claim 5, wherein the first traffic channel is a bi-directional transmission channel;
the fifth information comprises an identification of the first port and an identification of the second port;
The sixth information includes an identification of the first port and a first mapping identification, where the first mapping identification is used to indicate the first traffic channel group.
7. The method of claim 5, wherein the first traffic channel is a unidirectional transmission channel;
The fifth information includes an identification of the first port;
The sixth information includes an identification of the first port and a first mapping identification, where the first mapping identification is used to indicate the first traffic channel group.
8. The method of claim 6, wherein the fifth information further comprises traffic channel type information and quality of service indication information.
9. The method according to any one of claims 1 to 8, further comprising, before the base service layer sends the first information to the access layer:
And the basic service layer carries out channel parameter negotiation with the second electronic equipment.
10. The method according to any one of claims 1 to 8, wherein the basic service layer determining to establish a first traffic channel according to the traffic demand comprises:
the base service layer generates an identification of the first service channel.
11. The method according to any one of claims 1 to 8, wherein,
The first information comprises an identification of the first service channel;
the second information comprises the identification of the first service channel and the identification of the first logic channel;
the third information comprises the identification of the first service channel and the identification of the first logic channel;
the fourth information includes an identification of the second traffic channel and an identification of the first logical channel.
12. The method according to any of claims 1 to 8, wherein the first information comprises logical channel type information and quality of service information.
13. The method according to any one of claims 1 to 8, wherein the first logical channel is an established logical channel, a reconfigured logical channel or a newly established logical channel.
14. The method according to any one of claims 1 to 8, further comprising:
when a preset condition is met, the basic service layer determines to release the first service channel;
The basic service layer sends seventh information to the access layer, wherein the seventh information is used for applying to release the first logic channel;
The basic service layer receives eighth information from the access layer, wherein the eighth information is used for indicating the first service channel and the first logic channel to be in a mapping relation release;
The basic service layer sends ninth information to the second electronic equipment, wherein the ninth information is used for indicating the second electronic equipment to release the second service channel;
The basic service layer receives tenth information from the second electronic device, wherein the tenth information is used for indicating the demapping relation between the second service channel and the first logic channel;
And the basic service layer determines the demapping relation between the first service channel and the second service channel according to the tenth information, and finishes the release of the first service channel.
15. The method of claim 14, wherein the preset conditions include:
the first service channel does not transmit data within a preset duration; or alternatively
The base service layer receives indication information sent by the base application layer, wherein the indication information is used for indicating and releasing a first service channel group to which the first service channel belongs, the first service channel group has a one-to-one mapping relationship with a first port of the first electronic device, and the first service channel group is used for transmitting data issued by the first port.
16. The method of claim 14, wherein prior to the base service layer determining to release the first traffic channel, further comprising:
the base service layer receives eleventh information sent by the base application layer, wherein the eleventh information is used for indicating to release a service channel for a first port of the first electronic device, the first port and a first service channel group have a mapping relationship, and the first service channel group comprises the first service channel;
after the basic service layer determines that the first service channel and the second service channel are in the mapping relation according to the tenth information, the method further comprises:
And the basic service layer receives twelfth information sent by the basic application layer, wherein the twelfth information is used for indicating the demapping relation between the first port and the first service channel group.
17. The method of claim 16, wherein the step of determining the position of the probe comprises,
The eleventh information includes an identification of the first port;
the twelfth information includes an identification of the first port.
18. The method of claim 14, wherein the step of providing the first information comprises,
The seventh information comprises an identification of the first service channel;
the eighth information comprises an identification of the first service channel;
the ninth information comprises an identification of the first service channel;
The tenth information includes an identification of the second traffic channel.
19. The method of claim 14, wherein the step of providing the first information comprises,
Parameters of the first logical channel remain unchanged or are reconfigured; or alternatively
The first logical channel is deleted.
20. The method of any of claims 1 to 8, wherein the plurality of access technologies includes a star flash base SLB access technology and a star flash low power SLE access technology.
21. An apparatus for configuring a channel for transmitting traffic, comprising:
a memory for storing a computer program;
A processor for executing a computer program stored in the memory to cause the apparatus to perform the method of any one of claims 1 to 20.
22. An apparatus configured for a channel for transmitting traffic, comprising at least one processor and a communication interface for providing input or output of instructions and/or data to the at least one processor, the at least one processor executing code instructions to cause the apparatus to perform the method of any of claims 1-20.
23. A computer-readable storage medium, characterized in that computer-executable instructions are stored which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 20.
24. A system on a chip comprising at least one processor, wherein program instructions, when executed in the at least one processor, cause the at least one processor to perform the method of any of claims 1 to 20.
CN202110880797.9A 2021-08-02 2021-08-02 Method and device for configuring channel for transmitting service Active CN115701725B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110880797.9A CN115701725B (en) 2021-08-02 2021-08-02 Method and device for configuring channel for transmitting service
PCT/CN2022/107612 WO2023011231A1 (en) 2021-08-02 2022-07-25 Method and apparatus for configuring channel used for service transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110880797.9A CN115701725B (en) 2021-08-02 2021-08-02 Method and device for configuring channel for transmitting service

Publications (2)

Publication Number Publication Date
CN115701725A CN115701725A (en) 2023-02-10
CN115701725B true CN115701725B (en) 2024-07-30

Family

ID=85142426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110880797.9A Active CN115701725B (en) 2021-08-02 2021-08-02 Method and device for configuring channel for transmitting service

Country Status (2)

Country Link
CN (1) CN115701725B (en)
WO (1) WO2023011231A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001172A (en) * 2006-06-28 2007-07-18 华为技术有限公司 Managing method for route, method for implementing cross-domain end-to-end management
CN105682014A (en) * 2012-04-09 2016-06-15 华为技术有限公司 Communication method and system, access network equipment and application server

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8280978B2 (en) * 2006-12-29 2012-10-02 Prodea Systems, Inc. Demarcation between service provider and user in multi-services gateway device at user premises
EP2717538B1 (en) * 2012-04-09 2019-08-07 Huawei Technologies Co., Ltd. Communication method and system, access network device, and application server
WO2015021595A1 (en) * 2013-08-13 2015-02-19 华为技术有限公司 Service channel configuration method, optical line terminal and passive optical network
CN106856585B (en) * 2015-12-08 2021-01-08 斑马智行网络(香港)有限公司 Method and device for establishing short-distance wireless channel
US11228869B2 (en) * 2017-03-31 2022-01-18 Intel Corporation Roadway communication system with multicast
CN110949458B (en) * 2019-11-27 2021-11-12 交控科技股份有限公司 Rail transit operation and maintenance management system based on micro-service architecture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001172A (en) * 2006-06-28 2007-07-18 华为技术有限公司 Managing method for route, method for implementing cross-domain end-to-end management
CN105682014A (en) * 2012-04-09 2016-06-15 华为技术有限公司 Communication method and system, access network equipment and application server

Also Published As

Publication number Publication date
WO2023011231A1 (en) 2023-02-09
CN115701725A (en) 2023-02-10

Similar Documents

Publication Publication Date Title
WO2018202153A1 (en) Method and device for use in configuring novel quality of service architecture in dual connectivity system
KR20090042792A (en) A method and apparatus for time synchronization of parameters
WO2022205234A1 (en) Communication method and apparatus
CN111918237B (en) Communication method and device
US8973074B2 (en) Method and system for isochronous communication in audio/video networks
CN113630738B (en) Side-link communication method and device
US20240224300A1 (en) Channel configuration method, and apparatus
US20240049116A1 (en) Method for transmitting and receiving data and device for same in short-range wireless communication system
CN114080057A (en) Application method and device for calculating load
WO2023011316A1 (en) Data transmission method, electronic device, chip, and storage medium
CN115250537A (en) Communication method and device
CN115701725B (en) Method and device for configuring channel for transmitting service
CN113950029A (en) Communication method and device
CN111436078A (en) Communication method and network device
CN111343667A (en) Communication method and communication device
WO2021227076A1 (en) Communication method, device and system
WO2023071567A1 (en) Transmission channel reconfiguration method and apparatus, and electronic device
WO2023082974A1 (en) Method and apparatus for configuring channel for transmitting multicast service
WO2022242387A1 (en) Apparatus based on wireless short-range communication protocol architecture, and electronic device
WO2023272444A1 (en) Communication method and communication apparatus therefor
WO2023165247A1 (en) Semi-persistent scheduling method, user equipment, base station and communication system
WO2024067411A1 (en) Communication method and apparatus
WO2023165235A1 (en) Semi-persistent scheduling method, user equipment, gnb and communication system
CN117119521A (en) Data transmission method, device and storage medium
CN116867000A (en) Data transmission method and communication device

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