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

Links

Images

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 service transmission, 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 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 to establish a mapping relation with the first logic channel; 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 to establish a mapping relation with the first logic channel; 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 various 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 with each other through a wireless short-distance communication technology, and information sharing and wireless transmission of services are achieved. With the introduction of new demands and the development of new technologies, wireless short-range communication technologies are also continuously developing. In order to meet the requirements of the internet scene facing the whole industry, the satellite-link alliance (spark alliance) is established and aims to promote the innovation of a new generation of wireless short-distance communication technology and the industrial ecology so as to bear the application of scenes such as intelligent automobiles, intelligent homes, intelligent terminals, intelligent manufacturing and the like and meet the extreme performance requirements.
In order to support a new generation of wireless short-distance communication technology and realize a complete flow of short-distance services, a transmission channel of the services needs to be designed under a brand-new protocol framework. Therefore, how to configure a channel for transmitting traffic becomes an urgent problem to be solved.
Disclosure of Invention
The application provides a method and a device for configuring a channel for service transmission, which can enable upper-layer services to be dynamically transmitted through multiple access technologies and improve the flexibility of service transmission.
In a first aspect, a method for configuring a channel for service transmission is provided, where the method is applied to a first electronic device, and the first electronic device includes a basic application layer, a basic service layer, and an access layer, where the basic application layer is used to issue service requirements, 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 multiple 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 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 to establish a mapping relation with the first logic channel; 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 this embodiment, the access layer of the first electronic device may support multiple access technologies. When the first electronic device and the second electronic device need to perform wireless service or service distribution, a user does not need to select or designate which access technology to perform service transmission, and the basic service layer automatically selects a bottom access technology according to service requirements and establishes a service channel for transmission. Therefore, compatibility of various access technologies and unification of upper layers can be achieved, namely the basic application layer does not need to sense the access technologies, and the basic service layer completes functions of channel creation, shunting and the like. Therefore, the upper layer service can be dynamically transmitted through various access technologies, and the flexibility of service transmission is improved.
With reference to the first aspect, in a 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 sent 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 and a second port of the second electronic device have a mapping relation, and the second service channel group is used for transmitting data issued by the second port; wherein the first port, the first traffic channel, the first logic channel, the second traffic channel, and the second port are configured to transmit traffic between the first electronic device and the second electronic device.
In the embodiment of the application, after the basic application layer issues data to the basic service layer, one or more service channels can be selected from the service channel group by the basic service layer for transmission, and the basic application layer does not sense how the service channels are transmitted, and can shield the transmission of the bottom layer to the upper layer.
With reference to the first aspect, in a possible implementation manner, the determining, by the basic service layer, to establish the 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 may newly establish a first service channel in the first service channel group for service offloading, so as to improve the service transmission efficiency.
With reference to the first aspect, in a possible implementation manner, before the determining, by the basic 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; and 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 process can be initiated by the basic application layer to instruct the basic service layer to create.
With reference to the first aspect, in a 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 and the second electronic device perform port negotiation, and determine that the first electronic device uses the first port and the second electronic device uses the second port; the basic service layer receives the service requirement sent by the basic application layer, and the method comprises the following steps: the basic service layer receives fifth information sent by the basic application layer, wherein the fifth information is used for indicating that a service channel is applied for the first port; after the basic service layer determines the mapping relationship between the first service channel and the second service channel according to the fourth information, the method further includes: and the basic service layer sends sixth information to the basic application layer, wherein the sixth information is used for indicating the first port to establish a mapping relation with the first service channel group.
With reference to the first aspect, in a 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 identifier of the first port and a first mapping identifier, where the first mapping identifier is used to indicate the first traffic channel group.
The first service channel may be a bidirectional transmission channel, which facilitates mutual service transmission between the first electronic device and the second electronic device.
With reference to the first aspect, in a possible implementation manner, the first service channel is a unidirectional transmission channel; the fifth information comprises an identification of the first port; the sixth information includes an identifier of the first port and a first mapping identifier, where the first mapping identifier 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 can indicate the service channel type, so that the basic service layer establishes a service channel of a corresponding type.
With reference to the first aspect, in a possible implementation manner, before the sending, by the basic service layer, the first information to the access stratum, the method further includes: and the basic service layer and the second electronic equipment carry out channel parameter negotiation.
The basic service layer and the second electronic device perform channel parameter negotiation, and can establish a channel by using the negotiated parameters, so that the establishment failure of the subsequent process is prevented.
With reference to the first aspect, in a possible implementation manner, the determining, by the basic service layer, to establish a first service channel according to the service requirement includes: and the basic service layer generates an identifier 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 an identifier of the first service channel and an identifier of the first logic channel; the third information comprises an identifier of the first service channel and an identifier of the first logic channel; the fourth information includes an identifier of the second service channel and an identifier of the first logical channel.
With reference to the first aspect, in a possible implementation manner, the first information includes logical channel type information and quality of service information.
With reference to the first aspect, in a possible implementation manner, the first logical channel is an already 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 for releasing the first logic channel; the basic service layer receives eighth information from the access layer, wherein the eighth information is used for indicating that the first service channel and the first logic channel are in a demapping relationship; the basic service layer sends ninth information to the second electronic device, where the ninth information is used to instruct the second electronic device 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 that the second service channel is in a mapping relation with the first logic channel; and the basic service layer determines that the first service channel and the second service channel release the mapping relation according to the tenth information, and completes the release of the first service channel.
When the service is finished or the service channel distribution is not needed, the first service channel can be released, so that the transmission resource is released, and the resource utilization rate is improved.
With reference to the first aspect, in a possible implementation manner, the preset condition includes: the first service channel does not transmit data within a preset time length; or, the basic service layer receives indication information sent by the basic application layer, where the indication information is used to indicate to 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 issued by the first port.
When the first traffic channel does not transmit traffic for a long time, the first traffic channel may be released.
When the upper layer indicates that the first service channel group is no longer used for transmitting the data issued by the first port, the first service channel may be released.
With reference to the first aspect, in a possible implementation manner, before the determining, by the basic service layer, to release the first traffic channel, the method further includes: the basic service layer receives eleventh information sent by the basic application layer, where the eleventh information is used to instruct to release a service channel for a first port of the first electronic device, where the first port has a mapping relationship with a first service channel group, and the first service channel group includes the first service channel; after the basic service layer determines, according to the tenth information, that the first service channel and the second service channel are demapped, the method further includes: and the basic service layer receives twelfth information sent by the basic application layer, wherein the twelfth information is used for indicating that the first port and the first service channel group are in a demapping relationship.
With reference to the first aspect, in a possible implementation manner, the eleventh information includes an identifier 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 identifier of the first service channel; the eighth information comprises an identifier of the first service channel; the ninth information comprises an identifier of the first service channel; the tenth information includes an identification of the second traffic channel.
With reference to the first aspect, in a possible implementation manner, the method further includes: the parameters of the first logic channel remain unchanged or are reconfigured; or the first logical channel is deleted.
With reference to the first aspect, in a possible implementation manner, the multiple access technologies include a star flash basic SLB access technology and a star flash low-power SLE access technology.
In a second aspect, an apparatus for configuring a channel for transmitting traffic is provided, which includes a module or a unit configured to perform the method in any one of the above-described first aspect or any one of the above-described possible implementation manners of the first aspect. The module or unit may be a hardware circuit, a software circuit, or a combination of a hardware circuit and a software circuit.
Optionally, the apparatus may be an electronic device, and may also 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 transceiving unit may be a transceiver. When the apparatus is a chip in an electronic device, the processing unit may be a processor, and the transceiving unit may be an input/output interface, a pin, a circuit, or the like. The transceiving unit may be referred to as a communication interface.
In one possible design, the apparatus further includes a storage unit configured to store instructions, and the processing unit executes the instructions stored by the storage unit to cause the apparatus to perform the method of the first aspect or any of the possible implementations 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 (e.g., a register, a buffer, etc.) in the chip, or may be a storage unit (e.g., a read-only memory, a random access memory, etc.) outside the chip in the electronic device.
In a third aspect, an apparatus for configuring a channel for transmitting traffic is provided, including: a memory for storing a computer program; a processor configured to execute the computer program stored in the memory to cause the apparatus to perform the method of the first aspect or any of the possible implementations 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, including: at least one processor and a communication interface for providing the at least one processor with input or output of instructions and/or data, the at least one processor executing code instructions such that the apparatus performs the method of any one of the above-described first aspect or possible implementation manner of the first aspect.
In a fifth aspect, a chip system is provided, which includes at least one processor, and when a program instruction is executed in the at least one processor, the at least one processor is caused to execute the method in any one of the above-described first aspect or possible implementation manner of the first aspect.
In one possible design, the system-on-chip further includes a memory for storing program instructions and/or data. The chip system may be formed by a chip, and may also include a chip and other discrete devices.
In one possible design, the chip system further includes a transceiver for providing input or output of instructions and/or data to the at least one processor.
In a sixth aspect, a computer program product is provided, the 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 one of the possible implementations of the first aspect.
It should be noted that, all or part of the computer program code may be stored in the first storage medium, where the first storage medium may be packaged together with the processor or may be packaged separately from the processor, and this is not specifically limited in this embodiment of the present application.
In a seventh aspect, a computer-readable medium is provided, which stores computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is caused to execute the method of the first aspect or any possible implementation manner of the first aspect.
In an eighth aspect, a communication system is provided, comprising the first electronic device and the second electronic device above.
Optionally, the first electronic device may be the apparatus according to 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 provided in an embodiment of the present application.
Fig. 3 is a schematic flowchart of creating a non-default service 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 illustrating a conflict occurring in the process of creating a non-default service channel according to an embodiment of the present application.
Fig. 6 is a schematic diagram of resolving a conflict in the process of creating a non-default service channel according to an embodiment of the present application.
Fig. 7 is a schematic flowchart of adding a non-default sub-traffic channel according to an embodiment of the present application.
Fig. 8 is a flowchart illustrating deletion of a non-default sub-traffic channel according to an embodiment of the present application.
Fig. 9 is a flowchart illustrating releasing a non-default traffic channel according to an embodiment of the present application.
Fig. 10 is a schematic flow chart 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 for configuring a channel for transmitting traffic according to another embodiment of the present application.
Fig. 12 is a schematic structural diagram 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 solution in the present 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 applicable. As shown in fig. 1, the communication system 100 includes a plurality of electronic devices, any two of which may communicate with each other.
Taking any one of the 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 (SIP) phone, a smart phone (smart phone), a Wireless Local Loop (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 (AR), an electronic device in industrial control (e.g. smart manufacturing), an electronic device in unmanned driving (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 external device, and various household or industrial electronic devices, including, but not limited to, a smart phone (smart phone), a smart screen, a smart speaker (e.g., an Artificial Intelligence (AI) speaker, a high fidelity (high fidelity) speaker), a smart sensor, a television (television) headset, a VR head display, a tablet computer, a display, a camera, a laptop computer, a vehicle-mounted terminal (e.g., a microphone, a speaker, etc.), a projector, a printer, a smart bracelet (smart watch), a smart watch (smart watch), smart glasses, a smart car, a smart lathe, a smart monitoring device, and the like.
The embodiment of the present application does not particularly limit the specific form of the electronic device. The types of electronic devices in the communication system 100 may be partially the same, may be completely the same, or may be completely different.
By way of example, and not limitation, the communication system 100 shown in the figures includes 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 electronic device mentioned above. It is understood that the number of electronic devices included in the communication system 100 may be more or less, and the embodiment of the present application is not limited thereto, but includes at least two electronic devices. It should be noted that the communication system 100 shown in fig. 1 is only an exemplary illustration, and the communication system may further include other devices, such as a router or a base station, and the like, which is not limited in this embodiment of the present application.
The electronic devices can communicate with each other through a wireless short-distance communication technology, so that information sharing and wireless transmission of services are realized. With the introduction of new demands and the development of new technologies, wireless short-range communication technologies are also continuously developing. In order to meet the requirements of internet scenes in the whole industry, the spark alliance (spark alliance) is established and aims to promote the innovation of a new generation of wireless short-distance communication technology and the industrial ecology so as to bear the application of scenes such as intelligent automobiles, intelligent homes, intelligent terminals and intelligent manufacturing and meet the extreme performance requirements. The electronic equipment related in the embodiment of the application can communicate based on a new generation wireless short-distance communication technology designed by the star-flash union.
Aiming at the above scenario, in order to support a new generation of wireless short-range communication technology and realize a complete flow of short-range service, a brand-new protocol framework needs to be established. Fig. 2 shows a protocol framework diagram provided in an embodiment of the present application. The protocol framework is applicable 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, protocol framework 200 includes, from bottom to top, an access stratum 210, a base service stratum 220, and a base application stratum 230.
The access layer 210 is mainly responsible for processing the underlying logical links, such as establishment, reconfiguration, deletion, and the like of the logical links, so as to support the service requirements (such as reliable data, real-time data, and the like) of the basic service layer 220, where the logical links are used for transmitting services between two electronic devices. The access layer 210 includes a plurality of access technologies, including but not limited to an access technology of a satellite flash basic (SLB) short-range wireless communication system, an access technology of a satellite flash low power consumption (SLE) short-range wireless communication system, and other access technologies, such as a bluetooth low power (BLE) technology, a future satellite flash alliance access technology, and the like, in which the embodiment of the present application only briefly introduces the architecture of the access layer 210 by using the SLB and SLE access technologies as an example.
As shown in fig. 2, the access stratum 210 further may 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, cascade connection, reordering and the like so as to ensure the reliable transmission of data. The physical layer provides a physical connection for the data link layer using a transmission medium to enable 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 performs Link Control Protocol (LCP) interaction on the control link, thereby performing functions such as physical/logical link management and device behavior control. The media access layer is responsible for allocating wireless resources and providing data transmission service for the link control layer. In the embodiment of the present application, the SLB access technology is mainly responsible for transmission of a large-bandwidth, high-rate, and high-power consumption service (e.g., a video playing service), and the SLE access technology is mainly responsible for transmission of a small-bandwidth, low-rate, and low-power consumption service (e.g., an audio playing service).
For an electronic device supporting two access technologies, such as SLB and SLE, its access layer can implement SLB access and SLE access respectively through different modules. In the embodiment of the application, one service at the upper layer can be dynamically transmitted through a plurality of access technologies, so that the flexibility of service transmission is improved.
It is understood that the names of the two star flash alliance access technologies described above are merely exemplary and should not be construed as limiting the embodiments of the present application, and in other embodiments or in future architectures, SLB and SLE may use other names.
The basic service layer 220 is mainly responsible for creating, adding, deleting, releasing, etc. transmission channels, and controlling logical links (e.g., selecting access technologies) to support the service requirements (e.g., traffic, rate, sound 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 retain the ability to be compatible with more future access technologies.
The basic service layer 220 may include a plurality of modules or functional units that achieve the above design goals, including but not limited to a device discovery module, a service management module, a channel management module, a quality of service (QoS) management module, a security management module, a measurement management module, a multi-domain coordination module, a 5G fusion 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 transmission channels, including creating/adding/deleting/releasing, and the functions of the module will be described in detail later, which will not be detailed herein. The QoS management module is used for managing and negotiating the QoS of transmission. And the safety management module is responsible for the safety connection of the basic service layer. The measurement management module is used for configuring measurement and scheduling of a bottom layer, and performing power control and the like. The multi-domain coordination module realizes information interaction among domains under the scene that a plurality of domains (subnets) exist, and realizes interference avoidance and load balance among the domains. The 5G fusion module is used for establishing a channel with the honeycomb 5G remote management capability and realizing the equipment with the honeycomb 5G remote control function through an authentication and certification mechanism.
The transmission of the basic service layer 220 may be divided into transmission of a control plane and transmission of a traffic 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 traffic channel for transmitting data of the traffic plane. The following embodiments of the present application will describe the related flow of the service channel in detail.
The basic application layer 230 is mainly responsible for accepting different service requirements of an upper layer Application (APP), and completing routing of data to the basic 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 so on, according to different classifications of business. And different service function sets comprise classified data processing of the services.
Illustratively, 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 general perception frame comprises the processing of perception data; the generic device management framework includes the processing of device management data; the universal audio/video frame comprises processing of audio/video verses, such as coding and decoding processing; the universal data framework includes processing of file data, such as encryption compression and the like. Different sets of service functions can be distinguished by means of a service 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 at the bottom layer, support the requirements of different services, and specifically, the Host protocol can provide a service module with a request for initiating a service, and transmit and control service data.
In this embodiment, the electronic device shown in fig. 1 may support at least one access technology, for example, support at least one of the SLB access technology and the SLE access technology shown in fig. 2. No matter what access technology is supported by the access layer, the upper layer can adopt a uniform Host protocol, that is, the upper layer can be compatible with a plurality of access technologies.
To facilitate understanding of the present application, related art terms referred to in the present application will be described below.
A port (port) is a channel of a basic application layer, and multiple ports can be mapped to the same transmission channel.
A Transmission Channel (TC), which is a channel of a basic service layer, may carry multiple port (port) mappings for the upper part, and may implement the mapping of multiple transmission channels to the same logical channel for the lower part.
A Logical Channel (LC), which is a channel of an access stratum, may be mapped to a plurality of transport channels. 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 base application layer 230 has a concept of a port, the base 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 base application layer 230, a transport channel is a channel of the base service layer 220, and a logical channel is a channel of the access layer 210. A plurality of ports can be mapped to the same transmission channel, namely the ports and the transmission channel have a mapping relation; multiple transmission channels can be mapped to the same logical channel, that is, the transmission channels and the logical channel have a mapping relationship. The logical channel is the basis for establishing the transmission channel in the basic service layer of the upper layer, and the transmission channel of the basic service layer can be used only after the logical channel is successfully established. When two electronic devices communicate, service data can be sent to another electronic device through a port-transmission channel-logical channel path of one electronic device.
To distinguish logical channels, a Logical Channel Identification (LCID) is defined for uniquely identifying a logical channel.
A transmission channel group (transmission channel group) including a plurality of transmission channels. The transmission channels can be used for transmitting data sent from the same port. That is, data (e.g., a data stream, which may include a plurality of data packets) sent by one port is transmitted through only one transmission channel group. Specifically, after the base application layer transmits data of a certain port to the base service layer, the base service layer selects one or more transmission channels in the corresponding transmission channel group to transmit the data packets. Different transmission channels can transmit the same data, and can also transmit different data respectively. For example, when reliable service is transmitted, the transmission channels in the transmission channel group may transmit the same data packet, that is, the data packet performs redundant transmission in the transmission channel group; when transmitting large traffic, the transmission channels in the transmission channel group can transmit different data packets respectively. In the embodiment of the present application, a transmission channel may be regarded as a sub-channel in a transmission channel group.
In order to distinguish transmission channels, a Transmission Channel Identification (TCID) is defined for uniquely identifying the transmission channel. In some embodiments, the transmission channel identifier may include a plurality of bits (bits), wherein a part of the bits is used to identify a number of a transmission channel group to which the transmission channel belongs, i.e., a group identification (GroupID), and a part of the bits is used to identify a number of the transmission channel within the transmission channel group, i.e., a local identification (local id). For example, the transmission channel identification may include 16bits, with an upper 13bits for identifying the group number GoupID and a lower 3bits for identifying the intra-group number locald.
It is mentioned above that the ports and the transmission channels have mapping relationships, and in fact, the upper layer only concerns the transmission channel group, not the sub-channels, so it is the mapping relationship between the ports and the transmission channel group that is obtained and maintained for the base application layer. Therefore, 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 subchannel, the base service layer generates the transport channel identification, TCID. And when the transmission channel is displayed to the upper layer, the transmission channel group is displayed.
Therefore, there are many ways for the basic service layer to transmit the information of the transmission channel group to the basic application layer, as long as the basic application layer can obtain the mapping relationship between the port and the transmission channel group.
Illustratively, when the base service layer presents the transmission channel to the base application layer, a complete transmission channel identifier may be transmitted, an identifier with a group number of group id being constant and a location id of group being 0 may also be transmitted, and an identifier of the transmission channel group (i.e., a group number) may also be transmitted. For the sake of understanding, the following description will be made by taking an example in which the transmission channel identifier includes 16 bits. That is, when the related information of the transmission channel is transmitted to the upper layer, there may be the following situations:
1) The base service layer passes the transport channel identification TCID to the upper layer, an example of which is as follows:
13bits 3bits
GroupID LocalID
accordingly, after receiving the TCID, the upper layer, i.e., the base application layer, may only parse the high 13bits, thereby obtaining the information of the transmission channel group. Or after the basic application layer analyzes the 16-bit transmission channel identifier, the information of the 13-bit transmission channel is extracted, and the information of the transmission channel group can also be obtained.
2) For convenience of description, the basic service layer transfers an identifier whose group number GroupID is unchanged and whose intra-group number locald is 0 to an upper layer, where an embodiment of the present application is referred to as a transmission channel mapping identifier (MapTCID), and examples of the identifier are as follows:
13bits 3bits
GroupID 0b000
since the effective information in the MapTCID is a high 13bits GroupID, it can be considered that when the base application layer has data to transmit, the base service layer can select a transmission channel from a transmission channel group identified by the GroupID to transmit. The underlying application layer is concerned with which transmission channel group data is transmitted, and is not concerned with which transmission channel within the transmission channel group is specifically used for transmission.
3) The basic service layer delivers the transport channel group identification to the upper layer, as an example:
13bits
GroupID
that is to say, the base application layer may only use 13bits to transfer the GroupID of the transmission channel group, so that the base application layer obtains the information of the transmission channel group.
It should be noted that the above-mentioned bit number for representing the transmission channel identifier and the way of showing the transmission channel to the upper layer are only exemplary, and in other embodiments, other ways may also be used to implement the above-mentioned method, for example, mapping the transmission channel identifiers in the same transmission channel group with another identifier, and then the basic service layer transfers the other identifier to the upper layer, and the like, which is not limited in this application.
The channels used by the various layers to route data are introduced above, and the transmission path of the data is briefly described below in conjunction with fig. 2. Referring to fig. 2, when there is traffic data to be transmitted, the base application layer 230 transmits the data from the port to the base service layer 220 through a data flow (flow), and the base service layer 220 selects one or more transmission channels for transmission. Because the transmission channel and the logical channel have a mapping relationship, correspondingly, the access layer uses the corresponding logical channel to continue transmission after receiving the data.
Illustratively, the base service layer 220 may include transmission channels TCID1-TCIDx, and the base service layer 220 may select TCID1 to transmit Qos stream 1 sent by the generic aware framework, select TCID2 to transmit Qos stream 2 sent by the generic device management framework, select TCID3 to transmit Qos stream 3 sent by the generic audio/video framework, select TCIDx to transmit Qos stream 4 sent by the generic data framework, and so on. On the access stratum 210, the data transmitted by TCID1 is transmitted through one logical channel supporting SLB, the data transmitted by TCID2 is transmitted through one logical channel supporting SLB, the data transmitted by TCID3 is transmitted through one logical channel supporting SLE, and the data transmitted by TCIDx is transmitted through one logical channel supporting SLE. It is to be understood that the correspondence between the data streams and the transmission channels and the correspondence between the transmission channels and the logical channels shown in the drawings are merely 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 presented to an upper layer, it may be presented as TCID, mapTCID, or GroupID.
The transmission channel may include a traffic channel and a control channel, wherein the traffic channel is used for transmitting data of the traffic plane, and the control channel is used for transmitting data of the control plane. The establishment of the control channel is a basis for establishing a service channel between electronic devices, and therefore, a relevant process of the service channel related to the embodiment of the present application is executed on the basis of the establishment of the control channel, and as for the establishment process of the control channel, the embodiment of the present application is not described more.
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 implement point-to-point transmission. The multicast service channel is a service channel for transmitting multicast services, can realize point-to-group transmission, and has feedback (ack) on the bottom layer and certain bottom layer reliability. The broadcast service channel is a service channel for transmitting broadcast services, can realize connectionless transmission, has no feedback (ack) on the bottom layer, and needs to ensure reliability 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 establishment of the control channel is completed, and the non-default service channel is established according to the requirements when the service requirements exist. The embodiment of the application mainly introduces the related flow of the non-default service channel in detail.
In the embodiment of the present application, the relevant process of the non-default service channel mainly includes: creating a flow of a non-default service channel, adding a flow of a non-default service sub-channel, deleting a flow of a non-default service sub-channel, and releasing a flow of a non-default service channel.
It should be noted that, in the embodiment of the present application, description is mainly performed on a non-default service channel in a service channel, so that in the following embodiment, when a description of "transmission channel" is referred to, it may be understood as a service channel in a narrow sense, and when a description of "transmission channel group" is referred to, it may be understood as a service channel group in a narrow sense. The traffic channel can still be identified by using the above-described TCID, that is, the traffic channel can be understood as being identified in a narrow sense when the description of "TCID" is referred to in the following embodiments. In some other embodiments, the TCID for identifying the service channel may also be referred to as "service channel identification" or other names, which is not limited in this application.
In the embodiment of the present application, the process of creating the non-default service channel may be regarded as a process of creating a new transmission channel group. The process of adding the non-default service subchannel may be considered as a process of adding a new transmission channel to an existing transmission channel group on the basis of the transmission channel group. The process of deleting the non-default service subchannel may be considered as a process of deleting a transmission channel in an existing transmission channel group. The process of releasing the non-default service channel may be regarded as a process of releasing an existing transmission channel group, that is, a process of deleting all transmission channels in the existing transmission channel group. Hereinafter, the above flows will be described by taking the first electronic device and the second electronic device as an example, and combining the protocol architecture shown in fig. 2 through the interaction between the first electronic device and the second electronic device and between the layers inside each electronic device. Wherein the base service layer in the first electronic device and the second electronic device relates to the channel management module.
Fig. 3 is a schematic flowchart illustrating a process of creating a non-default service channel according to an embodiment of the present application. In the implementation process of the flow, a first electronic device and a second electronic device are involved, and both electronic devices may have a basic application layer 230, a basic service layer 220, and an access layer 210 as shown in fig. 2. The process 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 conjunction with fig. 3.
When the first electronic device and the second electronic device need to perform a wireless service, for example, a user uses the first electronic device (e.g., a mobile phone) and the second electronic device (e.g., a wireless headset) to transmit music for playing, the following procedure may be performed between the first electronic device and the second electronic device.
In step S301, a base application layer of the first electronic device and a base application layer of the second electronic device perform port (port) negotiation.
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 is established for transmitting service management data. Therefore, before the non-default service channel is successfully created, the service management data needing 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 basic application layer of the first electronic device and the basic application layer of the second electronic device may further perform service negotiation, quality of service (QoS) negotiation, and the like. For example, service negotiation, qoS negotiation, port negotiation, and the like between the first electronic device and the second electronic device may all be uniformly transmitted on a default service channel by using a data template provided by the service management module through a service framework in the base application layer. In the embodiment of the present application, attention is mainly paid to a result of port negotiation between the first electronic device and the second electronic device, and therefore, other negotiation processes, such as service negotiation and QoS negotiation, are not described herein too much.
For example, the result of the negotiation between 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 a mapping relationship, 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 relationship between the first port and the second port.
In this embodiment, the first electronic device is a terminal that initiates a service request, and may also be referred to as a home terminal in some embodiments. The second electronic device is the end that receives the data, which may also be referred to as the peer end in some embodiments.
In step S302, the basic application layer of the first electronic device applies for a service channel from the basic service layer (specifically, the 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 traffic channel for the first port and the second port.
The information #31 may include traffic channel type indication information, port information, quality of service indicator (QI), and the like. The service channel type indication information is used for indicating the type of the service channel applied, wherein the service channel type may include a unicast service channel, a multicast service channel, and a broadcast service channel. And 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 a port mapped with the service channel, i.e., the port negotiated in step S301. In this embodiment, the port information includes a first port and a second port, where the first port is used for mapping with a traffic channel on the first electronic device side (it is understood that the first port is actually mapped with a traffic channel group to which the traffic channel belongs), and the second port is used for mapping with a traffic channel on the second electronic device side (it is understood that the second port is actually mapped with a traffic channel group to which the traffic channel belongs). QI is used to indicate the requirements of a service on a service channel, such as transmission rate, delay, packet loss rate, communication period, maximum packet size, and the like.
In some embodiments, the information #31 may also include additional parameters, such as transmission mode indication information, whether or not to exclusively carry indication information, and the like. The transmission mode indication information is used to indicate a transmission mode of data, where the transmission mode may include a basic mode, a transparent transmission mode, a normal mode, a flow control mode, a stream mode, a retransmission mode, and the like.
The base mode is the default transmission mode. When the basic mode is adopted for transmission, no packet is divided, no packet is gathered, no retransmission is carried out, and no flow control is carried out. The transparent transmission mode refers to one-to-one mapping of the service channels and the logical links. When the transparent transmission mode is adopted for transmission, no sub-packet, no packet aggregation and no transmission and control module packet head are added. When the common mode is adopted for transmission, the packet can be divided into packets, and the packets can be gathered without retransmission and flow control. When the flow control mode is adopted for transmission, data packets are numbered, the transmitted data needs to have opposite end ack, a window can be slid in advance, and the data is not retransmitted. When the timer is overtime, the data which does not receive the ack of the opposite terminal is directly discarded, and the discarded data is detected and reported. When the streaming mode is adopted for transmission, data needs to be synchronized in a unidirectional real-time mode, and a sending end has a refresh timeout (flush timeout) value to control the refresh of a packet which is not sent. The retransmission mode has a reliable transmission mechanism, data is retransmitted at a transmission control layer, and retransmission is carried out when an opposite end reply nack is received or a timer is overtime. The retransmission packet does not need to be processed by packet grouping, packet aggregation and the like, but the whole packet is retransmitted. When the retransmission reaches the maximum number, the corresponding service channel needs to be disconnected and reported to the upper layer.
The information indicating whether to exclusively carry in the additional parameter is used for indicating whether the service channel is exclusively used for transmitting data of a certain service. In this embodiment of the application, if the channel management module receives the dedicated load indication, a service channel is newly allocated to the first port, and the existing service channel is not multiplexed, and the newly allocated service channel is not multiplexed in other subsequent flows.
In this embodiment, if the information #31 includes an additional parameter, the channel management module may set the relevant parameter according to the additional parameter in the information # 31. If the information #31 does not include the additional parameter, the channel management module may set the relevant parameter by itself, or set the relevant parameter 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 traffic channel group. In other words, in this step, the path management module of the first electronic device determines whether to map the first port to an existing service path group or to map the first port to a new service path group after creating the new service path group.
The channel management module may have a plurality of implementation manners when determining whether to create the non-default service channel.
In one example, the tunnel management module may determine whether to create a non-default traffic tunnel based on the QI in message # 31. For example, the same QI may multiplex the same traffic channel, i.e., if the QI included in the information #31 is the same as the QI of a certain traffic that has already been 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 according to the transmission mode indication information in the information # 31. For example, if the upper layer indicates that the transmission mode of the service data is transparent transmission, a new non-default service channel is created, and the existing service channel is not multiplexed.
In yet another example, the path management module may determine whether to create a non-default traffic path according to the information of whether to reserve load indication in the information # 31. E.g., whether the dedicated loading indication information indicates that the traffic channel is dedicated to transmitting 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 path management module creates a new service path group, the path management module may determine according to its own algorithm (e.g., a preset rule). For example, in the case that the upper layer does not indicate whether to create or not, the non-default service 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 service channel according to other information, such as service type, underlying channel capability, service transmission requirements, and the like. In a specific implementation, step S303 may be performed according to different algorithms of different vendors, and will not be described herein too much.
In step S303, if the path management module determines that the non-default traffic path is not created, the first port may be mapped to an existing traffic path (i.e., the created traffic path) to transmit new traffic data using the existing traffic path. Then, the channel management module executes step S313 to notify the first electronic device that the basic application layer service channel application is successful, and sends the first port1 and the first mapping identifier to the basic application layer.
It is to be understood that the first mapping identifier here is an identifier passed by the basic service layer to the upper layer to indicate the group to which the traffic channel belongs. For example, the first mapping identifier may be an identifier TCID of the multiplexed service channel, may be an identifier GroupID of a service channel group to which the multiplexed service channel belongs, and may also be a transmission channel mapping identifier Map TCID corresponding to the multiplexed service channel, which is not limited in this embodiment of the present application. Correspondingly, the basic application layer of the first electronic device needs to maintain the mapping relationship between the first port and the first mapping identifier, that is, the mapping relationship between the first port and the service channel group indicated by the first mapping identifier.
In step S303, if the channel management module determines to create a non-default service channel, an identifier TCID-S of a new service channel is generated.
It will be appreciated that the identification TCID-s here is an identification of the newly created traffic channel. In practical application, service channels for transmitting data may have different identifiers on a first electronic device side and a second electronic device side, and for convenience of description, in this embodiment of the present application, an identifier of a service channel on the first electronic device side (i.e., a home terminal) is denoted as TCID-s, and an identifier of a service channel on the second electronic device side (i.e., an opposite terminal) is denoted as TCID-d. After the service channel is established, both the first electronic device and the second electronic device may maintain the identifier TCID-s of the local service channel and the identifier TCID-d of the opposite service channel.
In step S304, a basic service layer (specifically, a channel management module) of the first electronic device performs channel parameter negotiation with a basic service layer (specifically, a channel management module) of the second electronic device.
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. And negotiating the channel parameters 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 size (e.g., denoted by TxWindow), a refresh timer (e.g., denoted by Flushtimer), a maximum number of transmissions (e.g., denoted by maxRetxThreshold), a retransmission timer (e.g., denoted by retransmission timer), and so on. In this embodiment of the present application, the channel parameter negotiated in this step is related to a transmission mode of a service, for example, the size of a transmission window is a parameter that needs to be negotiated between a flow control mode and a retransmission mode, a refresh timer is a parameter that needs to be negotiated between a flow mode and a retransmission mode, the maximum transmission frequency is a parameter that needs to be negotiated between a retransmission mode, and a retransmission timer is a parameter that needs to be negotiated between a flow control mode and a retransmission mode.
In the negotiation process, the information that the first electronic device and the second electronic device need to interact 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 according to a preset rule, which is not described herein in more detail.
In step S305, the basic service layer of the first electronic device applies for a logical channel from the access layer.
Specifically, in step S305, the basic service layer of the first electronic device may send information #32 to the access stratum, where the information #32 is used to apply for a logical channel from the access stratum. This information #31 may include the service requirements for creating TCID-s.
The information #32 may include an identification TCID-s of the local traffic channel, logical channel type indication information, quality of service QoS, and the like. The identification TCID-s of the local service channel is used for the access layer to establish the mapping relation between the service channel and the logic channel. The logical channel type indication information is used to indicate the type of the logical channel. The QoS is used for the access stratum to select a logical channel or configure relevant parameters of the logical channel, and the like.
In practical application, the types of the logic channels may have different dividing manners according to different access technologies, for example, for the SLE access technology, the types of the logic channels may include an asynchronous logic channel, a synchronous logic channel, a unidirectional logic channel, and the like; for the SLB access technology, the logical channel type may include an Unacknowledged Mode (UM) logical channel, an Acknowledged Mode (AM) logical channel, a Transparent Mode (TM) logical channel, and the like. When AM mode logic channel transmission is adopted, the header information of link control layer is added, and the link control layer carries out state report. When the UM mode logic channel is adopted for transmission, the header information of the link control layer is required to be added, and the link control layer does not carry out state report. When TM mode logic channel is adopted for transmission, no header information of link control layer is added, and the link control layer does not carry out state report. The basic service layer (specifically, the channel management module) of the first electronic device may select a logical channel type according to the service requirement and/or the underlying capability, and indicate the logical channel type to the access layer through the logical channel type indication information. For example, for payment application services, the channel management module may select a reliable, high-security 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 one logical channel corresponds to one access technology, the process of selecting a logical channel type by the basic service layer may be regarded 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 underlying layer.
It should be noted that, the QoS in the information #32 and the QI in the information #31 are both used to indicate the quality of service, but the formats and included information of the two may be different. Specifically, after receiving the service requirement issued by the basic application layer, the basic service layer abstracts and processes the information, generates a service requirement that can be analyzed by the access layer, and issues the service requirement to the access layer.
In some embodiments, the information #32 may also include additional parameters, such as whether or not to exclusively load the indication information. And the information of whether the special load indication is used for indicating whether the service channel is special for transmitting the corresponding service data. Here, the access stratum may select a logical channel or configure a parameter related to the logical channel according to whether the indication information is exclusively carried.
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 traffic channel TCID-s and the logical channel LCID is established.
Specifically, in this step, the access stratum of the first electronic device may select one of the following schemes to establish the underlying logical link according to the transmission condition:
scheme 1 (case # 1): TCID-s are mapped to existing logical channel LCIDs. I.e., a mapping relationship between TCID-s and some established logical channel is established.
For example, when an existing logical channel can support an existing service and a new service, a newly-created service channel TCID-s may be mapped onto the existing logical channel, thereby establishing a mapping relationship between TCID-s and LCID.
Scheme 2 (case # 2): the existing logical channel is reconfigured and the TCID-s are mapped to the reconfigured logical channel LCID.
For example, if the access layer determines that the relevant parameters of an existing logical channel cannot meet the service requirements issued by the basic service layer according to the transmission condition, the relevant parameters of the existing logical channel can be reconfigured, and the newly-built service channel TCID-s is mapped to the reconfigured logical channel, thereby establishing the mapping relationship 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 that all existing logical channels are used for transmitting asynchronous data, if the service request initiated by the base application layer is to transmit synchronous data, the access layer may newly establish 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 several schemes and the applicable scenarios listed above are merely exemplary, and in other embodiments, the access stratum may select other manners when establishing the underlying logical link, and the scenarios to which the several schemes are applicable are also other scenarios, which are not described herein one by one.
After step S306 is completed, the 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 success of the logic channel application to the basic service layer (specifically, the channel management module).
Specifically, in this step, the access stratum of the first electronic device may send information #33 to the channel management module, where the information #33 is used to indicate that the application of the logical channel is successful, that is, to indicate that the mapping relationship between the service channel and the logical channel is established. For example, information #33 may include an identification of the created traffic channel TCID-s and an identification of the logical channel LCID. In other words, the access layer returns the mapping relationship between TCID-s and LCID to the basic service layer through the 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 channel management module considers that the underlying logic link can be transmitted.
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 of the establishment of the mapping relationship between the service channel and the logic channel on the first electronic device side.
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 establishes a mapping relationship between the peer service channel and the logical channel.
This information #34 may include the second port2, the identity of the home traffic channel TCID-s and the identity of the logical channel LCID.
In step S309, the basic service layer of the second electronic device generates an identifier 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 the connection between the TCID-S and the TCID-d, that is, may determine the mapping relationship between the TCID-S and the TCID-d. The second electronic device can store the identifier TCID-s and the logical channel identifier LCID of the local service channel, and maintain the mapping relation between the TCID-s and the LCID, the corresponding relation between the TCID-s and the TCID-d, and the like. Correspondingly, the second electronic device may initialize that the number of channels in the service channel group to which the opposite-end service channel belongs is 1.
In the embodiment of the application, the identifiers of the logical channels are the same on the first electronic device and the second electronic device, so that the second electronic device can establish the mapping relationship between the service channel TCID-d and the LCID after receiving the LCID sent by the first electronic device.
In step S310, the basic service layer (specifically, the channel management module) of the second electronic device sends the port information of the opposite end and the mapping information of the service channel to the basic application layer of the second electronic device for port mapping.
Specifically, in this step, the channel management module of the second electronic device may send information #35 to the base application layer, where the information #35 is used to indicate a mapping relationship between the traffic channel group and the port, that is, a mapping relationship between the traffic channel group to which the traffic channel TCID-d belongs and the second port.
The information #35 may include the second port2 and the 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 passed to an upper layer by the basic service layer of the second electronic device, for indicating a group to which the traffic channel belongs. For example, the second mapping identifier may be an identifier TCID-d of the peer service channel, an identifier GroupID of a service channel group to which the peer service channel belongs, or a transmission channel mapping identifier Map TCID corresponding to the peer service channel TCID-d, which is not limited in this embodiment of the present application. Correspondingly, the basic application layer of the second electronic device needs to maintain the mapping relationship between the second port and the second mapping identifier, that is, the 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 the port mapping success to the base service layer.
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 logic 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 mapping relationship between the peer service channel and the logical channel has been established by the second electronic device.
This information #36 may include the identification of the peer traffic channel TCID-d and the identification of the logical channel LCID.
It should be noted that, in step S308 and step S312, 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 the connection between the TCID-S and the TCID-d, i.e., may determine the mapping relationship between the TCID-S and the TCID-d. The first electronic device may store the identifier TCID-d and the logical channel identifier LCID of the peer service channel, and maintain a mapping relationship between the TCID-d and the LCID, a correspondence relationship between the TCID-s and the TCID-d, and the like. Correspondingly, the first electronic device may initialize the number of channels in the service channel group to which the local service channel belongs to be 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 base application layer, where the information #37 is used to indicate a mapping relationship between a service channel group to which the local service channel TCID-s belongs and a 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 passed to an upper layer by a basic service layer of the first electronic device, for indicating a group to which the traffic channel belongs. For example, the first mapping identifier may be an identifier TCID-s of the local service channel, an identifier GroupID of a service channel group to which the local service channel belongs, or a transmission channel mapping identifier Map TCID corresponding to the local service channel TCID-s, which is not limited in this embodiment of the present application. Correspondingly, the basic application layer of the first electronic device needs to maintain the mapping relationship between the first port and the first mapping identifier, that is, the mapping relationship between the first port and the service channel group indicated by the first mapping identifier.
It should be noted that, after the creation of the non-default service channel is completed, 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 process of adding non-default traffic subchannels, which will be described in detail below with reference to the other figures and will not be described in detail here.
In this embodiment, the access layers of the first electronic device and the second electronic device may both support multiple access technologies, for example, an SLB access technology and an SLE access technology. When the first electronic device and the second electronic device need to perform wireless services, a user does not need to select or designate which access technology to perform service transmission, but after a basic application layer issues service requirements, the basic service layer automatically selects a bottom access technology according to the service requirements, and establishes a service channel for transmission.
In the embodiment of the application, a first electronic device determines a mapping relationship between a first port1 and a service channel group to which a home service channel TCID-s belongs and a mapping relationship between the home service channel TCID-s and a logical channel LCID, and a second electronic device determines a mapping relationship between a second port2 and a service channel group to which an opposite service channel TCID-d belongs and a mapping relationship between the opposite service channel TCID-d and the logical channel LCID, and notifies the opposite party of each other. Therefore, the non-default service channel created through the process shown in fig. 3 is a bidirectional service channel, that is, the first electronic device may transmit service to the second electronic device by using the created non-default service channel, and the second electronic device may also transmit service to the first electronic device by using the created non-default service channelTransmitting service, wherein the transmission path of the service data can be the first port
Figure BDA0003191951910000161
It is to be appreciated that the bi-directional traffic channel created by the process 300 shown in fig. 3 supports bi-directional traffic and may also be compatible with unidirectional traffic.
Fig. 4 is a flowchart illustrating a process of creating a non-default traffic channel according to another embodiment of the present application. In the implementation process of the flow, a first electronic device and a second electronic device are involved, and both electronic devices may have a basic application layer 230, a basic service layer 220, and an access layer 210 as shown in fig. 2. The process 400 of creating a non-default service channel shown in fig. 4 is similar to the process 300 of creating a non-default service channel shown in fig. 3, except that the non-default service channel created in the process 400 is a unidirectional service channel, and parameters and data routes carried in the interaction process are different. The differences between the process 400 and the process 300 are mainly described in detail below, and other parts not described in detail may refer to the corresponding descriptions in the process 300.
As shown in fig. 4, the process 400 of creating a non-default traffic channel includes steps S401 to S411.
In step S401, the base application layer of the first electronic device and the base application layer of the second electronic device perform port (port) negotiation.
The data involved in the negotiation process may be transmitted over the default traffic channel that has been established.
In some embodiments, in step S401, the basic application layer of the first electronic device and the basic application layer of the second electronic device may further perform service negotiation, quality of service (QoS) negotiation, and the like, which are not described herein too much.
For example, the result of the negotiation between 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 basic application layer of the first electronic device applies for a service channel from the basic service layer (which may be specifically 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 a transmission traffic channel for the first port.
The information #41 may include traffic channel type indication information, a first port, QI, and the like. 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 at the first electronic equipment side. The QI is used to indicate the requirements of the service on the service channel, such as transmission rate, delay, packet loss rate, communication period, maximum packet size, and the like.
Optionally, the information #41 may further include additional parameters, such as transmission mode indication information, whether to exclusively carry indication information, and the like. The transmission mode indication information is used to indicate a transmission mode of data. The information indicating whether to exclusively carry is used for indicating whether the service channel is exclusively used for 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 sense 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 traffic channel group.
If not, the channel management module does not create a non-default service channel, and maps the first port to the existing service channel so as to transmit new service data by using the existing service channel. Then, the channel management module executes step S411 to notify the first electronic device that the basic application layer service channel application is successful, and sends the first port and the first mapping identifier to the basic application layer. Regarding the implementation manner of the basic service layer determining whether to create the non-default service channel, and the form of the first mapping identifier may refer to the related description in step S303 in fig. 3, and for brevity, details are not described herein again.
If yes, the channel management module determines to create a non-default service channel and generates an identifier TCID-s of a new service channel.
In step S404, a basic service layer (specifically, a channel management module) of the first electronic device and a basic service layer (specifically, a 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. And negotiating the channel parameters 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 parameter according to the transmission mode of the service, and the specific content may refer to the related description of step S404 in fig. 3, and for brevity, no further description is given here.
In step S405, the basic service layer of the first electronic device applies for a logical channel from the access stratum.
Specifically, in step S405, the basic service layer of the first electronic device may send information #42 to the access stratum, where the information #42 is used to apply for a logical channel to the access stratum. This information #42 may include the service requirements for creating 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, and the like. The identifier TCID-s of the local service channel is used for the access layer to establish the mapping relation between the service channel and the logic channel. The logical channel type indication information is used to indicate the type of the logical channel. The QoS is used for the access stratum to select a logical channel or configure relevant parameters of the logical channel, and the like.
Optionally, the information #42 may further include additional parameters, such as whether or not to exclusively load the indication information. The information indicating whether to exclusively carry is used for indicating whether the service channel is exclusively used for transmitting the corresponding service data.
At 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 traffic channel TCID-s and the logical channel LCID is established.
Specifically, in this step, the access stratum of the first electronic device may select one of the following schemes to establish the underlying logical link according to the transmission condition:
case #1: and mapping the TCID-s to the LCID of the existing logical channel, namely establishing a mapping relation between the TCID-s and the established logical channel.
case #2: the existing logical channel is 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 to which the above scheme is adapted, reference may be made to the related description of step S406 in fig. 3, and details are not repeated here for brevity.
In step S407, the access layer of the first electronic device feeds back success of the logical channel application to the basic service layer (specifically, the channel management module).
Specifically, in this step, the access stratum of the first electronic device may send information #43 to the channel management module, where the information #43 is used to indicate that the application of the logical channel is successful, that is, to indicate that the mapping relationship between the service channel and the logical channel is established. For example, information #43 may include an identification TCID-s of the created traffic channel and an identification LCID of the logical channel. In other words, the access layer returns the mapping relationship between TCID-s and LCID to the basic service layer through the 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 channel management module considers that the underlying logic link can be transmitted.
In step S408, the basic service layer of the first electronic device sends a create transmission channel request to the basic service layer of the second electronic device. The request for creating the transmission channel is used for informing the second electronic device of the establishment of the mapping relation between the service channel and the logic channel at the side of the first electronic device.
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 establishes a mapping relationship between the peer service channel and the logical channel.
This information #44 may include the identification TCID-s of the home traffic channel and the identification 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 regard that the basic service layers of the two electronic devices have established the connection between the TCID-S and the TCID-d, and determine the mapping relationship between the TCID-S and the TCID-d. After receiving the LCID sent by the first electronic equipment, the second electronic equipment can also establish a mapping relation between the service channel TCID-d and the LCID, and maintain the corresponding relation 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 relevant contents above with respect to step S30 x.
In the embodiment of the application, because the created non-default service channel is a service channel only supporting unidirectional transmission, the second electronic device does not need to sense the mapping relationship between the port and the service channel group in the process of creating, and therefore the service channel group to which the service channel of the opposite terminal belongs and the second port do not need to be bound. That is, the process 400 may omit the steps S310 and S311 as compared to the process 300.
With continued reference to fig. 4, at step S410, 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. The creating transmission channel response is used for notifying the first electronic device of the establishment of the mapping relation between the service channel and the logic channel at the second electronic device side.
Specifically, in this step, the base service layer of the second electronic device may send information #46 to the base service layer of the first electronic device, where the information #46 may include an identification TCID-d of the peer traffic channel and an identification 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 the TCID-S and the TCID-d, and the first electronic device may maintain the corresponding relationship (i.e., mapping relationship) between the TCID-S and the TCID-d. Correspondingly, the first electronic device may initialize the number of channels in the service channel group to which the local service channel belongs to be 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 base application layer, where the information #47 is used to indicate a mapping relationship between a service channel group to which the local service channel TCID-s belongs and a port.
The information #47 may include the 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 passed to an upper layer by a basic service layer of the first electronic device, for indicating a group to which the traffic channel belongs. The form of the first mapping id may refer to the related description of step S313 in fig. 3, and is not described herein again 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 related contents above with respect to fig. 3 where the steps are not described in detail herein.
In this embodiment of the present application, the non-default service channel created through the process shown in fig. 4 is a unidirectional service channel, that is, the first electronic device may transmit a service to the second electronic device by using the created non-default service channel, otherwise, the service may not be transmitted.
In the embodiment of the present application, the identifier TCID-s of the local service channel may be different from or the same as the identifier TCID-d of the opposite service channel. In case that the two are different, the first electronic device and the second electronic device may each maintain respective service channel identities, which makes it more flexible in creating non-default service channels. In the case where the two are the same, that is, the TCID-s generated by the basic service layer of the first electronic device and the TCID-d generated by the basic service layer of the second electronic device are identical, 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 for creating the non-default service channel at the same time and the locally generated TCID-S are the same (for example, both are 0x 0028), when the flows on both sides go to step S309, it is found that the identifiers TCID of the service channels applied by both sides are the same, that is, the identifier of the service channel applied by the first electronic device for the first service transmission is the same as the identifier of the service channel applied by the second electronic device for the second service transmission.
For ease of understanding, referring to fig. 5, the basic service layer of the first electronic device initiates a process of creating a non-default traffic channel, and locally generates TCID-S =0x0028, for example, execute step S303 of process 300 or step S403 of process 400. Meanwhile, the basic service layer of the second electronic device also initiates a process of creating a non-default traffic channel, and locally generates TCID-S =0x0028, for example, step S303 of process 300 or step S403 of process 400 is performed.
Then, the first electronic device sends a request for creating a transmission channel to the second electronic device, and carries TCID-S =0x0028, for example, step S308 of the process 300 or step S408 of the process 400 is executed. Meanwhile, the second electronic device sends a request to create a transmission channel to the first electronic device, and carries TCID-S =0x0028, for example, step S308 of flow 300 or step S408 of flow 400 is executed.
Taking the first electronic device as an example, the first electronic device generates an identifier TCID-S =0x0028 of a local service channel in a process initiated by the first electronic device, and the first electronic device also plays a role as an opposite terminal in a process initiated by the opposite terminal, so after receiving a request for creating a transmission channel sent by the second electronic device, the identifier TCID-d of the opposite terminal service channel needs to be generated, for example, step S309 of the process 300 or step S409 of the process 400 is executed. If it is required that in one flow, the identifications of the service channels generated by the local terminal and the opposite terminal are the same, in a flow initiated by the second electronic device, the TCID-d generated by the first electronic device as the opposite terminal needs to be consistent with the TCID-s generated by the second electronic device, that is, TCID-d =0x0028. However, the first electronic device has generated the identifier TCID-s =0x0028 of the local service channel in the self-initiated flow. For the first electronic device, a situation occurs in which the same service channel identifier is applied for two flows creating non-default service channels, so that a conflict occurs and the subsequent flows cannot be continued. The situations encountered by the second electronic device are similar and are not described in detail.
In this scenario, to solve the conflict problem, one may choose to either create a failure or introduce a guessing punch mechanism to solve.
It is better understood that the manner of creating the failure by both the two parties is selected, that is, the first electronic device stops the process initiated by the second electronic device for creating the non-default service channel, and the second electronic device stops the process initiated by the first electronic device for creating the non-default service channel, for example, the information of the failure to create the transmission channel is carried in step S312 of the process 300 or step S410 of the process 400.
If a finger-guessing mechanism is introduced, when a request for creating a transmission channel is sent to the opposite side, a random number for comparing sizes is carried, and whether a link establishment request of the opposite side is received or not is determined according to the size of the random number.
For convenience of understanding, referring to fig. 6, the first electronic device sends a create transmission channel request to the second electronic device, and carries TCID-s =0x0028 and a first random number (e.g., 100). Meanwhile, the second electronic device sends a create transmission channel request to the first electronic device, and carries TCID-s =0x0028 and a second random number (e.g., 90). The basic 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 smaller than the first random number 100, the first electronic device may reject the link establishment request of the second electronic device, and stop creating the non-default service channel requested to be created by the second electronic device, for example, feeding back a create transmission channel failure response to the second electronic device. Accordingly, the basic service layer of the second electronic device may resolve the collision 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 link establishment request of the first electronic device, and continue to create the non-default service channel requested to be created by the first electronic device, for example, feed back a successful response of creating the transmission channel to the first electronic device. In this way, the transmission channel TCID-s =0x0028 is established in the procedure of creating the non-default traffic channel initiated by the first electronic device, but is not established in the procedure of creating the non-default traffic channel initiated by the second electronic device, and the conflict is resolved.
In some embodiments, if the first random number and the second random number have the same size, both sides may fail to establish, and the link establishment request of the other side is rejected. 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 when sending the request to create the transmission channel, the plurality of second random numbers having a priority order. When comparing the random numbers, the comparison may be performed in order of priority, that is, the first random number with the highest priority and the second random number with the highest priority are compared first, and 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 to compare the first random number with the second priority, and so on.
It should be noted that the above listed ways of resolving conflicts are only exemplary, and in other embodiments, there may be other ways of resolving conflicts, for example, the priorities of the first electronic device and the second electronic device are predefined, the electronic device with the higher priority may reject the request for establishing a link sent by the electronic device with the lower priority, and the like, and details thereof are not described herein.
The process of creating a non-default service channel, that is, the process of creating a new transmission channel group, provided in the embodiment of the present application is described above with reference to fig. 3 to fig. 6. In practical applications, the service data may not be transmitted on the first created service channel, but may be transmitted on any subchannel in the service channel group. Described below in conjunction with fig. 7.
Fig. 7 is a flowchart illustrating adding a non-default service subchannel according to an embodiment of the present application. In the implementation process of the flow, a first electronic device and a second electronic device are involved, and both electronic devices may have a basic application layer 230, a basic service layer 220, and an access layer 210 as shown in fig. 2. The flow 500 of adding a non-default traffic subchannel illustrated in fig. 7 includes steps S501 to S508, and each step is described in detail below in conjunction with fig. 7.
The flow 500 is performed on the premise that the first service channel group already exists, and the first electronic device and the second electronic device are using 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 offloading, for example, when a service is blocked, the following flow may be performed between the first electronic device and the second electronic device, so as 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 service offloading referred to herein may be understood as adding a service channel in the first service channel group to transmit data issued by the first port.
In step S501, a basic service layer (specifically, a channel management module) of the first electronic device generates an identifier TCID-S of the local service channel.
It will be appreciated that the TCID-s needs to be in the same traffic channel group as the existing traffic channel on which traffic is occurring. For example, the TCID-s may comprise a plurality of bits (bits), wherein a part of the bits is used to identify the number of the first traffic channel group (i.e. the group number GroupID) and a part of the bits is used to identify the number of the traffic channel within the first traffic channel group (i.e. the intra-group number localidd).
In step S502, a basic service layer (specifically, a channel management module) of the first electronic device and a basic service layer (specifically, a 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. And negotiating the channel parameters through the interactive process. In the negotiation process, the information that the first electronic device and the second electronic device need to interact 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 the description of the specific parameters, reference may be made to the related description of step S304 of the process 300, and for brevity, no further description is provided 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 according to a preset rule, which is not described herein in more detail.
In step S503, the basic service layer of the first electronic device applies for a logical channel from the access layer.
In particular, the basic service layer of the first electronic device may send information #52 to the access layer, which information #52 is used to apply for a logical channel to the access layer. This information #52 includes the traffic requirements to create the TCID-s.
The information #52 may include identification TCID-s of the home traffic channel, logical channel type indication information, quality of service QoS, and the like. The identifier TCID-s of the local service channel is used for the access layer to establish the mapping relation between the service channel and the logic channel. The logical channel type indication information is used to indicate the type of the logical channel. The QoS is used for the access stratum to select a logical channel or configure relevant parameters of the logical channel, and the like.
Optionally, the information #52 may further include additional parameters, such as whether or not to exclusively carry the indication information. The information of whether to exclusively carry the indication is used for indicating whether the service channel is exclusively used for transmitting the service data.
For the description of the relevant parameters included in the information #52, reference may be made to the description of step S305 of the process 300, and for brevity, the description is not repeated here.
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 traffic channel TCID-s and the logical channel LCID is established.
Specifically, in this step, the access stratum of the first electronic device may select one of the following schemes to establish the underlying logical link according to the transmission condition:
case #1: and mapping the TCID-s to the LCID of the existing logical channel, namely establishing a mapping relation between the TCID-s and the established logical channel.
case #2: the existing logical channel is 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 a specific decision and an applicable scenario of the access stratum, reference may be made to the related description of step S306 in the process 300, and details are not repeated herein for brevity.
In step S505, the access layer of the first electronic device feeds back success of the logical channel application to the basic service layer (specifically, the channel management module).
Specifically, in this step, the access stratum of the first electronic device may send information #53 to the channel management module, where the information #53 is used to indicate that the application of the logical channel is successful, that is, to indicate that the mapping relationship between the service channel and the logical channel is established. For example, information #53 may include an identification of the added traffic channel TCID-s and an identification of the logical channel LCID. In other words, the access layer returns the mapping relationship of TCID-s and LCID to the basic service layer through the 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 channel management module considers that the underlying logic link can be transmitted.
In step S506, the basic service layer of the first electronic device sends a create transmission channel request to the basic service layer of the second electronic device. The request for creating the transmission channel is used for informing the second electronic device of the establishment of the mapping relation between the service channel and the logic channel at the side of the first electronic device.
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.
This information #54 may include the identification TCID-s of the home traffic channel and the identification 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 traffic channel is a subchannel in the existing traffic channel group, a TCID-d is allocated in the group. For example, the basic service layer of the second electronic device may determine whether the TCID-s is a sub-channel in an existing service channel group according to the identifier of the local service channel maintained before. If yes, establishing a new sub-channel TCID-d 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 the connection between the TCID-S and the TCID-d, and determine and maintain the mapping relationship between the TCID-S and the TCID-d. Accordingly, the second electronic device may add 1 to the number of subchannels in the peer service group. Meanwhile, the basic service layer of the second electronic device may determine a mapping relationship between the opposite-end service channel TCID-d and the LCID.
In step S508, 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. The create transmission channel response is used for notifying 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 #56 to the basic service layer of the first electronic device, where the information #56 is used to indicate that the mapping relationship between the peer service channel and the logical channel has been established by the second electronic device.
This information #56 may include the identification of the peer traffic channel TCID-d and the identification of the logical channel LCID.
After step S508 is completed, the first electronic device may regard that the basic service layers of the two electronic devices have established the connection between the TCID-S and the TCID-d, and determine and maintain the mapping relationship between the TCID-S and the TCID-d. Accordingly, the first electronic device may add 1 to the number of subchannels in the home service channel group (i.e., the first service channel group).
In the embodiment of the application, when traffic offload is required (for example, an existing traffic channel is blocked), a basic service layer of the electronic device may add a new traffic channel in an existing traffic 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 adding the non-default service sub-channel flow, there are multiple service channels 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) to transmit, or perform redundant transmission on multiple service channels at the same time, and the basic application layer does not sense the transmission mode determined by the basic service layer.
In this embodiment of the present application, there may be multiple ways for determining blocking of a service channel, which are taken as examples and not limited, data issued by an upper layer may generally be stored in a buffer queue, and if the basic service layer determines that buffer data accumulated by the upper layer exceeds a certain percentage, the service channel may be considered to be blocked.
It can be understood that, when service splitting is required, it indicates that the first service channel group cannot meet the service requirement during service transmission, and the service requirement may be issued to the basic service layer by the basic application layer when the first service channel group is created. Therefore, in the embodiment of the present application, it can be considered that the basic service layer also determines whether to perform service offloading according to a service requirement, that is, determines whether to add a 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 to add a non-default service subchannel according to the service transmission condition. When the access layers of the first electronic device and the second electronic device support multiple access technologies, the basic service layer can automatically determine in which access technology a service channel is newly established, so that compatibility of the multiple access technologies and unification of the upper layers are realized, that is, the basic application layer does not need to sense the access technologies, and the basic service layer completes functions of relevant channel selection, shunting and the like.
The above describes, with reference to fig. 7, a flow of adding a non-default sub-service channel, that is, a flow of adding a new service channel in an existing service channel group, according to the embodiment of the present application. When the service distribution is not needed, the service channel which is not transmitted any more can be deleted. Described below in conjunction with fig. 8.
Fig. 8 is a flowchart illustrating deletion of a non-default sub-traffic channel according to an embodiment of the present application. In the implementation process of the flow, a first electronic device and a second electronic device are involved, and both electronic devices may have a basic application layer 230, a basic service layer 220, and an access layer 210 as shown in fig. 2. The process 600 for deleting a non-default traffic subchannel illustrated 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 service channel group already exists, and a first electronic device and a second electronic device are performing a service by using multiple service channels in the first service channel group (for example, data sent by a first port is transmitted by using multiple service channels in the first service channel group). When the traffic does not need to be shunted any more, the following procedure may be performed between the first electronic device and the second electronic device to delete a traffic channel that is no longer used for transmitting data (e.g., a traffic channel that was used for shunting before), that is, a non-default traffic subchannel, in 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 service channel group includes a service channel #1 and a service channel #2, and the channel management module only transmits data to the service channel #1 and does not transmit data to the service channel #2 for a long period of time, so that the channel management module may consider that transmission is not required on the service channel #2, and may delete the service channel #2.
In step S602, the basic service layer of the first electronic device applies for releasing the logical channel to the access stratum.
The step is that the basic service layer applies for releasing the mapping relation between the business 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 instruct to release the logical channel mapped with the traffic channel TCID-s, i.e., instruct to release the mapping relationship between the traffic channel TCID-s and the logical channel LCID.
This information #62 may include the identity TCID-s of the home traffic channel.
In step S603, the access stratum end traffic channel TCID-S of the first electronic device is mapped to the logical channel LCID.
Specifically, in this step, the access stratum of the first electronic device may select one of the following schemes to handle the underlying logical link according to the transmission condition:
scheme 1 (case # 1): end TCID-s are mapped to the existing logical channel LCID and maintain the existing LCID.
For example, when the access layer determines that the service channel TCID-s is deleted according to the transmission condition and the existing transmission is not greatly affected, the mapping relationship between the TCID-s and the LCID may be released, and the relevant parameter configuration of the LCID may be maintained. For example, if the LCID maps multiple traffic channels and TCID-s accounts for 1% of the transmission capability of the LCID, deleting TCID-s has little influence on the transmission of the LCID, and thus related parameters of the LCID may not be reconfigured.
Scheme 2 (case # 2): the end TCID-s is mapped to the existing logical channel LCID and the existing logical channel LCID is reconfigured.
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 large, for example, the data traffic is greatly reduced, the mapping relationship between the TCID-s and the LCID may be released, and the LCID of the existing logical channel may be reconfigured, so as to reduce the transmission capability of the LCID. For example, if the LCID maps multiple traffic channels and TCID-s accounts for 90% of the transmission capability of the LCID, deleting TCID-s will have a greater effect on the transmission of the LCID, and the transmission capability of the LCID needs to be reduced. This is because the transmission space above the logical channel is pre-allocated, and if the set QoS capability is high, the number of real transmissions is small, which may affect the transmissions of other logical channels. Therefore, reconfiguration of relevant parameters of the LCID is required.
Scheme 3 (case # 3): and mapping the ending TCID-s to the existing logical channel LCID, and deleting the existing logical channel LCID.
For example, the LCID maps only one traffic channel, i.e., TCID-s, and the LCID can be deleted after the TCID-s is deleted.
It should be noted that several solutions listed above can be considered as the reverse process of step S504 in the process of adding the non-default service subchannel shown in fig. 7. The schemes and the applicable scenarios listed here are merely exemplary, and in other embodiments, the access stratum may select other ways when tearing down the underlying logical link, and the scenarios to which the above schemes are applicable also include other scenarios, which are not described one by one herein.
After step S603 is completed, the mapping relationship between the service channel and the logic channel is released.
In step S604, the access layer of the first electronic device feeds back success of releasing the logical channel to the basic service layer (specifically, the channel management module).
Specifically, in this step, the access stratum 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 identity TCID-s of the traffic channel being deleted.
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 channel management module considers that the bottom layer logic link is removed.
In step S605, the basic service layer of the first electronic device sends a delete transmission channel request to the basic service layer of the second electronic device. The delete transmission channel request is used to notify the second electronic device of the release of the mapping relationship between the service channel and the logical channel on 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 has released the mapping relationship between the peer service channel and the logical channel.
This information #64 includes the identity 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 may sense a mapping relationship 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 may determine, according to the mapping relationship, the mapping relationship between the opposite-end service channel and the logic channel that needs to be released, thereby deleting the identifier TCID-d of the opposite-end service channel. Or, in the process of creating the service channel, the second electronic device may perceive that the TCID-S is connected to the TCID-d, that is, the TCID-S and the TCID-d have a corresponding relationship, so in step S606, after the basic service layer of the second electronic device obtains the TCID-S, the opposite-end service channel identifier TCID-d that needs to be deleted may be determined.
After step S606 is completed, the second electronic device may consider that the basic service layers of the two electronic devices have deleted the connections of TCID-S and TCID-d. Correspondingly, the second electronic device may subtract 1 from the number of channels in the service channel group to which the peer service channel TCID-d belongs. 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 basic service layer of the second electronic device sends a delete transmission channel response to the basic service layer of the first electronic device. The delete transmission channel response is used for notifying the first electronic device of the release 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 #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.
This information #66 may include the identification TCID-d of the peer traffic channel.
It should be noted that, in step S605 and step S607, 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 connections of TCID-S and TCID-d. Accordingly, the first electronic device may subtract 1 from the number of channels in the service channel group (i.e., the first service channel group) to which the local service channel TCID-s belongs.
In the embodiment of the application, when the service does not need to be shunted any more, the basic service layer of the electronic device can delete the service channel 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 process of deleting the non-default sub-service channel provided in the embodiment of the present application is described above with reference to fig. 8, and when the service transmission has ended (i.e. the service stops, for example, the first port is no longer used for transmitting data), the service channel group used for transmitting the stopped service may be released, i.e. the non-default service channel is released. This is described below in conjunction with fig. 9.
Fig. 9 is a flowchart illustrating releasing a non-default traffic channel according to an embodiment of the present application. In the implementation of the 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 with reference to fig. 9.
When the service between the first electronic device and the second electronic device is stopped, the following process may 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 basic application layer of the first electronic device notifies the basic service layer (specifically, the 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 may be understood as removing a mapping relationship between the first port and the local service channel group and removing a mapping relationship between the second port and the opposite service channel group.
In particular, the base application layer of the first electronic device may send information #71 to the channel management module, the information #71 being used to instruct to release the traffic channel 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 traffic channel group.
Specifically, the channel management module may determine whether to release the non-default service channel according to a mapping relationship between the port and the service channel group.
For example, if multiple ports are mapped to the same service channel group, that is, the service channel group mapped to the first port has a mapping relationship with other ports, the non-default service channel is not released, that is, 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. For example, the base service layer may execute step S709 to notify the base application layer that the mapping relationship between the first port and the traffic channel group is released, and the first port is released.
If the first port has a one-to-one mapping relation with the service channel group, that is, the service channel group mapped with the first port has no mapping relation 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 releasing the logical channel to the access layer.
The step is that the basic service layer applies for releasing the mapping relation between the business 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 instruct to release the logical channel mapped with the traffic channel TCID-s, i.e., instruct to release the mapping relationship between the traffic channel TCID-s and the logical channel LCID.
This information #72 may include the identity TCID-s of the home traffic channel.
In step S704, the access stratum end traffic channel TCID-S of the first electronic device is mapped to the logical channel LCID.
Specifically, the access stratum of the first electronic device may select one of the following schemes to handle the underlying logical link according to the transmission condition:
case #1: end TCID-s maps to an existing logical channel LCID and maintains the existing LCID.
case #2: the end TCID-s is mapped to the existing logical channel LCID and the existing logical channel LCID is reconfigured.
case #3: and finishing mapping the TCID-s to the LCID of the existing logical channel and deleting the LCID of the existing logical channel.
It should be noted that several solutions listed above can be regarded as the reverse process of step S306 in the process of creating the non-default service channel shown in fig. 3. For the scenario to which the above scheme is adapted, reference may be made to the related description of step S603 in fig. 8, and details are not repeated here 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 success of releasing the logical channel to the basic service layer (specifically, the channel management module).
Specifically, in this step, the access stratum 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 logical channel release is successful.
Information #73 may include the identity TCID-s of the traffic channel that is 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 channel management module considers that the bottom layer logic link is removed.
In step S706, the basic service layer of the first electronic device sends a request to delete the transmission channel to the basic service layer of the second electronic device. The delete transmission channel request is used to notify the second electronic device of the release of the mapping relationship between the service channel and the logical channel on 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 has released the mapping relationship between the peer service channel and the logical channel.
This information #74 includes the identity TCID-s of the traffic channel that is released.
In step S707, the basic service layer of the second electronic device releases the opposite-end traffic channel TCID-d.
Specifically, the basic service layer of the second electronic device may sense a mapping relationship 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 may determine, according to the mapping relationship, the mapping relationship between the opposite-end service channel and the logic channel that needs to be released, thereby releasing the opposite-end service channel TCID-d. Or, in the process of creating the service channel, the second electronic device may sense that the TCID-S is connected to the TCID-d, that is, the TCID-S and the TCID-d have a corresponding relationship, so in step S707, after the basic service layer of the second electronic device obtains the TCID-S, the opposite-end service channel TCID-d that needs to be released may be determined.
After step S707 is completed, the second electronic device may consider that the basic service layers of the two electronic devices have deleted the connections of TCID-S and TCID-d. Correspondingly, the second electronic device may subtract 1 from the number of channels in the service channel group to which the opposite-end service channel TCID-d belongs to obtain 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 base service layer of the second electronic device may notify the base 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 basic service layer of the second electronic device sends a delete transmission channel response to the basic service layer of the first electronic device. The delete transmission channel response is used for notifying the first electronic device of the release 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 #76 to the basic service layer of the first electronic device, where the information #76 is used to indicate that the mapping relationship between the peer service channel and the logical channel has been released by the second electronic device.
This information #76 may include the identification TCID-d of the peer traffic channel.
After step S708 is completed, the first electronic device may consider that the basic service layers of the two electronic devices have deleted the connections of TCID-S and TCID-d. Accordingly, the first electronic device may subtract 1 from the number of channels in the service channel group to which the local service channel TCID-s belongs, and set the subtracted value to 0.
It can be understood that, when a service channel group to be released includes multiple service channels, during the process of releasing the service channels, sub-channels in the service channel group may be sequentially released until the number of channels in the service channel group is 0. Or, a plurality of subchannels in the service channel group may be released at a time, and released for a plurality of times until the number of channels in the service channel group is 0. Alternatively, all traffic channels may be released at once. The procedure is similar in the latter two cases, and is briefly described below by taking the example of releasing all traffic channels at once.
For example, in step S703, the information #72 may include the identifications of all the service channels (i.e., multiple TCID-S) in the local service channel group, so as to notify the access stratum 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., multiple TCID-S) of the access stratum demapping relationship.
It should be noted that the logical channels mapped by the multiple service channels in the local service channel group may support different access technologies, for example, the service channel a has a mapping relationship with the logical channel a, the logical channel a supports the SLB access technology, the service channel B has a mapping relationship with the logical channel B, and the logical channel B supports the SLE access technology. Different functional modules can be provided in the access layer to specifically realize the support of the corresponding access technology, for example, the access module a realizes the SLB technology, and the access module B realizes the SLE technology. Then, in the process of applying for releasing the logical channel (i.e. in step S703), the base service layer may send the identifier of the service channel to the corresponding module according to the difference of the access technologies. In step S704, the corresponding access module ends the mapping relationship between the service channel and the logical channel. For example, the basic service layer sends the identifier of the service channel A to the access module A, and the access module A removes the mapping relation between the service channel A and the logic channel A; and sending the identifier of the service channel B to the access module B, and removing 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 respectively feed back the identifier of the service channel whose mapping relationship has been released.
In step S706, the information #74 may include the identifications of all traffic channels (i.e., TCID-S) in the local traffic channel group that have been de-mapped from the logical channel. Accordingly, in step S707, the base service layer of the second electronic device releases the TCIDs-d corresponding to the plurality of TCIDs-S, respectively. Thus, after step S707 is completed, the number of channels in the service channel group to which the opposite-end service channel TCID-d belongs is reduced to 0.
In step S708, the information #76 may include identifications (i.e., multiple TCIDs-d) of all the traffic channels in the peer traffic channel group to notify the base service layer of the first electronic device that the mapping relationship between the traffic channels and the logical channels is released. Thus, after step S708 is completed, the number of channels in the service channel group to which the local service channel TCID-S belongs is reduced to 0.
With continued reference to fig. 9, in step S709, the basic service layer (specifically, the path management module) of the first electronic device notifies the basic application layer that the service path release is successful. That is, the base application layer is notified that the mapping relationship between the first port and the service channel group has been released, and the service channel group is released (i.e., all sub-channels in the service channel group are 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 releasing of the traffic channels of the first port and the second port is completed.
This information #77 may include a first port1.
In step S710, the basic application layer of the first electronic device notifies the basic application layer of the second electronic device of the first port release, and the basic application layer of the second electronic device notifies the basic application layer of the first electronic device of the second port release.
The data involved in the process can be transmitted through the default traffic channel that has been established.
In the embodiment of the application, when the service is finished, the base application layer may notify the base service layer that data is no longer transmitted, and may release the non-default service channel. The channel management module can delete a plurality of sub-channels in sequence, and finally release the non-default service channel to inform the basic application layer that the service channel is successfully released. Thereby releasing the transmission resources.
The related flows of the service channels are described above with reference to fig. 3 to fig. 9, where when the basic service layer executes the flow of creating the non-default service channel and the flow of adding the non-default service sub-channel, the same is true, and a service channel is created, which is different from the case that the service channel is created in a new service channel group or an existing service channel group. If it needs to be established in a new service channel group, it needs to establish a new service channel group while establishing a service channel, and this process needs the participation of the basic application layer, such as providing the relevant information of the port, maintaining the mapping relationship between the port and the service channel group, etc. Similarly, when the basic service layer executes the procedure of releasing the non-default service channel and the procedure of deleting the non-default service subchannel, the essence is the same, and the procedures are all the service channels, and the difference is whether the whole service channel group is released or not. If the whole service channel group needs to be released, the basic application layer needs to participate, such as providing the relevant information of the port, removing the mapping relation between the port and the service channel group, and the like.
In conjunction with the above embodiments and the accompanying drawings, the present embodiment provides a method for configuring a channel for transmitting traffic, which may be implemented in the communication system 100 shown in fig. 1, and more specifically, in an electronic device having a protocol architecture as shown in fig. 2, for example, applied to a first electronic device. The first electronic device may include a base application layer for issuing service requirements, a base service layer, and an access layer supporting multiple access technologies (e.g., including SLB access technology and SLE access technology). 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 after 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 services.
Fig. 10 is a schematic flow chart illustrating a method for configuring a channel for transmitting traffic 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 the service requirement.
Here, the service requirements are issued by the base application layer. For example, the first step may be a step before step S801, where the base application layer sends the first traffic channel to the base service layer for establishing the first traffic channel; alternatively, the service requirement is also used to establish the first service channel in step S801, and the service requirement is sent from the base application layer to the base service layer when establishing other service channels.
In the embodiment of the present application, the service requirement refers to some requirements that need to be met when transmitting a service, such as the type of a service channel, the service quality, the transmission mode of the service, whether the service channel is dedicated, 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 first determine whether to establish the first traffic channel. It will be appreciated that establishing a first traffic channel herein refers to establishing a new traffic channel, and not to multiplexing an already established traffic channel.
In one embodiment, in this step, the determining, by the base service layer, to establish the first traffic channel according to the traffic demand may include: the base service layer generates an identifier 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 the TCID-s 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 for applying for a logical channel supporting a first access technology. Where the first access technology is selected by the base 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 channel, or the basic service layer may specify on which access technology the logical channel is applied.
In one example, the plurality of access technologies supported by the access stratum can include SLB access technologies and SLE access technologies. In other embodiments, the access stratum may also support existing access technologies such as bluetooth, wireless fidelity (Wi-Fi), and may also support other future alliance of star alliance access technologies, and the like.
It should be noted that the access technology referred to herein is understood to be an access technology in short-range wireless 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 may be made to the above description, and for brevity, no further description is provided herein.
In one embodiment, prior to step S802, the base service layer may perform channel parameter negotiation with the second electronic device. Therefore, the first electronic device and the second electronic device can be aligned to the channel parameters, and failure of the subsequent process is prevented.
For example, the channel parameters negotiated by the basic service layer and the second electronic device may be related to a transmission mode. The channel parameters may include a transmission window sliding window size, a refresh timer, a maximum number of transmissions, a retransmission timer, and the like. It is to be understood that the second electronic device may also include a basic service layer, where the process of channel parameter negotiation may occur between the basic service layer of the first electronic device and the basic 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 is used to indicate the type of the logical channel. In the embodiment of the present application, the logic channel types may include an asynchronous logic channel, a synchronous logic channel, a unidirectional logic channel, an AM mode logic channel, an UM mode logic channel, a TM mode logic channel, and the like. The service quality information is used for the access layer to select the logical channel or configure the relevant parameters of the logical channel.
For the description of the logical channel type, reference may be made to the above description, and for brevity, the description is not repeated here.
In step S803, the basic service layer receives the second information from the access stratum.
The second information is used for indicating the first service channel and the first logic channel to establish a mapping relation. That is to say, after receiving the first information sent by the basic service layer, the access layer may configure a first logical channel in 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 already established logical channel, may be a reconfigured logical channel, or may be a newly established logical channel.
In other words, the access stratum may map a previously established logical channel as a first logical channel with the first service channel; or, a previously established logic channel may be reconfigured, and the reconfigured logic channel is used as a first logic channel to be mapped with the first service channel; alternatively, a new logical channel may be established as the first logical channel to map with the first traffic channel.
In a specific implementation, the access stratum may determine, according to the first information and in combination with a transmission condition of the access stratum, which way to obtain the first logic channel, which is not limited in this embodiment of the present application. By way of example and not limitation, the access stratum may perform actions as step S306 in fig. 3, or perform actions as step S406 in fig. 4, or perform actions as step S504 in fig. 7, thereby obtaining the first logical channel. For how the access stratum acquires the first logical channel and the applicable scenarios, reference may be made to the above description, and for brevity, no further description is provided here.
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 may be made to the above description, and for brevity, the description is not repeated herein.
In step S804, the basic service layer sends third information to the second electronic device.
The third information is used for indicating the second electronic equipment to establish the second service channel.
In this embodiment of the present application, a first service channel is established on a first electronic device side, a second service channel is established on a second electronic device side, and when the first service channel and the second service channel complete mapping, the first electronic device and the second electronic device can transmit services 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 this embodiment, 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, the base service layer of the second electronic device may generate 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 the TCID-d referred to in the above embodiments.
In this embodiment of the present 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 a preset rule 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 the specific solution, reference may be made to the above description related to fig. 5 and fig. 6, and details are not repeated here for brevity.
In one embodiment, after the second service channel is established, 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 relationship between the second service channel and the first logic channel, it may be considered that the first service channel and the second service channel establish a connection, and the underlying logic channel may 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 may be made to the above description, and for brevity, the description is not repeated herein.
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 to establish a mapping relation with the first logic channel.
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 may be made to the above description, and for brevity, the description is not repeated herein.
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, and completes establishment of the first service channel.
In this step, the basic service layer can know the mapping relationship between the second service channel and the first logic channel according to the fourth information, and also know the mapping relationship between the first service channel and the first logic channel, so that the mapping relationship 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 a channel 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 traffic channel group, where the traffic channel group may include one or more traffic channels.
In this embodiment, the first service channel belongs to a first service channel group, and 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, and the second service channel group comprises at least one service channel. The second service channel group has a mapping relationship 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 service channel may be a first service channel established in the first service channel group, or may be a service channel established in the first service channel group, except for the first service 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 service channel is not the first service channel established in the first service channel group, establishing the first service channel may be regarded as establishing a subchannel in the already established first service channel group.
In an example, if the first service channel is not the first service channel established in the first service channel group, in step S801, the determining, by the basic service layer, to establish the first service channel according to the service requirement may include: 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 a first service channel in the first service channel group.
In other words, the first service channel group is already established and is used for transmitting the 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 to the first service channel group, that is, establish the first service channel, thereby performing service offloading. In a specific implementation, the basic service layer may determine whether to establish the first service channel in multiple ways according to different service requirements.
The first service channel for service distribution may use a different access technology from other service channels in the first service channel group, or use a different spectrum resource, etc., so as to implement distribution.
In one example, if the first service channel is a first service channel established in the first service channel group, the basic application layer is required to initiate a process of establishing the service channel group. Therefore, before step S801, the basic service layer may receive a service requirement sent by the basic application layer, where the service requirement instructs the basic service layer to create the first service 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.
As an example and not by way of limitation, for example, if the service channel indicated in the service requirement is dedicated to transmit data of a certain service, or the transmission mode of the service data indicated in the service requirement is a transparent transmission mode, the basic service layer determines to newly establish a first service channel, and the first service channel belongs to a new service channel group.
In some embodiments, before the basic service layer receives the service requirement sent by the basic application layer, the basic application layer and the second electronic device may perform port negotiation to determine that the first electronic device uses the first port and the second electronic device uses the second port.
That is, before the basic service layer sends a traffic demand to instruct the basic service layer to create the first traffic channel group, the basic service layer needs to negotiate with the second electronic device port to determine for which port the first traffic channel group is created.
In this embodiment, the second electronic device may also include a basic application layer, and thus 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 in the port negotiation process can be transmitted through a default service channel.
For the case that the first service channel is the first service channel established in the first service channel group (i.e. the first service channel needs to be established while the first service channel is 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 base service layer receives the fifth information transmitted by the base application layer.
The fifth information is used for indicating that the first port applies for the service channel. The first port is the port where the first electronic device and the second electronic device negotiate to determine. Here, the first port is a port on the electronic device side for transmitting traffic. It is to be understood that, in a case where the first electronic device and the second electronic device negotiate a port, the fifth information is used to indicate that a service channel is applied for the first port, and may be understood to be used to indicate that a 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 may be made to the above description, and for brevity, the description is not repeated herein.
After step S806, step S808 is performed, and the base service layer sends sixth information to the base application layer.
The sixth information is used for indicating the first port to establish a mapping relationship 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 may be made to the above description, and for brevity, the description is not repeated herein.
In this embodiment, the first service channel may be a bidirectional transmission channel, that is, used for the first electronic device and the second electronic device to transmit services to each other. The first service channel may be a unidirectional transmission channel, that is, a channel used for the first electronic device to transmit the service to the second electronic device, but not used for the second electronic device to transmit the service to the first electronic device.
In an embodiment, if the first service channel is a bidirectional transmission channel, the fifth information may include an identifier of the first port and an identifier of the second port. The sixth information may include 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.
Since the first service channel is a bidirectional transmission channel, when the basic application layer applies for a service channel for a port, the ports negotiated by the first electronic device and the second electronic device need to be notified to the basic service layer, so that the first service channel capable of being used for bidirectional transmission can be established.
In an embodiment, if the first service channel is a unidirectional transmission channel, the fifth information may include an identifier of the first port. The sixth information may include 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.
In this embodiment, the first mapping identifier is represented as an identifier of the first service channel group, such as the above GoupID, may be represented as an identifier of the first service channel, such as the above TCID, and may also be represented as a transmission channel mapping identifier, such as the above mapcid. For the representation of GoupID, TCID and mapcid, reference may be made to the above description, and for brevity, the description thereof is omitted.
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 to indicate the type of the service, for example, to indicate that the first service channel is a unicast service channel, a multicast service channel, or a broadcast service channel. The service quality indication information is used to indicate the requirements of the service on the service channel, such as transmission rate, delay, packet loss rate, communication period, maximum packet size, and the like.
In some embodiments, the fifth information may further include additional parameters, such as transmission mode information, information on whether to exclusively load or not, and the like. The transmission mode information is used to indicate a transmission mode of the data, where the transmission mode may include a basic mode, a transparent transmission mode, a normal mode, a flow control mode, a stream mode, a retransmission mode, and the like. The information indicating whether the first service channel is specially used for transmitting the data issued by the first port is determined.
Regarding the service channel type, the transmission mode, etc., reference may be made to the related descriptions in the embodiments of fig. 3 to fig. 9, and for brevity, no further description is given here.
In this embodiment, the access layer of the first electronic device may support multiple access technologies, such as an SLB access technology and an SLE access technology. When the first electronic device and the second electronic device need to perform wireless service or service distribution, a user does not need to select or designate which access technology to perform service transmission, and the basic service layer automatically selects a bottom access technology according to service requirements and establishes a service channel for transmission. Therefore, compatibility of various access technologies and unification of upper layers can be realized, namely, the basic application layer does not need to sense the access technologies, and the basic service layer completes functions of channel creation, shunting and the like.
The method shown in fig. 10 describes a process of establishing the first traffic channel, and in some embodiments, when the first traffic channel is not needed to transmit traffic, the first traffic channel may also be released. 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 reference may be specifically made to the related description of fig. 10, which is omitted for brevity. Only the procedure of releasing the first traffic channel will be described in detail below.
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 traffic channel.
In this embodiment of the application, if the first service channel group includes multiple service channels and the first service channel is one of the multiple service channels, the process of releasing the first service channel is a process of deleting a sub-channel in the service channel group. If the first service channel group includes one service channel, that is, the first service channel, the process of releasing the first service channel may also be regarded as a process of releasing the first service channel group in time, that is, releasing the first service channel and simultaneously releasing the service channel group to which the first service channel belongs.
In one example, the preset conditions may include: the first service channel does not transmit data within a preset time length.
That is, if the first traffic channel has no transmission traffic for a long time, the first traffic channel may be released.
In another example, the preset conditions may include: the basic service layer receives indication information sent by the basic application layer, wherein the indication information is used for indicating to release a first service channel group to which the first service channel belongs, the first service channel group and a first port of the first electronic device have a one-to-one mapping relation, 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 traffic channel may be released according to the indication information. It should be noted that, here, the basic service layer needs to determine whether to release the first traffic channel in combination with the mapping condition between the port and the traffic channel group. 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.
The basic service layer transmits seventh information to the access layer at step S902.
The seventh information is used for applying for releasing the first logical channel. Here, the first logical channel has a mapping relationship with the first traffic 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 may be made to the above description, and for brevity, no further description is provided herein.
In step S903, the basic service layer receives eighth information from the access layer.
The eighth information is used to indicate that the first service channel and the first logic channel are in a demapping relationship.
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 may be made to the above description, and for brevity, no further description is provided herein.
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 stratum may process the first logical channel according to an actual situation, which may refer to the related description of fig. 8 to 9 in detail.
In step S904, the basic service layer transmits ninth information to the second electronic device.
The ninth information is used to instruct the second electronic device to release the second service channel, that is, instruct the second electronic device to release the mapping relationship 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 may be made to the above description, and for brevity, the description is not repeated herein.
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 to indicate that the second service channel is demapped from the first logical 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 may be made to the above description, and for brevity, the description is not repeated herein.
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 the information interacted between the two devices may be transmitted through the control channel.
In step S905, the basic service layer determines, according to the tenth information, that the first service channel and the second service channel release the mapping relationship, and completes the release of the first service channel.
After the basic service layer receives the tenth message, it may be considered that the bottom link between the first electronic device and the second electronic device is removed, and the first service channel and the second service channel are disconnected.
As mentioned above, when the first service channel is the only service channel in the first service channel group, the first service channel group needs to be released at the same time when the first service channel is released. Therefore, in some embodiments, when the first traffic channel group needs to be released simultaneously, before step S901, the method shown in fig. 11 may further include steps S907 and S908, as follows.
Before step S901, step S907 is performed, and the base service layer receives eleventh information transmitted by the base application layer.
The eleventh information is used to indicate that a service channel is released for a first port of the first electronic device, where the first port has a mapping relationship with a 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 may be made to the above description, and for brevity, the description is omitted here.
After step S906, step S908 is performed, and the base service layer receives twelfth information transmitted by the base application layer.
The twelfth information is used for indicating that the first port and the first service channel group are in a demapping relationship.
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 may be made to the above description, and for brevity, the description thereof is omitted.
In the embodiment of the application, when the service is finished or the service channel distribution is not needed, the first service channel can be released, so that the transmission resource is released, and the resource utilization rate is improved.
In the above methods shown in fig. 10 and fig. 11, the base application layer may be the base application layer 230 shown in fig. 2, and the operation performed by the base application layer may be specifically performed by a corresponding service module in the base application layer 230 shown in fig. 2. The basic service layer may be the basic service layer 220 shown in fig. 2, and the operations performed by the basic service layer may be specifically performed by a channel management module in the basic service layer 230 shown in fig. 2. The access stratum may be the access stratum 210 shown in fig. 2, and the operations performed by the access stratum may be specifically performed by a corresponding access module in the access stratum 210 shown in fig. 2.
Method embodiments of the present application are described above in detail in conjunction with fig. 1-11, and apparatus embodiments of the present application are described in detail below in conjunction with fig. 12-13. It is to be understood that the description of the method embodiments corresponds to the description of the apparatus embodiments, and therefore reference may be made to the preceding method embodiments for parts not described in detail.
Fig. 12 is a schematic structural diagram of an apparatus provided in 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 fig. 11, and the embodiments shown in fig. 3 to fig. 9 may be implemented specifically, and in order to avoid redundancy, the description is not repeated.
The apparatus 1000 shown in fig. 12 includes a traffic module 1010, a path management module 1020, and an access module 1030. The apparatus 1000 supports multiple access technologies, wherein the access module 1030 may be a module implementing one of the access technologies.
The service module 1010 is configured to issue a service requirement.
A channel management module 1020 to:
determining to establish a first service channel according to service requirements;
sending first information to an access module 1030, where the first information is used to apply for a logical channel supporting a first access technology, and the first access technology is selected from multiple access technologies by a channel management module 1020;
receiving second information from the access module 1030, where the second information is used to indicate that the first service channel and the first logic channel establish a mapping relationship;
sending third information to the second electronic device, wherein the third information is used for indicating the second electronic device to establish a second service channel;
receiving fourth information from the second electronic device, wherein the fourth information is used for indicating that the second service channel and the first logic channel 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 service module 1010 may be any of the service modules in the base application layer 230 shown in fig. 2. The channel management module 1020 may be a channel management module in the base service layer 220 shown in FIG. 2. The access module 1030 may be a module supporting the SLB access technology in the access stratum 210 shown in fig. 2, or a module supporting the 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 the first port of the first electronic device, and the first service channel group is configured to transmit data issued by the first port. The second service channel belongs to a second service channel group, the second service channel group includes at least one service channel, the second service channel group has a mapping relationship with the 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 state 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 indicates that the channel management module 1020 creates a first service channel group; and determining to establish a first service channel, wherein the first service channel is a first service channel in the first service channel group.
Optionally, the service module 1010 is further configured to perform a port negotiation with the second electronic device, and 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 that the first port applies for a service channel; the sixth information is sent to the traffic module 1010. The sixth information is used to indicate that the first port establishes a mapping relationship with the first service channel group.
Optionally, the first service channel is a bidirectional transmission channel; the fifth information comprises the identification of the first port and the identification of the second port; the sixth information includes an identifier of the first port and a first mapping identifier, where the first mapping identifier 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 identifier of the first port and a first mapping identifier, where the first mapping identifier is used to indicate the first traffic channel group.
Optionally, the fifth information further includes service channel type information and service quality 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 identifier of the first service channel.
Optionally, the second information includes an identifier of the first service channel and an identifier of the first logical channel.
Optionally, the third information includes an identifier of the first service channel and an identifier of the first logical channel.
Optionally, the fourth information includes an identifier of the second service channel and an identifier of the first logic channel.
Optionally, the first information includes logical channel type information and quality of service information.
Optionally, the first logical channel is an already 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;
sending 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 logic channel are demapped;
ninth information is sent to the second electronic device, and 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 indicate that the second service channel is unmapped from the first logical channel;
and determining that the first service channel and the second service channel release the mapping relation 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 time length; or, the channel management module 1020 receives indication information sent by the service module 1010, where the indication information is used to indicate to 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.
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 a service channel is released for a first port of the first electronic device, where the first port has a mapping relationship with a first service channel group, and the first service channel group includes the first service channel; receiving twelfth information sent by the service module 1010, where the twelfth information is used to indicate that the first port and the first service channel group release the mapping relationship.
Optionally, the eleventh information includes an identification of the first port.
Optionally, the twelfth information includes an identifier of the first port.
Optionally, the seventh information includes an identifier of the first service channel.
Optionally, the eighth information includes an identifier of the first service channel.
Optionally, the ninth information includes an identifier of the first service channel.
Optionally, the tenth information includes an identifier of the second service channel.
Optionally, the parameter of the first logical channel remains unchanged or is reconfigured; or the first logical channel is deleted.
Optionally, the multiple access technologies include a satellite flash basic SLB access technology and a satellite flash low-power-consumption 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 in the foregoing, 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 in the foregoing embodiment, and the method or operation or function in the embodiments shown in fig. 3 to 9.
Optionally, the apparatus 1100 may further include: memory 1110 and a communications interface 1130. The processor 1120, the communication interface 1130, and the memory 1110 may be connected to each other or to each other through a bus 1140. Wherein the communication interface 1130 is adapted to enable the device to communicate, and the memory 1110 is adapted to store the program codes and data of the device. The processor 1120 calls the code or data stored in the memory 1110 to implement the corresponding operation. 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, and may be in an electrical, mechanical or other form, which is used for information interaction between the devices, units or modules.
Processor 1120 may be, among other things, 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, transistor logic, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors in combination, a digital signal processor in combination with a microprocessor, and so forth. The communication interface 1130 may be a transceiver, circuit, bus, module, or other type of communication interface. The bus 604 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 13, but that does not indicate only one bus or one type of bus.
An embodiment of the present application further provides a communication system, which includes the first electronic device and the second electronic device described above.
Embodiments of the present application further provide a computer-readable storage medium having program instructions, which when executed by a processor, cause the processor to perform the foregoing method for configuring a channel for transmitting traffic.
Embodiments of the present application further provide a chip system, where the chip system includes at least one processor, and when program instructions are executed in the at least one processor, the at least one processor is caused to execute the method for configuring a channel for transmitting a service in the foregoing description.
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 technical 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 can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into 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 such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a portable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by 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 for configuring a channel for transmitting a service, the method being applied to a first electronic device, the first electronic device including a basic application layer, a basic service layer and an access layer, wherein the basic application layer is used for issuing service requirements, 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 multiple 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 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 that the second service channel and the first logic channel 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,
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 and a first port of the first electronic device have a mapping relation, 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 includes at least one service channel, the second service channel group has a mapping relationship 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;
wherein the first port, the first traffic channel, the first logic channel, the second traffic channel, and the second port are configured to transmit traffic between the first electronic device and the second electronic device.
3. The method of claim 2, wherein the base service layer determines to establish the first traffic channel according to the traffic demand, comprising:
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, before the base service layer determines to establish the first traffic channel according to the traffic demand, further comprising:
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;
and 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, wherein before the base service layer receives the traffic demand sent by the base application layer, further comprising:
the base application layer and the second electronic device perform port negotiation to determine that the first electronic device uses the first port and the second electronic device uses the second port;
the basic service layer receives the service requirement sent by the basic application layer, and the method comprises the following steps:
the basic service layer receives fifth information sent by the basic application layer, wherein the fifth information is used for indicating that a service channel is applied for the first port;
after the basic service layer determines the mapping relationship between the first service channel and the second service channel according to the fourth information, the method further includes:
and the basic service layer sends sixth information to the basic application layer, wherein the sixth information is used for indicating the first port to establish a mapping relation with the first service channel group.
6. The method of claim 5, wherein the first traffic 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 identifier of the first port and a first mapping identifier, where the first mapping identifier 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 comprises an identification of the first port;
the sixth information includes an identifier of the first port and a first mapping identifier, where the first mapping identifier is used to indicate the first traffic channel group.
8. The method according to claim 6 or 7, wherein the fifth information further comprises traffic channel type information and quality of service indication information.
9. The method as claimed in any one of claims 1 to 8, further comprising, before the basic service layer sends the first information to the access stratum layer:
and the basic service layer and the second electronic equipment carry out channel parameter negotiation.
10. The method according to any one of claims 1 to 9, wherein the determining, by the basic service layer, to establish the first traffic channel according to the traffic demand comprises:
and the basic service layer generates an identifier of the first service channel.
11. The method according to any one of claims 1 to 10,
the first information comprises an identifier of the first service channel;
the second information comprises an identifier of the first service channel and an identifier of the first logic channel;
the third information comprises an identifier of the first service channel and an identifier of the first logic channel;
the fourth information includes an identifier of the second service channel and an identifier of the first logical channel.
12. The method according to any of claims 1 to 11, wherein the first information comprises logical channel type information and quality of service information.
13. The method according to any of claims 1 to 12, wherein the first logical channel is an already established logical channel, a reconfigured logical channel, or a newly established logical channel.
14. The method according to any one of claims 1 to 13, 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 for releasing the first logic channel;
the basic service layer receives eighth information from the access layer, wherein the eighth information is used for indicating that the first service channel and the first logic channel are in a demapping relationship;
the basic service layer sends ninth information to the second electronic device, where the ninth information is used to instruct the second electronic device 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 that the second service channel is in a mapping relation with the first logic channel;
and the basic service layer determines that the first service channel and the second service channel are in a de-mapping relation according to the tenth information, and finishes the release of the first service channel.
15. The method according to claim 14, wherein the preset condition comprises:
the first service channel does not transmit data within a preset time length; or,
the basic service layer receives indication information sent by the basic application layer, where the indication information is used to indicate to release a first service channel group to which the first service channel belongs, where the first service channel group and a first port of the first electronic device have a one-to-one mapping relationship, and the first service channel group is used to transmit data issued by the first port.
16. The method of claim 14, further comprising, before the base service layer determines to release the first traffic channel:
the basic service layer receives eleventh information sent by the basic application layer, where the eleventh information is used to indicate that a service channel is released for a first port of the first electronic device, where the first port has a mapping relationship with a first service channel group, and the first service channel group includes the first service channel;
after the basic service layer determines, according to the tenth information, that the first service channel and the second service channel are demapped, the method further includes:
and the basic service layer receives twelfth information sent by the basic application layer, wherein the twelfth information is used for indicating that the first port and the first service channel group are in a demapping relationship.
17. The method of claim 16,
the eleventh information comprises an identification of the first port;
the twelfth information includes an identification of the first port.
18. The method according to any one of claims 14 to 17,
the seventh information comprises an identifier of the first service channel;
the eighth information comprises an identifier of the first service channel;
the ninth information comprises an identifier of the first service channel;
the tenth information includes an identification of the second traffic channel.
19. The method according to any one of claims 14 to 18,
the parameters of the first logic channel remain unchanged or are reconfigured; or
The first logical channel is deleted.
20. The method of any of claims 1-19, wherein the plurality of access technologies comprise 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 of claims 1 to 20.
22. An apparatus configured to transport channels of 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 one of claims 1 to 20.
23. A computer-readable storage medium having stored thereon computer-executable instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 20.
24. A chip system 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 Pending CN115701725A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110880797.9A CN115701725A (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 CN115701725A (en) 2021-08-02 2021-08-02 Method and device for configuring channel for transmitting service

Publications (1)

Publication Number Publication Date
CN115701725A true CN115701725A (en) 2023-02-10

Family

ID=85142426

Family Applications (1)

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

Country Status (2)

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

Citations (5)

* 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
US20130265917A1 (en) * 2012-04-09 2013-10-10 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
CN105682014A (en) * 2012-04-09 2016-06-15 华为技术有限公司 Communication method and system, access network equipment and application server
CN106856585A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 Set up the method and device of short-distance wireless passage

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8856289B2 (en) * 2006-12-29 2014-10-07 Prodea Systems, Inc. Subscription management of applications and services provided through user premises gateway devices
CN110383864B (en) * 2017-03-31 2024-06-04 英特尔公司 Road communication system with multicasting
CN110949458B (en) * 2019-11-27 2021-11-12 交控科技股份有限公司 Rail transit operation and maintenance management system based on micro-service architecture

Patent Citations (5)

* 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
US20130265917A1 (en) * 2012-04-09 2013-10-10 Huawei Technologies Co., Ltd. Communication method and system, access network device, and application server
CN105682014A (en) * 2012-04-09 2016-06-15 华为技术有限公司 Communication method and system, access network equipment and application server
WO2015021595A1 (en) * 2013-08-13 2015-02-19 华为技术有限公司 Service channel configuration method, optical line terminal and passive optical network
CN106856585A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 Set up the method and device of short-distance wireless passage

Also Published As

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

Similar Documents

Publication Publication Date Title
US20080016248A1 (en) Method and apparatus for time synchronization of parameters
CN111918237B (en) Communication method and device
US8973074B2 (en) Method and system for isochronous communication in audio/video networks
WO2022205234A1 (en) Communication method and apparatus
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
CN113630738A (en) Sidelink communication method and device
CN115250537A (en) Communication method and device
WO2023011316A1 (en) Data transmission method, electronic device, chip, and storage medium
CN113950029A (en) Communication method and device
CN115701725A (en) Method and device for configuring channel for transmitting service
CN111343667A (en) Communication method and communication device
JP7478749B2 (en) Radio bearer establishment method and device
WO2023071567A1 (en) Transmission channel reconfiguration method and apparatus, and electronic device
CN107734555B (en) Data receiving and transmitting channel, data transmission method and device
WO2023082974A1 (en) Method and apparatus for configuring channel for transmitting multicast service
WO2024060991A1 (en) Data stream guide method and apparatus for multiple paths
WO2023185608A1 (en) Data transmission method and communication apparatus
US20230069718A1 (en) Data Communication Method and Related Apparatus
WO2024067411A1 (en) Communication method and apparatus
WO2022242387A1 (en) Apparatus based on wireless short-range communication protocol architecture, and electronic device
WO2023217009A1 (en) Data transmission method and apparatus and communication device
US20240031298A1 (en) Communication method and device
WO2023165235A1 (en) Semi-persistent scheduling method, user equipment, gnb and communication system
WO2023272444A1 (en) Communication method and communication apparatus therefor

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