Did anyone tried to modify free5gc to use http2 instead of http1.1 with h2c?

Hi,

Anyone knows if free5gc support http2 multiplexing feature?
or Someone tried to modify free5gc to use http2 instead of http1.1 with h2c?

Thank you

Hi @nathalie21005

I think this is in continuity with your previous question.

Free5GC implements both h2c and h2. If we take an the example of the AUSF, you can see here:

that it implements http, h2c and h2 servers. The code looks very much like this example:

which states that using this implementation you will end up with a server that supports basically everything.

I hope this helps.

How can I run the server in h2c or h2 if it’s container, while I don’t have access to the server only after I run the docker compose so the address of the NF which means the server will be in use. Any idea?!

I don’t fully get your question. Can you provide more details ? Are you trying to run the h2 mode ? If it’s the case, I think you need to change the scheme from http to https in the config files.

Nevertheless, if the docker version is inconvenient for you you can always use the all-in-one install method described here: https://github.com/free5gc/free5gc/wiki/Installation

No I am trying to run the server as h2c not h2 but I don’t have to the container without running the docker-compose (docker-compose up). And once I run the compose, I cannot access same address of NF to run the server using h2c because the address is in use with the run of docker.

Thank you so much for your support and help.

Ok, I see, I suggest that you remove the NF that you want to replace from the docker-compose.yaml file, configure all the other NFs/containers to run in host network mode (Use host networking | Docker Documentation), run your substitute NF and then launch the rest of the NFs using compose. You may also want to verify NFs dependencies because the stack could fail if you remove the NRF for example (other NFs depend on it).

Hi @abousselmi,

Thank you for your support, I was able to run the container with your suggested code.
Do you have any idea, if we can run all the docker-compose using h2c (to enable http/2)?

Thank you again.